Class DiscoverItems.Item
java.lang.Object
org.jivesoftware.smackx.disco.packet.DiscoverItems.Item
- Enclosing class:
DiscoverItems
An item is associated with an XMPP Entity, usually thought of a children of the parent
entity and normally are addressable as a JID.
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the action that specifies the action being taken for this item.Returns the entity's ID.getName()Returns the entity's name.getNode()Returns the node attribute that supplements the 'jid' attribute.voidSets the action that specifies the action being taken for this item.voidSets the entity's name.voidSets the node attribute that supplements the 'jid' attribute.toString()toXML()
-
Field Details
-
UPDATE_ACTION
-
REMOVE_ACTION
-
-
Constructor Details
-
Item
-
-
Method Details
-
getEntityID
-
getName
-
setName
-
getNode
Returns the node attribute that supplements the 'jid' attribute. A node is merely something that is associated with a JID and for which the JID can provide information.Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
- Returns:
- the node attribute that supplements the 'jid' attribute
-
setNode
Sets the node attribute that supplements the 'jid' attribute. A node is merely something that is associated with a JID and for which the JID can provide information.Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
- Parameters:
node- the node attribute that supplements the 'jid' attribute
-
getAction
Returns the action that specifies the action being taken for this item. Possible action values are: "update" and "remove". Update should either create a new entry if the node and jid combination does not already exist, or simply update an existing entry. If "remove" is used as the action, the item should be removed from persistent storage.- Returns:
- the action being taken for this item
-
setAction
Sets the action that specifies the action being taken for this item. Possible action values are: "update" and "remove". Update should either create a new entry if the node and jid combination does not already exist, or simply update an existing entry. If "remove" is used as the action, the item should be removed from persistent storage.- Parameters:
action- the action being taken for this item
-
toXML
-
toString
-