Class Mailmark2DCodetext
java.lang.Object
com.aspose.barcode.complexbarcode.Mailmark2DCodetext
- All Implemented Interfaces:
IComplexCodetext
Class for encoding and decoding the text embedded in the Royal Mail 2D Mailmark code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets barcode type.getclass()Identifies the class of the item.Construct codetext from Mailmark data.Optional space for use by customer.Encode mode of Datamatrix barcode.2D Mailmark Type defines size of Data Matrix barcode.Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters.Identifies the Royal Mail Mailmark barcode payload for each product type.intIdentifies the unique item within the Supply Chain ID.Contains the Return to Sender Post Code but no DPS.Flag which indicates what level of Return to Sender service is being requested.intIdentifies the unique group of customers involved in the mailing.Identifies the UPU Country ID.Max length: 4 characters.Identifies the barcode version as relevant to each Information Type ID.voidinitFromString(String constructedCodetext) Initializes Mailmark data from constructed codetext.voidIdentifies the class of the item.voidsetCustomerContent(String value) Optional space for use by customer.voidEncode mode of Datamatrix barcode.voidsetDataMatrixType(Mailmark2DType value) 2D Mailmark Type defines size of Data Matrix barcode.voidContains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters.voidsetInformationTypeID(String value) Identifies the Royal Mail Mailmark barcode payload for each product type.voidsetItemID(int value) Identifies the unique item within the Supply Chain ID.voidsetReturnToSenderPostCode(String value) Contains the Return to Sender Post Code but no DPS.voidsetRTSFlag(String value) Flag which indicates what level of Return to Sender service is being requested.voidsetSupplyChainID(int value) Identifies the unique group of customers involved in the mailing.voidsetUPUCountryID(String value) Identifies the UPU Country ID.Max length: 4 characters.voidsetVersionID(String value) Identifies the barcode version as relevant to each Information Type ID.
-
Constructor Details
-
Mailmark2DCodetext
public Mailmark2DCodetext()Create default instance of Mailmark2DCodetext class.
-
-
Method Details
-
getUPUCountryID
Identifies the UPU Country ID.Max length: 4 characters.- Returns:
- Country ID
-
setUPUCountryID
Identifies the UPU Country ID.Max length: 4 characters.- Parameters:
value- Country ID
-
getInformationTypeID
Identifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: '0' - Domestic Sorted & Unsorted 'A' - Online Postage 'B' - Franking 'C' - Consolidation- Returns:
- Information type ID
-
setInformationTypeID
Identifies the Royal Mail Mailmark barcode payload for each product type. Valid Values: '0' - Domestic Sorted & Unsorted 'A' - Online Postage 'B' - Franking 'C' - Consolidation- Parameters:
value- Information type ID
-
getVersionID
Identifies the barcode version as relevant to each Information Type ID. Valid Values: Currently '1'. '0' & '2' to '9' and 'A' to 'Z' spare reserved for potential future use.- Returns:
- Version ID
-
setVersionID
Identifies the barcode version as relevant to each Information Type ID. Valid Values: Currently '1'. '0' & '2' to '9' and 'A' to 'Z' spare reserved for potential future use.- Parameters:
value- Version ID
-
getclass
Identifies the class of the item. Valid Values: '1' - 1C (Retail) '2' - 2C (Retail) '3' - Economy (Retail) '5' - Deffered (Retail) '8' - Premium (Network Access) '9' - Standard (Network Access)- Returns:
- class of the item
-
setclass
Identifies the class of the item. Valid Values: '1' - 1C (Retail) '2' - 2C (Retail) '3' - Economy (Retail) '5' - Deffered (Retail) '8' - Premium (Network Access) '9' - Standard (Network Access)- Parameters:
value- class of the item
-
getSupplyChainID
public int getSupplyChainID()Identifies the unique group of customers involved in the mailing. Max value: 9999999.- Returns:
- Supply chain ID
-
setSupplyChainID
public void setSupplyChainID(int value) Identifies the unique group of customers involved in the mailing. Max value: 9999999.- Parameters:
value- Supply chain ID
-
getItemID
public int getItemID()Identifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID so it can be uniquely identified for at least 90 days. Max value: 99999999.- Returns:
- item within the Supply Chain ID
-
setItemID
public void setItemID(int value) Identifies the unique item within the Supply Chain ID. Every Mailmark barcode is required to carry an ID so it can be uniquely identified for at least 90 days. Max value: 99999999.- Parameters:
value- item within the Supply Chain ID
-
getDestinationPostCodeAndDPS
Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters. Area (1 or 2 characters) District(1 or 2 characters) Sector(1 character) Unit(2 characters) DPS (2 characters). The Postcode and DPS must comply with a valid PAF® format.- Returns:
- the Postcode of the Delivery Address with DPS
-
setDestinationPostCodeAndDPS
Contains the Postcode of the Delivery Address with DPS If inland the Postcode/DP contains the following number of characters. Area (1 or 2 characters) District(1 or 2 characters) Sector(1 character) Unit(2 characters) DPS (2 characters). The Postcode and DPS must comply with a valid PAF® format.- Parameters:
value- the Postcode of the Delivery Address with DPS
-
getRTSFlag
Flag which indicates what level of Return to Sender service is being requested.- Returns:
- RTS Flag
-
setRTSFlag
Flag which indicates what level of Return to Sender service is being requested. -
getReturnToSenderPostCode
Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.- Returns:
- Return to Sender Post Code but no DPS
-
setReturnToSenderPostCode
Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.- Parameters:
value- Return to Sender Post Code but no DPS
-
getCustomerContent
Optional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters- Returns:
- Customer content
-
setCustomerContent
Optional space for use by customer. Max length by Type: Type 7: 6 characters Type 9: 45 characters Type 29: 25 characters- Parameters:
value- Customer content
-
getCustomerContentEncodeMode
Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.C40.- Returns:
- Encode mode of Datamatrix barcode.
-
setCustomerContentEncodeMode
Encode mode of Datamatrix barcode. Default value: EncodeMode.C40.- Parameters:
value- Encode mode of Datamatrix barcode.
-
getDataMatrixType
2D Mailmark Type defines size of Data Matrix barcode.- Returns:
- Size of Data Matrix barcode
-
setDataMatrixType
2D Mailmark Type defines size of Data Matrix barcode.- Parameters:
value- Size of Data Matrix barcode
-
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.
-