|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.packet.DiscoverItems.Item
public static class DiscoverItems.Item
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 | |
---|---|
static String |
REMOVE_ACTION
Request to remove the item. |
static String |
UPDATE_ACTION
Request to create or update the item. |
Constructor Summary | |
---|---|
DiscoverItems.Item(String entityID)
Create a new Item associated with a given entity. |
Method Summary | |
---|---|
String |
getAction()
Returns the action that specifies the action being taken for this item. |
String |
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. |
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UPDATE_ACTION
public static final String REMOVE_ACTION
Constructor Detail |
---|
public DiscoverItems.Item(String entityID)
entityID
- the id of the entity that contains the itemMethod Detail |
---|
public String getEntityID()
public String getName()
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 String toXML()
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |