public static class DiscoverItems.Item
extends java.lang.Object
An item associated with an entity may not be addressable as a JID. In order to handle such items, Service Discovery uses an optional 'node' attribute that supplements the 'jid' attribute.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REMOVE_ACTION
Request to remove the item.
|
static java.lang.String |
UPDATE_ACTION
Request to create or update the item.
|
Constructor and Description |
---|
DiscoverItems.Item(java.lang.String entityID)
Create a new Item associated with a given entity.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
Returns the action that specifies the action being taken for this item.
|
java.lang.String |
getEntityID()
Returns the entity's ID.
|
java.lang.String |
getName()
Returns the entity's name.
|
java.lang.String |
getNode()
Returns the node attribute that supplements the 'jid' attribute.
|
void |
setAction(java.lang.String action)
Sets the action that specifies the action being taken for this item.
|
void |
setName(java.lang.String name)
Sets the entity's name.
|
void |
setNode(java.lang.String node)
Sets the node attribute that supplements the 'jid' attribute.
|
XmlStringBuilder |
toXML() |
public static final java.lang.String UPDATE_ACTION
public static final java.lang.String REMOVE_ACTION
public DiscoverItems.Item(java.lang.String entityID)
entityID
- the id of the entity that contains the itempublic java.lang.String getEntityID()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the entity's name.public java.lang.String getNode()
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
public void setNode(java.lang.String node)
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
node
- the node attribute that supplements the 'jid' attributepublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the action being taken for this itempublic XmlStringBuilder toXML()