Class MailmarkCodetext
java.lang.Object
com.aspose.barcode.complexbarcode.MailmarkCodetext
- All Implemented Interfaces:
IComplexCodetext
Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of theMailmarkCodetextclass. -
Method Summary
Modifier and TypeMethodDescriptionGets barcode type."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)Construct codetext from Mailmark data.The PC and DP must comply with a PAF format.int"0" – Null or Test "1" – Letter "2" – Large LetterintMaximum value is 99999999.intMaximum values are 99 for Barcode C and 999999 for Barcode L.intCurrently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)voidinitFromString(String constructedCodetext) Initializes Mailmark data from constructed codetext.void"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)voidThe PC and DP must comply with a PAF format.voidsetFormat(int value) "0" – Null or Test "1" – Letter "2" – Large LettervoidsetItemID(int value) Maximum value is 99999999.voidsetSupplychainID(int value) Maximum values are 99 for Barcode C and 999999 for Barcode L.voidsetVersionID(int value) Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
-
Constructor Details
-
MailmarkCodetext
public MailmarkCodetext()Initializes a new instance of theMailmarkCodetextclass.
-
-
Method Details
-
getFormat
public int getFormat()"0" – Null or Test "1" – Letter "2" – Large Letter -
setFormat
public void setFormat(int value) "0" – Null or Test "1" – Letter "2" – Large Letter -
getVersionID
public int getVersionID()Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use) -
setVersionID
public void setVersionID(int value) Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use) -
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) -
setClass
"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) -
getSupplychainID
public int getSupplychainID()Maximum values are 99 for Barcode C and 999999 for Barcode L. -
setSupplychainID
public void setSupplychainID(int value) Maximum values are 99 for Barcode C and 999999 for Barcode L. -
getItemID
public int getItemID()Maximum value is 99999999. -
setItemID
public void setItemID(int value) Maximum value is 99999999. -
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. -
setDestinationPostCodePlusDPS
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. -
getConstructedCodetext
Construct codetext from Mailmark data.- Specified by:
getConstructedCodetextin interfaceIComplexCodetext- Returns:
- Constructed codetext
-
initFromString
Initializes Mailmark data from constructed codetext.- Specified by:
initFromStringin interfaceIComplexCodetext- Parameters:
constructedCodetext- Constructed codetext.
-
getBarcodeType
Gets barcode type.- Specified by:
getBarcodeTypein interfaceIComplexCodetext- Returns:
- Barcode type.
-