|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataHandler
DataHandler is the common interface for all of the input handler classes used to represent data to be encoded into an EPC. This interface provides setters/getters for the common fields of the input handlers. An instance of a data handler is associated with a specific type of input data and understands how to parse that input data into fields. Those fields include a company prefix and other fields determined by the ECPglobal Tag Data Spec. For some input data types, the input may include a serial number, if so, it will be used to serialize the input data, if not provided, it will be generated. In combination with the fields parsed out of the input data, this serial number is used to create an EPCglobal ID URI which uniquely identifies a specific object/location/entity or collection thereof. This unique ID URI may then be used to create an EPC using the appropriate encoder(s) associated with the input type. Each input type has one or more encoders associated with it, they are identical in functionality, but differ in the length of the EPC that they generate from the ID URI.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
DOD
|
static java.lang.String |
GIAI
|
static java.lang.String |
GID
|
static java.lang.String |
GLN
|
static java.lang.String |
GRAI
|
static java.lang.String |
GTIN14
|
static int |
MAX_CAGE_DODAAC_LENGTH
|
static int |
MAX_EAN_UCC_COMPANY_PREFIX_LENGTH
|
static int |
MAX_GID_GENERAL_MANAGER_LENGTH
|
static int |
MAX_NDC10_COMPANY_PREFIX_LENGTH
|
static int |
MIN_CAGE_DODAAC_LENGTH
|
static int |
MIN_EAN_UCC_COMPANY_PREFIX_LENGTH
|
static int |
MIN_GID_GENERAL_MANAGER_LENGTH
|
static int |
MIN_NDC10_COMPANY_PREFIX_LENGTH
|
static java.lang.String |
NDC10
|
static java.lang.String |
SSCC18
|
Method Summary | |
---|---|
java.lang.String |
getCompanyPrefix()
Gets the company prefix portion of the input data that was used to construct this instance of a data handler. |
java.lang.String |
getHandlerType()
Gets the string name of the input handler used to construct this insntance. |
java.lang.String |
getInputData()
Gets the input data that was used to construct this instance of a data handler |
int |
getMaxCompanyPrefixLength()
Gets the maximum length that a company prefix can be for this input handler type. |
int |
getMinCompanyPrefixLength()
Gets the minimum length that a company prefix can be for this input handler type. |
java.lang.String |
getSerialNumber()
Gets the serial number associated with this instance of a data handler. |
java.lang.String |
getUnserializedPureId()
Gets the portion of the ID URI (pure id) associated with this handler this is not serialized, i.e. |
java.lang.String |
serialize(java.lang.String discriminator)
Generates a unique EPCglobal ID URI from the input data of this instance of data handler. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String GTIN14
static final java.lang.String SSCC18
static final java.lang.String GRAI
static final java.lang.String GIAI
static final java.lang.String NDC10
static final java.lang.String DOD
static final java.lang.String GID
static final java.lang.String GLN
static final int MIN_EAN_UCC_COMPANY_PREFIX_LENGTH
static final int MAX_EAN_UCC_COMPANY_PREFIX_LENGTH
static final int MAX_CAGE_DODAAC_LENGTH
static final int MIN_CAGE_DODAAC_LENGTH
static final int MIN_NDC10_COMPANY_PREFIX_LENGTH
static final int MAX_NDC10_COMPANY_PREFIX_LENGTH
static final int MIN_GID_GENERAL_MANAGER_LENGTH
static final int MAX_GID_GENERAL_MANAGER_LENGTH
Method Detail |
---|
java.lang.String getInputData()
java.lang.String getCompanyPrefix()
java.lang.String getSerialNumber()
java.lang.String getHandlerType()
int getMaxCompanyPrefixLength()
int getMinCompanyPrefixLength()
java.lang.String serialize(java.lang.String discriminator) throws com.ibm.rfid.epc.config.SerialGenerationException
discriminator
- a string that can refer to a location/entity/object with which
to associate a serial number. This allows for managing of ranges of serial numbers,
if this feature is not desired, an empty or null value may be passed.
com.ibm.rfid.epc.config.SerialGenerationException
- if an error occurs during serialization. Range checking
on the serial number is not performed during serialization and thus cannot be the cause of
this exception.java.lang.String getUnserializedPureId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |