pops.ale.epc.spec.grouping
Class Sgtin96

java.lang.Object
  extended by pops.ale.epc.spec.grouping.Epc
      extended by pops.ale.epc.spec.grouping.Sgtin96

public class Sgtin96
extends Epc


Field Summary
 
Fields inherited from class pops.ale.epc.spec.grouping.Epc
MAX_URI_FIELDS, tagData, type, uriFields, uriRepresentation
 
Constructor Summary
Sgtin96()
          Constructor
 
Method Summary
 boolean equals(Epc tag)
          Comparison utility : to be implemented by children.
 long getCompanyPrefix()
           
 UnsignedBigInt getField(int index)
          To be implemented by children.
 byte getFilterValue()
           
 int getItemReference()
           
 java.lang.String getPureUri()
          Conversion Utilities: to be implemented by children.
 java.lang.String getRawDecUri()
           
 java.lang.String getRawHexUri()
           
 long getSerialNumber()
           
 java.lang.String getTagUri()
           
 void setRepresentation(UriRepresentation uriRepresentation)
          Sets the current representation for accessing fields.
 void setTagData(byte[] tagData)
          Sets tag Data, by reference.
 java.lang.String toString()
           
 
Methods inherited from class pops.ale.epc.spec.grouping.Epc
getNumFields, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sgtin96

public Sgtin96()
Constructor

Method Detail

setTagData

public void setTagData(byte[] tagData)
Description copied from class: Epc
Sets tag Data, by reference. To be overloaded by children to set up fields

Overrides:
setTagData in class Epc

setRepresentation

public void setRepresentation(UriRepresentation uriRepresentation)
                       throws java.lang.IllegalArgumentException
Sets the current representation for accessing fields. Useful for the grouping algorithm.

Specified by:
setRepresentation in class Epc
Parameters:
uriRepresentation - must be UriRepresentation.EPC_PURE or UriRepresentation.EPC_TAG
Throws:
java.lang.IllegalArgumentException - if header is none of UriRepresentation.EPC_PURE or UriRepresentation.EPC_TAG

getField

public UnsignedBigInt getField(int index)
                        throws java.lang.IndexOutOfBoundsException
Description copied from class: Epc
To be implemented by children. Depends on the encoding scheme. This method is intended to return the field as an UnsignedBigInt. the returned value may be a Byte, Integer, Long, or even BigInteger...

Specified by:
getField in class Epc
Parameters:
index - the field index [0..NumFields[
Returns:
field output field value
Throws:
java.lang.IndexOutOfBoundsException - if given index out of bounds

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation of the EPC object : int the Tag URI

getPureUri

public java.lang.String getPureUri()
Description copied from class: Epc
Conversion Utilities: to be implemented by children. Using EpcCodec and its children.

Specified by:
getPureUri in class Epc

getTagUri

public java.lang.String getTagUri()
Specified by:
getTagUri in class Epc

getRawDecUri

public java.lang.String getRawDecUri()
Specified by:
getRawDecUri in class Epc

getRawHexUri

public java.lang.String getRawHexUri()
Specified by:
getRawHexUri in class Epc

getFilterValue

public byte getFilterValue()

getCompanyPrefix

public long getCompanyPrefix()

getItemReference

public int getItemReference()

getSerialNumber

public long getSerialNumber()

equals

public boolean equals(Epc tag)
Description copied from class: Epc
Comparison utility : to be implemented by children.

Specified by:
equals in class Epc