|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rfid.premises.app.entities.EPCTag
public class EPCTag
EPCTag is an object used to represent a tag read. Within this object you can access encoding type (tagFormat), company prefix, filter value, etc.
NOTE: the concept of a tag format in the EPCTag object is the same
concept of an epc encoding type. Also, the strings used to represent these
tag formats are EPC Global String formats. See Epc
.
EPCTagGroup
Field Summary | |
---|---|
static int |
DOD_DIGIT
int used to represent USDOD encoding |
static java.lang.String |
FILTER_CASE
default decimal filter value for case |
static java.lang.String |
FILTER_DOD_CASE
default decimal filter value for a DOD case |
static java.lang.String |
FILTER_DOD_ITEM
default decimal filter value for a DOD item |
static java.lang.String |
FILTER_DOD_PALLET
default decimal filter value for a DOD pallet |
static java.lang.String |
FILTER_ITEM
default decimal filter value for item |
static java.lang.String |
FILTER_PALLET
default decimal filter value for pallet |
static int |
GIAI_DIGIT
int used to represent GIAI encoding |
static int |
GID_DIGIT
int used to represent GID encoding |
static int |
GRAI_DIGIT
int used to represent GRAI encoding |
static int |
SGLN_DIGIT
int used to represent SGLN encoding |
static int |
SGTIN_DIGIT
int used to represent SGTIN encoding |
static int |
SSCC_DIGIT
int used to represent SSCC encoding |
Constructor Summary | |
---|---|
EPCTag()
base constructor |
|
EPCTag(java.lang.String epcuristring)
Constructor used to create an EPCTag object using a uri String. |
|
EPCTag(java.lang.String format,
java.lang.String filter,
java.lang.String cpprefix,
java.lang.String itemreference,
java.lang.String serialnumber)
Constructor used to create an EPCTag object. |
Method Summary | |
---|---|
java.lang.String |
getCompanyPrefix()
gets the company prefix |
java.lang.String |
getFilterValue()
gets the filter value |
java.lang.String |
getIdURI()
gets the ID URI (e.g., urn:epc:id:3.30000.3245342.00002). |
java.lang.String |
getIndicatorDigit()
gets indicator digit for tag |
java.lang.String |
getItemRef()
gets the item reference |
java.lang.String |
getRawURI()
gets the raw URI, or epc tag value |
java.lang.String |
getSerialNum()
gets the serial number |
java.lang.String |
getTagFormat()
gets the tag format (epc encoding type) |
int |
getTagFormatDigit()
gets the tag format digit |
java.lang.String |
getTagURI()
gets the tag URI which is a human readable version of the tag read (e.g., urn:epc:tag:sgtin-96:3.30000.3245342.00002) |
boolean |
hasCompanyPrefix()
checks to see if a tag read has a company prefix |
boolean |
hasFilterValue()
checks to see if tag read has a filter value |
boolean |
hasItemRef()
checks to see if a tag read has an item reference |
boolean |
is64bit()
Checks to see if the tag read is 64-bit |
boolean |
is96bit()
Checks to see if the tag read is 96-bit |
void |
setCompanyPrefix(java.lang.String string)
Sets the company prefix |
void |
setFilterValue(java.lang.String string)
sets the filter value |
void |
setIdURI(java.lang.String string)
sets the ID URI (e.g., urn:epc:id:3.30000.3245342.00002). |
void |
setIndicatorDigit(java.lang.String string)
Sets indicator digit for tag |
void |
setItemRef(java.lang.String string)
sets item reference |
void |
setRawURI(java.lang.String string)
sets the raw URI, or epc tag value |
void |
setSerialNum(java.lang.String string)
sets the serial number |
void |
setTagFormat(java.lang.String string)
sets the tag format, or epc encoding type |
void |
setTagURI(java.lang.String string)
sets the tag URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FILTER_DOD_PALLET
public static final java.lang.String FILTER_DOD_CASE
public static final java.lang.String FILTER_DOD_ITEM
public static final java.lang.String FILTER_PALLET
public static final java.lang.String FILTER_CASE
public static final java.lang.String FILTER_ITEM
public static final int GID_DIGIT
public static final int SSCC_DIGIT
public static final int GIAI_DIGIT
public static final int GRAI_DIGIT
public static final int SGTIN_DIGIT
public static final int DOD_DIGIT
public static final int SGLN_DIGIT
Constructor Detail |
---|
public EPCTag()
public EPCTag(java.lang.String format, java.lang.String filter, java.lang.String cpprefix, java.lang.String itemreference, java.lang.String serialnumber)
format
- tag format, or epc encodingfilter
- epc filter valiecpprefix
- company prefixitemreference
- item referenceserialnumber
- tag serial numberpublic EPCTag(java.lang.String epcuristring) throws InvalidTagURIException
epcuristring
- uri String
InvalidTagURIException
Method Detail |
---|
public boolean is96bit()
public boolean is64bit()
public boolean hasFilterValue()
public boolean hasItemRef()
public boolean hasCompanyPrefix()
public java.lang.String getCompanyPrefix()
public java.lang.String getFilterValue()
public java.lang.String getItemRef()
public java.lang.String getSerialNum()
public java.lang.String getTagFormat()
public int getTagFormatDigit()
DOD_DIGIT
,
GIAI_DIGIT
,
GID_DIGIT
,
GRAI_DIGIT
,
SGLN_DIGIT
,
SGTIN_DIGIT
,
SSCC_DIGIT
public java.lang.String getTagURI()
public void setCompanyPrefix(java.lang.String string)
string
- company prefixpublic void setFilterValue(java.lang.String string)
string
- filter valuepublic void setItemRef(java.lang.String string)
string
- item referencepublic void setSerialNum(java.lang.String string)
string
- serial numberpublic void setTagFormat(java.lang.String string)
string
- tag formatpublic void setTagURI(java.lang.String string) throws InvalidTagURIException
This method takes the information found from the tag URI and sets the other class information (company prefix, filter value, etc) if it has them.
string
- tag URI
InvalidTagURIException
setTagURI(String)
public java.lang.String getRawURI()
public void setRawURI(java.lang.String string)
string
- raw URI Stringpublic java.lang.String getIdURI()
setIdURI(String)
public void setIdURI(java.lang.String string)
string
- ID URI
This method takes the information found from the tag URI and sets the other class information (company prefix, filter value, etc) if it has them.
getIdURI()
public java.lang.String getIndicatorDigit()
public void setIndicatorDigit(java.lang.String string)
string
- indicator digit to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |