Package org.jivesoftware.smackx.pubsub
Class SubscriptionsExtension
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.SubscriptionsExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class SubscriptionsExtension extends NodeExtension
Represents the element holding the list of subscription elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscriptionsExtension.SubscriptionsNamespace
-
Field Summary
Fields Modifier and Type Field Description protected List<Subscription>
items
-
Constructor Summary
Constructors Constructor Description SubscriptionsExtension(String nodeId, List<Subscription> subList)
Subscriptions to the specified node.SubscriptionsExtension(List<Subscription> subList)
Subscriptions to the root node.SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, String nodeId, List<Subscription> subList)
Subscriptions to the specified node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
List<Subscription>
getSubscriptions()
Gets the list of subscriptions.-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
items
protected List<Subscription> items
-
-
Constructor Detail
-
SubscriptionsExtension
public SubscriptionsExtension(List<Subscription> subList)
Subscriptions to the root node.- Parameters:
subList
- The list of subscriptions
-
SubscriptionsExtension
public SubscriptionsExtension(String nodeId, List<Subscription> subList)
Subscriptions to the specified node.- Parameters:
nodeId
- The node subscribed tosubList
- The list of subscriptions
-
SubscriptionsExtension
public SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, String nodeId, List<Subscription> subList)
Subscriptions to the specified node.- Parameters:
subscriptionsNamespace
- the namespace used by this elementnodeId
- The node subscribed tosubList
- The list of subscriptions- Since:
- 4.3
-
-
Method Detail
-
getSubscriptions
public List<Subscription> getSubscriptions()
Gets the list of subscriptions.- Returns:
- List of subscriptions
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-