Class ItemElement
- java.lang.Object
-
- rocks.xmpp.extensions.disco.model.items.ItemElement
-
- All Implemented Interfaces:
Addressable,Item,ServiceDiscoveryNode
public final class ItemElement extends Object implements Item
The implementation of the<item/>element in thehttp://jabber.org/protocol/disco#itemnamespace, used for item discovery.This class is immutable.
-
-
Constructor Summary
Constructors Constructor Description ItemElement(Jid jid, String node, String name)ItemElement(Item item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JidgetJid()Gets the JID.StringgetName()Gets the name.StringgetNode()Gets the node.StringtoString()
-
-
-
Method Detail
-
getJid
public final Jid getJid()
Gets the JID.- Specified by:
getJidin interfaceAddressable- Returns:
- The JID.
-
getName
public final String getName()
Gets the name.
-
getNode
public final String getNode()
Gets the node.- Specified by:
getNodein interfaceServiceDiscoveryNode- Returns:
- The node.
-
-