Class ItemDiscovery
- java.lang.Object
-
- rocks.xmpp.extensions.disco.model.items.ItemDiscovery
-
- All Implemented Interfaces:
ItemNode
,ServiceDiscoveryNode
public final class ItemDiscovery extends Object implements ItemNode
The implementation of the<query/>
element in thehttp://jabber.org/protocol/disco#item
namespace.This class is immutable.
- See Also:
- XEP-0030: Service Discovery, XML Schema
-
-
Constructor Summary
Constructors Constructor Description ItemDiscovery()
Creates an empty element, used for item discovery requests.ItemDiscovery(String node)
Creates an item discovery element with a node attribute.ItemDiscovery(String node, Collection<? extends Item> items, ResultSetManagement resultSetManagement)
Creates an item discovery element with a node attribute and result set management.ItemDiscovery(String node, Collection<Item> items)
Creates an item discovery element with a node attribute.ItemDiscovery(String node, ResultSetManagement resultSetManagement)
Creates an item discovery element with a node attribute.ItemDiscovery(Collection<Item> items)
Creates an item discovery element with nodes.ItemDiscovery(Collection<Item> items, ResultSetManagement resultSetManagement)
Creates an item discovery element with nodes and result set management.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Item>
getItems()
Gets the items.String
getNode()
Gets the node name.ResultSetManagement
getResultSetManagement()
Gets the result set.String
toString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/disco#items- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ItemDiscovery
public ItemDiscovery()
Creates an empty element, used for item discovery requests.
-
ItemDiscovery
public ItemDiscovery(String node)
Creates an item discovery element with a node attribute.- Parameters:
node
- The node.
-
ItemDiscovery
public ItemDiscovery(String node, ResultSetManagement resultSetManagement)
Creates an item discovery element with a node attribute.- Parameters:
node
- The node.resultSetManagement
- The result set management extension.
-
ItemDiscovery
public ItemDiscovery(Collection<Item> items)
Creates an item discovery element with nodes.- Parameters:
items
- The items.
-
ItemDiscovery
public ItemDiscovery(Collection<Item> items, ResultSetManagement resultSetManagement)
Creates an item discovery element with nodes and result set management.- Parameters:
items
- The items.resultSetManagement
- The result set management extension.
-
ItemDiscovery
public ItemDiscovery(String node, Collection<Item> items)
Creates an item discovery element with a node attribute.- Parameters:
node
- The node.items
- The items.
-
ItemDiscovery
public ItemDiscovery(String node, Collection<? extends Item> items, ResultSetManagement resultSetManagement)
Creates an item discovery element with a node attribute and result set management.- Parameters:
node
- The node.items
- The items.resultSetManagement
- The result set management extension.
-
-
Method Detail
-
getItems
public final List<Item> getItems()
Description copied from interface:ItemNode
Gets the items.
-
getResultSetManagement
public final ResultSetManagement getResultSetManagement()
Description copied from interface:ItemNode
Gets the result set.- Specified by:
getResultSetManagement
in interfaceItemNode
- Returns:
- The result set.
-
getNode
public final String getNode()
Description copied from interface:ServiceDiscoveryNode
Gets the node name.- Specified by:
getNode
in interfaceServiceDiscoveryNode
- Returns:
- The node.
-
-