Configuration file elements

File Element Usage
/labelconfig The document root which contains one or more /labelconfig/label elements.
/labelconfig/label Defines the format string, language bindings, and data bean for a particular label.
/labelconfig/label/classname The class name of the data bean for which this label format will be applied.
/labelconfig/label/format Defines the printer language instructions as well as the live data to be included in the format string. The live data is read from the classname by using reflection on the bean defined in classname. There must be at least one format tag but the format supports an unlimited number of tags, one for each different language/printer type we support.
/labelconfig/label/format,attribute language This specifies which language this format tag should be associated with (that is, if language="ZPL2," then printers which have the language set to ZPL2 will receive printer language strings using this format tag).
/labelconfig/label/format/lang Contains native printer language instructions. These elements surround the data which is read from instances of the /labelconfig/label/classname element in this format tag.
/labelconfig/label/format/data Contains the name of a public getter method defined on the /labelconfig/label/format/classname element. The method name will be replaced in line with its value on the data bean.
/labelconfig/label/format/data, constraint attribute The constraint attribute refers to a defined constraint tag which lives in the /labelconfig/constraint.
/labelconfig/constraint/ Contains configuration information for instances of the com.lawson.mscm.platform.printer.label. DataConstraint interface.
/labelconfig/constraint/, attribute id The unique identifier with which data elements can specify that they would like to use this particular data element.
/labelconfig/constraint/,classname attribute

The class that will handle constraining the respective data element.

Note: 

See Constraint Definitions for a list of the available constraint classes.

/labelconfig/constraint/maxlength The value of this XML node will be the maximum length of the data printed to the label.
/labelconfig/constraint/pad The value of this XML node will be the character that is used to pad the data.