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#item
namespace, 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 Jid
getJid()
Gets the JID.String
getName()
Gets the name.String
getNode()
Gets the node.String
toString()
-
-
-
Method Detail
-
getJid
public final Jid getJid()
Gets the JID.- Specified by:
getJid
in interfaceAddressable
- Returns:
- The JID.
-
getName
public final String getName()
Gets the name.
-
getNode
public final String getNode()
Gets the node.- Specified by:
getNode
in interfaceServiceDiscoveryNode
- Returns:
- The node.
-
-