com.ibm.sensorevent.model.payload
Class EPCTag

java.lang.Object
  extended by com.ibm.sensorevent.model.generic.GenericGroup
      extended by com.ibm.sensorevent.model.Group
          extended by com.ibm.sensorevent.model.payload.Tag
              extended by com.ibm.sensorevent.model.payload.EPCTag
All Implemented Interfaces:
IGenericGroup, IGroup, ITag, java.io.Serializable

public class EPCTag
extends Tag

EPCTag handles tag ID conversion to various EPC formats.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String IDURI
          EPC pure identity URI attribute name (the Premises Server's ID URI format)
static java.lang.String RAWURI
          EPC raw hex URI attribute name (the Premises Server's raw URI format)
static java.lang.String TAGURI
          EPC tag URI attribute name (the Premises Server's tag URI format)
 
Fields inherited from class com.ibm.sensorevent.model.generic.GenericGroup
attributes, groups, name
 
Fields inherited from interface com.ibm.sensorevent.model.payload.ITag
TAG, TAGID, TAGUSERDATA
 
Constructor Summary
protected EPCTag()
          Constructs an EPCTag
protected EPCTag(java.lang.String newname)
          Constructs an EPCTag with the specified name
 
Method Summary
 java.lang.String getAsIDURI()
          Returns this EPCTag's pure identity URI attribute value (the Premises Server's ID URI format)
 java.lang.String getAsRawURI()
          Return this EPCTag's raw hex URI attribute value (the Premises Server's raw URI format)
 java.lang.String getAsTagURI()
          Returns this EPCTag's tag URI attribute value (the Premises Server's tag URI format)
static IGenericGroup getInstance()
          Factory method to create an EPCTag
static IGenericGroup getInstance(Group group)
          Factory method to create an EPCTag from the specified group
static IGenericGroup getInstance(java.lang.String newname)
          Factory method to create an EPCTag with the specified name
 void setTagID(java.lang.String value)
          Sets this EPCTag's tag ID attribute value.
 
Methods inherited from class com.ibm.sensorevent.model.payload.Tag
addTagUserData, getTagID, getTagID, getTagUserData, getTagUserDataMap, setTagID
 
Methods inherited from class com.ibm.sensorevent.model.Group
fromMap, fromTypedMap, processGroup, processMap, processTypedGroup, processTypedMap, toMap, toTypedMap
 
Methods inherited from class com.ibm.sensorevent.model.generic.GenericGroup
addAttribute, addAttributeArray, addBooleanArrayAttribute, addBooleanAttribute, addByteArrayAttribute, addByteAttribute, addDateArrayAttribute, addDateArrayAttributeAsLong, addDateAttribute, addDateAttributeAsLong, addDoubleArrayAttribute, addDoubleAttribute, addFloatArrayAttribute, addFloatAttribute, addGroup, addHexAttribute, addHexAttribute, addIntArrayAttribute, addIntAttribute, addLongArrayAttribute, addLongAttribute, addShortArrayAttribute, addShortAttribute, addStringArrayAttribute, addStringAttribute, createGroupPath, getAttribute, getAttributes, getAttributesAsList, getBooleanAttributeArrayValue, getBooleanAttributeValue, getByteAttributeArrayValue, getByteAttributeValue, getDateAttributeArrayValue, getDateAttributeArrayValueAsLong, getDateAttributeValue, getDateAttributeValueAsLong, getDoubleAttributeArrayValue, getDoubleAttributeValue, getFloatAttributeArrayValue, getFloatAttributeValue, getGroup, getGroups, getGroupsAsList, getHexAttributeValue, getHexAttributeValueAsString, getIntAttributeArrayValue, getIntAttributeValue, getLongAttributeArrayValue, getLongAttributeValue, getName, getShortAttributeArrayValue, getShortAttributeValue, getStringAttributeArrayValue, getStringAttributeValue, removeAttributes, removeGroups, setAttributes, setGroups, setName, toString, traverseGroupPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.sensorevent.model.IGroup
toMap, toTypedMap
 
Methods inherited from interface com.ibm.sensorevent.model.generic.IGenericGroup
addAttribute, addAttributeArray, addBooleanArrayAttribute, addBooleanAttribute, addByteArrayAttribute, addByteAttribute, addDateArrayAttribute, addDateArrayAttributeAsLong, addDateAttribute, addDateAttributeAsLong, addDoubleArrayAttribute, addDoubleAttribute, addFloatArrayAttribute, addFloatAttribute, addGroup, addHexAttribute, addHexAttribute, addIntArrayAttribute, addIntAttribute, addLongArrayAttribute, addLongAttribute, addShortArrayAttribute, addShortAttribute, addStringArrayAttribute, addStringAttribute, createGroupPath, getAttribute, getAttributes, getAttributesAsList, getBooleanAttributeArrayValue, getBooleanAttributeValue, getByteAttributeArrayValue, getByteAttributeValue, getDateAttributeArrayValue, getDateAttributeArrayValueAsLong, getDateAttributeValue, getDateAttributeValueAsLong, getDoubleAttributeArrayValue, getDoubleAttributeValue, getFloatAttributeArrayValue, getFloatAttributeValue, getGroup, getGroups, getGroupsAsList, getHexAttributeValue, getHexAttributeValueAsString, getIntAttributeArrayValue, getIntAttributeValue, getLongAttributeArrayValue, getLongAttributeValue, getName, getShortAttributeArrayValue, getShortAttributeValue, getStringAttributeArrayValue, getStringAttributeValue, removeAttributes, removeGroups, setAttributes, setGroups, setName, traverseGroupPath
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

TAGURI

public static final java.lang.String TAGURI
EPC tag URI attribute name (the Premises Server's tag URI format)

See Also:
Constant Field Values

IDURI

public static final java.lang.String IDURI
EPC pure identity URI attribute name (the Premises Server's ID URI format)

See Also:
Constant Field Values

RAWURI

public static final java.lang.String RAWURI
EPC raw hex URI attribute name (the Premises Server's raw URI format)

See Also:
Constant Field Values
Constructor Detail

EPCTag

protected EPCTag()
          throws SensorEventException
Constructs an EPCTag

Throws:
SensorEventException

EPCTag

protected EPCTag(java.lang.String newname)
          throws SensorEventException
Constructs an EPCTag with the specified name

Parameters:
newname - the name
Throws:
SensorEventException
Method Detail

getInstance

public static IGenericGroup getInstance()
                                 throws SensorEventException
Factory method to create an EPCTag

Throws:
SensorEventException

getInstance

public static IGenericGroup getInstance(java.lang.String newname)
                                 throws SensorEventException
Factory method to create an EPCTag with the specified name

Parameters:
newname - the name
Throws:
SensorEventException

getInstance

public static IGenericGroup getInstance(Group group)
                                 throws SensorEventException
Factory method to create an EPCTag from the specified group

Parameters:
group - the source group
Throws:
SensorEventException

setTagID

public void setTagID(java.lang.String value)
              throws SensorEventException
Sets this EPCTag's tag ID attribute value. Also sets the EPC tag URI, pure identity URI, and raw hex URI attribute values.

Specified by:
setTagID in interface ITag
Overrides:
setTagID in class Tag
Throws:
SensorEventException

getAsTagURI

public java.lang.String getAsTagURI()
                             throws SensorEventException
Returns this EPCTag's tag URI attribute value (the Premises Server's tag URI format)

Throws:
SensorEventException

getAsIDURI

public java.lang.String getAsIDURI()
                            throws SensorEventException
Returns this EPCTag's pure identity URI attribute value (the Premises Server's ID URI format)

Throws:
SensorEventException

getAsRawURI

public java.lang.String getAsRawURI()
                             throws SensorEventException
Return this EPCTag's raw hex URI attribute value (the Premises Server's raw URI format)

Throws:
SensorEventException


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.