|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.pios.symbology.Symbology
com.sap.ip.me.api.pios.symbology.SymbologyLinear
com.sap.ip.me.api.pios.symbology.UPC_A
Represents the UPC-A Symbology.
The Universal Product Code (UPC), is the most recognized bar code in the United States, found on on virtually every consumer good on the shelves of your local supermarket, as well as books, magazines, and newspapers. UPC A is a fixed length 12 number symbology; the first ten used for the Universal Product Code, the eleventh indicates the type of number and the twelfth is a modulo check digit.
The following options can be set for this symbology:
...
UPC_A upcA = new UPC_A(UPC_A.TWO_DIGIT_ADDON);
...
Field Summary | |
static long |
CHECK_DIGIT_TRANSMIT
Constant to indicate reporting of the bar code check digit. |
static long |
FIVE_DIGIT_ADDON
Constant to indicate five digit addon option. |
static long |
TWO_DIGIT_ADDON
Constant to indicate two digit addon option. |
Fields inherited from class com.sap.ip.me.api.pios.symbology.Symbology |
options |
Constructor Summary | |
UPC_A()
Constructs a new UPC_A object. |
|
UPC_A(long options)
Constructs a new UPC_A object with the symbology options provided. |
Method Summary | |
java.lang.String |
getName()
Returns the symbology name. |
int |
getType()
Returns the symbology type. |
void |
setOptions(long options)
Sets the configured options for the symbology. |
Methods inherited from class com.sap.ip.me.api.pios.symbology.Symbology |
getOptions, validateOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long TWO_DIGIT_ADDON
public static final long FIVE_DIGIT_ADDON
public static final long CHECK_DIGIT_TRANSMIT
Constructor Detail |
public UPC_A()
public UPC_A(long options) throws InvalidSymbologyException
The options value is either one of the option constants defined by this class,
or must be built by bitwise OR'ing together (that is, using
the long
"|" operator) two or more of those option constants.
options
- the symbology options mask
InvalidSymbologyException
- thrown if the received options are invalid for this symbologyMethod Detail |
public java.lang.String getName()
getName
in class Symbology
public int getType()
getType
in class Symbology
SymbologyType
public void setOptions(long options) throws InvalidSymbologyException
setOptions
in class Symbology
options
- the symbology options mask
InvalidSymbologyException
- thrown if the received options are invalid for this symbology
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |