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
TransportUnit
s. 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
Modifier and TypeClassDescriptionstatic enum
A BARCODE_ALIGN defines whether theBarcode
is appliedLEFT
orRIGHT
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Length of a standard 1D Barcode field.static char
Defines a character used for padding.
If the actually length of theBarcode
is less than the maximum definedlength
the rest will be filled withpadder
characters.private String
'Identifier' of theBarcode
. -
Constructor Summary
-
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 theBarcode
is less than the maximum definedlength
the rest will be filled withpadder
characters. -
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 theBarcode
as String- Returns:
- Formatted Barcode instance
-
getValue
Return theBarcode
value.- Returns:
- The value of the
Barcode
-
toString
Return the value of theBarcode
as String. -
equals
-
hashCode
public int hashCode()
-