Package org.openwms.common.transport
Class Barcode
java.lang.Object
org.openwms.common.transport.Barcode
- All Implemented Interfaces:
Serializable
A Barcode is a printable item with a 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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Return theBarcode
value.int
hashCode()
static Barcode
Simple factory method to replace default constructor in application logic (still needed for framework stuff).void
Set theBarcode
value.toString()
Return the value of theBarcode
as String.
-
Field Details
-
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
-
setValue
Set theBarcode
value.- Parameters:
value
- The value to set
-
toString
Return the value of theBarcode
as String. -
equals
-
hashCode
public int hashCode()
-