|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rfid.epc.datahandler.AbstractHandler
com.ibm.rfid.epc.datahandler.GTIN14
public class GTIN14
Manages an instance of a data handler for an EAN.UCC Global Trade IDentifier
(GTIN) data type. A GTIN14 is a 14-digit number composed of an indicator digit that can be used
to indicate the level of packaging the GTIN is associated with, an EAN Company Prefix,
an Item Reference, and a Check Digit.
The input data for this handler may be specified in either of two forms, both of which are strings.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.rfid.epc.datahandler.AbstractHandler |
---|
companyPrefix, companyPrefixLength, handlerType, inputData, maxCompanyPrefixLength, minCompanyPrefixLength, pureId, serialNumber, useLocalConfigMgr |
Fields inherited from interface com.ibm.rfid.epc.datahandler.DataHandler |
---|
DOD, GIAI, GID, GLN, GRAI, GTIN14, MAX_CAGE_DODAAC_LENGTH, MAX_EAN_UCC_COMPANY_PREFIX_LENGTH, MAX_GID_GENERAL_MANAGER_LENGTH, MAX_NDC10_COMPANY_PREFIX_LENGTH, MIN_CAGE_DODAAC_LENGTH, MIN_EAN_UCC_COMPANY_PREFIX_LENGTH, MIN_GID_GENERAL_MANAGER_LENGTH, MIN_NDC10_COMPANY_PREFIX_LENGTH, NDC10, SSCC18 |
Constructor Summary | |
---|---|
GTIN14(java.lang.String inputData,
int companyPrefixLength,
java.lang.String encodingType)
Creates an instance of a data handler for an GTIN data type. |
Method Summary | |
---|---|
java.lang.String |
getCheckDigit()
Gets the check digit of the input data string. |
java.lang.String |
getIndicatorDigit()
Gets the EAN.UCC indicator digit |
java.lang.String |
getItemReference()
|
java.lang.String |
getUnserializedPureId()
Create the portion of the ID URI (pure id) associated with this handler this is not serialized, i.e. |
void |
setCheckDigit(java.lang.String checkDigit)
Sets the check digit of the input data string. |
void |
setIndicatorDigit(java.lang.String indicatorDigit)
Sets the EAN.UCC indicator digit |
void |
setItemReference(java.lang.String itemReference)
Sets the item reference portion of the input data string. |
Methods inherited from class com.ibm.rfid.epc.datahandler.AbstractHandler |
---|
getCompanyPrefix, getCompanyPrefixLength, getHandlerType, getInputData, getMaxCompanyPrefixLength, getMinCompanyPrefixLength, getPureId, getSerialNumber, serialize, setCompanyPrefix, setCompanyPrefixLength, setHandlerType, toString, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.rfid.epc.datahandler.DataHandler |
---|
getCompanyPrefix, getHandlerType, getInputData, getMaxCompanyPrefixLength, getMinCompanyPrefixLength, getSerialNumber, serialize |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public GTIN14(java.lang.String inputData, int companyPrefixLength, java.lang.String encodingType) throws InvalidFormatException
inputData
- numeric string data to be managed by this handler. Input data may be any of
the two forms discussed above.companyPrefixLength
- length of CP portion of the data stringencodingType
- string encoding type
InvalidFormatException
- if any of the input data fails validationMethod Detail |
---|
public java.lang.String getItemReference()
public void setItemReference(java.lang.String itemReference)
itemReference
- string item reference number of this data handlerpublic java.lang.String getIndicatorDigit()
public void setIndicatorDigit(java.lang.String indicatorDigit)
indicatorDigit
- the indicator digit of this data handlerpublic java.lang.String getCheckDigit()
public void setCheckDigit(java.lang.String checkDigit)
checkDigit
- the check digit of this data handlerpublic java.lang.String getUnserializedPureId()
getUnserializedPureId
in interface DataHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |