|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.barbecue.linear.upc.ModuleFactory
The UPC-A barcode module definitions.
Field Summary | |
static Module |
CENTRE_GUARD
|
static int |
GUARD_CHAR_SIZE
|
protected static java.util.List |
KEYS_LEFT
|
protected static java.util.List |
KEYS_RIGHT
|
static Module |
LEFT_GUARD
The guards for the barcode |
static Module |
LEFT_MARGIN
|
static int |
LEFT_WIDTH
|
static Module |
RIGHT_GUARD
|
static Module |
RIGHT_MARGIN
|
protected static java.util.Map |
SET_LEFT
|
protected static java.util.Map |
SET_RIGHT
|
Constructor Summary | |
protected |
ModuleFactory()
Cannot construct. |
Method Summary | |
static Module |
getModule(java.lang.String key,
int position)
Returns the module that represents the specified character. |
static Module |
getModuleForIndex(int index)
Returns the encoded module at the given index position. |
static boolean |
hasModule(java.lang.String key)
Indicates whether the given key is represented in the default encoding table that this module factory contains. |
protected static void |
initBaseSet()
Initialise the module definitions. |
protected static void |
initLeftSet()
|
protected static void |
initRightSet()
|
static boolean |
isValid(java.lang.String key)
Indicates whether the given character is valid for this barcode or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Module LEFT_GUARD
public static final Module CENTRE_GUARD
public static final Module RIGHT_GUARD
public static final Module LEFT_MARGIN
public static final Module RIGHT_MARGIN
protected static final java.util.List KEYS_LEFT
protected static final java.util.List KEYS_RIGHT
protected static final java.util.Map SET_LEFT
protected static final java.util.Map SET_RIGHT
public static final int LEFT_WIDTH
public static final int GUARD_CHAR_SIZE
Constructor Detail |
protected ModuleFactory()
Method Detail |
protected static void initBaseSet()
protected static void initRightSet()
protected static void initLeftSet()
public static Module getModule(java.lang.String key, int position)
key
- The data character to get the encoding module forposition
- The position of the data character, starts at 0
public static boolean hasModule(java.lang.String key)
public static Module getModuleForIndex(int index)
index
- The index of the module required
public static boolean isValid(java.lang.String key)
key
- The key to check for validity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |