public final class MailmarkCodetext extends java.lang.Object implements IComplexCodetext
Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
Constructor and Description |
---|
MailmarkCodetext()
Initializes a new instance of the
MailmarkCodetext class. |
Modifier and Type | Method and Description |
---|---|
BaseEncodeType |
getBarcodeType()
Gets barcode type.
|
java.lang.String |
getClass_()
"0" - Null or Test
"1" - 1C (Retail)
"2" - 2C (Retail)
"3" - 3C (Retail)
"4" - Premium (RetailPublishing Mail) (for potential future use)
"5" - Deferred (Retail)
"6" - Air (Retail) (for potential future use)
"7" - Surface (Retail) (for potential future use)
"8" - Premium (Network Access)
"9" - Standard (Network Access)
|
java.lang.String |
getConstructedCodetext()
Construct codetext from Mailmark data.
|
java.lang.String |
getDestinationPostCodePlusDPS()
The PC and DP must comply with a PAF format.
|
int |
getFormat()
"0" – Null or Test
"1" – Letter
"2" – Large Letter
|
int |
getItemID()
Maximum value is 99999999.
|
int |
getSupplychainID()
Maximum values are 99 for Barcode C and 999999 for Barcode L.
|
int |
getVersionID()
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
|
void |
initFromString(java.lang.String constructedCodetext)
Initializes Mailmark data from constructed codetext.
|
void |
setClass(java.lang.String value)
"0" - Null or Test
"1" - 1C (Retail)
"2" - 2C (Retail)
"3" - 3C (Retail)
"4" - Premium (RetailPublishing Mail) (for potential future use)
"5" - Deferred (Retail)
"6" - Air (Retail) (for potential future use)
"7" - Surface (Retail) (for potential future use)
"8" - Premium (Network Access)
"9" - Standard (Network Access)
|
void |
setDestinationPostCodePlusDPS(java.lang.String value)
The PC and DP must comply with a PAF format.
|
void |
setFormat(int value)
"0" – Null or Test
"1" – Letter
"2" – Large Letter
|
void |
setItemID(int value)
Maximum value is 99999999.
|
void |
setSupplychainID(int value)
Maximum values are 99 for Barcode C and 999999 for Barcode L.
|
void |
setVersionID(int value)
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
|
public MailmarkCodetext()
Initializes a new instance of the MailmarkCodetext
class.
public int getFormat()
"0" – Null or Test "1" – Letter "2" – Large Letter
public void setFormat(int value)
"0" – Null or Test "1" – Letter "2" – Large Letter
public int getVersionID()
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
public void setVersionID(int value)
Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
public java.lang.String getClass_()
"0" - Null or Test "1" - 1C (Retail) "2" - 2C (Retail) "3" - 3C (Retail) "4" - Premium (RetailPublishing Mail) (for potential future use) "5" - Deferred (Retail) "6" - Air (Retail) (for potential future use) "7" - Surface (Retail) (for potential future use) "8" - Premium (Network Access) "9" - Standard (Network Access)
public void setClass(java.lang.String value)
"0" - Null or Test "1" - 1C (Retail) "2" - 2C (Retail) "3" - 3C (Retail) "4" - Premium (RetailPublishing Mail) (for potential future use) "5" - Deferred (Retail) "6" - Air (Retail) (for potential future use) "7" - Surface (Retail) (for potential future use) "8" - Premium (Network Access) "9" - Standard (Network Access)
public int getSupplychainID()
Maximum values are 99 for Barcode C and 999999 for Barcode L.
public void setSupplychainID(int value)
Maximum values are 99 for Barcode C and 999999 for Barcode L.
public int getItemID()
Maximum value is 99999999.
public void setItemID(int value)
Maximum value is 99999999.
public java.lang.String getDestinationPostCodePlusDPS()
The PC and DP must comply with a PAF format. Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern of characters denoting a domestic sorting code. A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
public void setDestinationPostCodePlusDPS(java.lang.String value)
The PC and DP must comply with a PAF format. Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern of characters denoting a domestic sorting code. A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
public java.lang.String getConstructedCodetext()
Construct codetext from Mailmark data.
getConstructedCodetext
in interface IComplexCodetext
public void initFromString(java.lang.String constructedCodetext)
Initializes Mailmark data from constructed codetext.
initFromString
in interface IComplexCodetext
constructedCodetext
- Constructed codetext.public BaseEncodeType getBarcodeType()
Gets barcode type.
getBarcodeType
in interface IComplexCodetext