Class Barcode
java.lang.Object
org.openwms.common.transport.barcode.Barcode
- All Implemented Interfaces:
Serializable
@Configurable(autowire=BY_TYPE,
preConstruction=true)
@Embeddable
public class Barcode
extends Object
implements Serializable
A Barcode is a printable item with an unique identifier to label
TransportUnits. The identifier has a defined number of
characters whereas these characters are aligned either left or right. Non filled positions of a Barcode are padded with a so called
padding character.- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA BARCODE_ALIGN defines whether theBarcodeis appliedLEFTorRIGHT. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLength of a standard 1D Barcode field.static charDefines a character used for padding.
If the actually length of theBarcodeis less than the maximum definedlengththe rest will be filled withpaddercharacters.private String'Identifier' of theBarcode. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BARCODE_LENGTH
public static final int BARCODE_LENGTHLength of a standard 1D Barcode field.- See Also:
-
PADDER
public static char PADDERDefines a character used for padding.
If the actually length of theBarcodeis less than the maximum definedlengththe rest will be filled withpaddercharacters. -
value
'Identifier' of theBarcode.Note:It is not guaranteed that this field must be unique.
-
-
Constructor Details
-
Barcode
protected Barcode()Dear JPA... -
Barcode
-
-
Method Details
-
of
Simple factory method to replace default constructor in application logic (still needed for framework stuff).- Parameters:
value- The value of theBarcodeas String- Returns:
- Formatted Barcode instance
-
getValue
Return theBarcodevalue.- Returns:
- The value of the
Barcode
-
toString
Return the value of theBarcodeas String. -
equals
-
hashCode
public int hashCode()
-