public static class DiscoverItems.Item extends 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 String |
REMOVE_ACTION
Request to remove the item.
|
static String |
UPDATE_ACTION
Request to create or update the item.
|
Constructor and Description |
---|
Item(org.jxmpp.jid.Jid entityID)
Create a new Item associated with a given entity.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the action that specifies the action being taken for this item.
|
org.jxmpp.jid.Jid |
getEntityID()
Returns the entity's ID.
|
String |
getName()
Returns the entity's name.
|
String |
getNode()
Returns the node attribute that supplements the 'jid' attribute.
|
void |
setAction(String action)
Sets the action that specifies the action being taken for this item.
|
void |
setName(String name)
Sets the entity's name.
|
void |
setNode(String node)
Sets the node attribute that supplements the 'jid' attribute.
|
XmlStringBuilder |
toXML() |
public static final String UPDATE_ACTION
public static final String REMOVE_ACTION
public Item(org.jxmpp.jid.Jid entityID)
entityID
- the id of the entity that contains the itempublic org.jxmpp.jid.Jid getEntityID()
public void setName(String name)
name
- the entity's name.public String getNode()
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
public void setNode(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 String getAction()
public void setAction(String action)
action
- the action being taken for this itempublic XmlStringBuilder toXML()