|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.common.domain.values.Barcode
public class Barcode
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.
Nested Class Summary | |
---|---|
static class |
Barcode.BARCODE_ALIGN
A BARCODE_ALIGN defines whether the Barcode is applied
LEFT or RIGHT . |
Constructor Summary | |
---|---|
Barcode(String value)
Create a new Barcode with a String. |
Method Summary | |
---|---|
String |
adjustBarcode(String val)
Force the Barcode to be aligned to the determined rules regarding padding, alignment. |
static Barcode.BARCODE_ALIGN |
getAlignment()
Returns the alignment. |
static int |
getLength()
Return the length. |
static char |
getPadder()
Return the padding character. |
String |
getValue()
Return the Barcode value. |
static boolean |
isPadded()
Check if Barcode is padded. |
static void |
setAlignment(Barcode.BARCODE_ALIGN align)
Set the alignment. |
void |
setValue(String value)
Set the Barcode value. |
String |
toString()
Return the value of the Barcode as String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Barcode(String value)
Barcode
with a String.
value
- The value of the Barcode
as String
IllegalArgumentException
- when the value is set to null
.Method Detail |
---|
public String adjustBarcode(String val)
val
- The old Barcode as String
public static Barcode.BARCODE_ALIGN getAlignment()
public static void setAlignment(Barcode.BARCODE_ALIGN align)
align
- The alignment to setpublic static boolean isPadded()
Barcode
is padded.
true
if Barcode
is padded, otherwise
false
.public static char getPadder()
public String getValue()
Barcode
value.
Barcode
public void setValue(String value)
Barcode
value.
value
- The value to setpublic static int getLength()
public String toString()
Barcode
as String.
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |