com.ibm.sensorevent.model.payload
Interface ITag

All Superinterfaces:
IGenericGroup, IGroup
All Known Implementing Classes:
EPCTag, Tag

public interface ITag
extends IGroup

ITag is the interface representing the class Tag.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String TAG
          NAme of the tag group
static java.lang.String TAGID
          Name fo the tag attribute
static java.lang.String TAGUSERDATA
          Name of the tag metadata group
 
Method Summary
 void addTagUserData(java.lang.String name, java.lang.String value)
          Add the name/value pair to the tag metadata
 java.lang.String getTagID()
          Returns the tag ID attribute value
 java.lang.String getTagID(java.lang.String name)
          Returns the value of the specified attribute name
 java.lang.String getTagUserData(java.lang.String name)
          Returns the value of tag metadata with the specified name
 void setTagID(java.lang.String value)
          Sets the tag ID attribute value
 void setTagID(java.lang.String id, java.lang.String value)
          Sets the String attribute to the specified id and value
 
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

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

TAG

static final java.lang.String TAG
NAme of the tag group

See Also:
Constant Field Values

TAGID

static final java.lang.String TAGID
Name fo the tag attribute

See Also:
Constant Field Values

TAGUSERDATA

static final java.lang.String TAGUSERDATA
Name of the tag metadata group

See Also:
Constant Field Values
Method Detail

getTagID

java.lang.String getTagID()
                          throws SensorEventException
Returns the tag ID attribute value

Throws:
SensorEventException

setTagID

void setTagID(java.lang.String value)
              throws SensorEventException
Sets the tag ID attribute value

Throws:
SensorEventException

getTagID

java.lang.String getTagID(java.lang.String name)
                          throws SensorEventException
Returns the value of the specified attribute name

Parameters:
name - the name of the attribute
Throws:
SensorEventException

setTagID

void setTagID(java.lang.String id,
              java.lang.String value)
              throws SensorEventException
Sets the String attribute to the specified id and value

Parameters:
id - the name of the attribute
value - the value of the atribute
Throws:
SensorEventException

addTagUserData

void addTagUserData(java.lang.String name,
                    java.lang.String value)
                    throws SensorEventException
Add the name/value pair to the tag metadata

Throws:
SensorEventException

getTagUserData

java.lang.String getTagUserData(java.lang.String name)
                                throws SensorEventException
Returns the value of tag metadata with the specified name

Parameters:
name - the name of the tag metadata
Throws:
SensorEventException


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