public class Mailmark2D extends Object
Class for encoding and decoding the text embedded in the Royal Mail 2D Mailmark
| Constructor and Description |
|---|
Mailmark2D()
Creates Royal Mail Mailmark combined data with default primary and secondary data values.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deepClone()
Gets a copy of this object.
|
String |
getClass_()
Identifies the class of the item.
|
String |
getCustomerContent()
Optional space for use by customer.
|
int |
getCustomerContentEncodeMode()
Encode mode of DataMatrix barcode.
|
int |
getDataMatrixType()
2D Mailmark Type defines size of Data Matrix barcode.
|
String |
getDestinationPostCodeAndDPS()
Contains the Postcode of the Delivery Address with DPS
If inland the Postcode/DP contains the following number of characters.
|
String |
getInformationTypeID()
Identifies the Royal Mail Mailmark barcode payload for each product type.
|
int |
getItemID()
Identifies the unique item within the Supply Chain ID.
|
String |
getReturnToSenderPostCode()
Contains the Return to Sender Post Code but no DPS.
|
String |
getRTSFlag()
Flag which indicates what level of Return to Sender service is being requested.
|
int |
getSupplyChainID()
Identifies the unique group of customers involved in the mailing.
|
String |
getUPUCountryID()
Identifies the UPU Country ID.Max length: 4 characters.
|
String |
getVersionID()
Identifies the barcode version as relevant to each Information Type ID.
|
void |
setClass(String value)
Identifies the class of the item.
|
void |
setCustomerContent(String value)
Optional space for use by customer.
|
void |
setCustomerContentEncodeMode(int value)
Encode mode of DataMatrix barcode.
|
void |
setDataMatrixType(int value)
2D Mailmark Type defines size of Data Matrix barcode.
|
void |
setDestinationPostCodeAndDPS(String value)
Contains the Postcode of the Delivery Address with DPS
If inland the Postcode/DP contains the following number of characters.
|
void |
setInformationTypeID(String value)
Identifies the Royal Mail Mailmark barcode payload for each product type.
|
void |
setItemID(int value)
Identifies the unique item within the Supply Chain ID.
|
void |
setReturnToSenderPostCode(String value)
Contains the Return to Sender Post Code but no DPS.
|
void |
setRTSFlag(String value)
Flag which indicates what level of Return to Sender service is being requested.
|
void |
setSupplyChainID(int value)
Identifies the unique group of customers involved in the mailing.
|
void |
setUPUCountryID(String value)
Identifies the UPU Country ID.Max length: 4 characters.
|
public Mailmark2D()
Creates Royal Mail Mailmark combined data with default primary and secondary data values.
public final Object deepClone()
Gets a copy of this object.
public final String getClass_()
Identifies the class of the item.
public final String getCustomerContent()
Optional space for use by customer.
Mailmark2DType:
Type 7: 6 characters
Type 9: 45 characters
Type 29: 25 characters
public final int getCustomerContentEncodeMode()
Encode mode of DataMatrix barcode. Default value: DataMatrixEncodeMode.C40. DataMatrixEncodeMode
public final int getDataMatrixType()
2D Mailmark Type defines size of Data Matrix barcode.
public final String 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. Max length is 9.
public final String getInformationTypeID()
Identifies the Royal Mail Mailmark barcode payload for each product type.
public final 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.
public final String getReturnToSenderPostCode()
Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.
public final String getRTSFlag()
Flag which indicates what level of Return to Sender service is being requested. Max length is 1
public final int getSupplyChainID()
Identifies the unique group of customers involved in the mailing. Max value: 9999999.
public final String getUPUCountryID()
Identifies the UPU Country ID.Max length: 4 characters.
public final String getVersionID()
Identifies the barcode version as relevant to each Information Type ID.
public final void setClass(String value)
Identifies the class of the item.
public final void setCustomerContent(String value)
Optional space for use by customer.
Mailmark2DType:
Type 7: 6 characters
Type 9: 45 characters
Type 29: 25 characters
public final void setCustomerContentEncodeMode(int value)
Encode mode of DataMatrix barcode. Default value: DataMatrixEncodeMode.C40. DataMatrixEncodeMode
public final void setDataMatrixType(int value)
2D Mailmark Type defines size of Data Matrix barcode.
public final void setDestinationPostCodeAndDPS(String value)
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. Max length is 9.
public final void setInformationTypeID(String value)
Identifies the Royal Mail Mailmark barcode payload for each product type.
public final 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.
public final void setReturnToSenderPostCode(String value)
Contains the Return to Sender Post Code but no DPS. The PC(without DPS) must comply with a PAF® format.
public final void setRTSFlag(String value)
Flag which indicates what level of Return to Sender service is being requested. Max length is 1
public final void setSupplyChainID(int value)
Identifies the unique group of customers involved in the mailing. Max value: 9999999.
public final void setUPUCountryID(String value)
Identifies the UPU Country ID.Max length: 4 characters.
Copyright © 2026. All rights reserved.