public enum LengthControlMode extends java.lang.Enum<LengthControlMode>
LengthControlMode is an enumeration defining the operating length
control mode for each barcode family that has lengths. This enumeration specify how each L1 and L2 length values
should be applied to a label.
The type is one of:
| NONE | Turn off label length check. |
| ONE_FIXED | Only L1 value will be used, the only labels with a fixed L1 length will be considered valid. |
| TWO_FIXED | Both L1 and L2 will be used, only labels with a fixed L1 or L2 length will be considered valid. |
| RANGE | Both L1 and L2 will be used. The only labels with a length that is ranging from the minor length, between L1 and L2, to the major, again between L1 and L2, will be considered valid. If L1 is less than L2, L1 will be considered as the minor length of the desired range; otherwise the opposite. |
| Enum Constant and Description |
|---|
NONE
No control
|
ONE_FIXED
One single fixed length control
|
RANGE
Range length control
|
TWO_FIXED
Two fixed lengths control
|
| Modifier and Type | Method and Description |
|---|---|
static LengthControlMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LengthControlMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LengthControlMode NONE
public static final LengthControlMode ONE_FIXED
public static final LengthControlMode TWO_FIXED
public static final LengthControlMode RANGE
public static LengthControlMode[] values()
for (LengthControlMode c : LengthControlMode.values()) System.out.println(c);
public static LengthControlMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null