org.jivesoftware.smackx.pubsub
Class SubscriptionsExtension

java.lang.Object
  extended by org.jivesoftware.smackx.pubsub.NodeExtension
      extended by org.jivesoftware.smackx.pubsub.SubscriptionsExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class SubscriptionsExtension
extends NodeExtension

Represents the element holding the list of subscription elements.

Author:
Robin Collier

Constructor Summary
SubscriptionsExtension(java.util.List<Subscription> subList)
          Subscriptions to the root node
SubscriptionsExtension(java.lang.String nodeId, java.util.List<Subscription> subList)
          Subscriptions to the specified node.
 
Method Summary
 java.util.List<Subscription> getSubscriptions()
          Gets the list of subscriptions.
 java.lang.String toXML()
           
 
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriptionsExtension

public SubscriptionsExtension(java.util.List<Subscription> subList)
Subscriptions to the root node

Parameters:
subList - The list of subscriptions

SubscriptionsExtension

public SubscriptionsExtension(java.lang.String nodeId,
                              java.util.List<Subscription> subList)
Subscriptions to the specified node.

Parameters:
nodeId - The node subscribed to
subList - The list of subscriptions
Method Detail

getSubscriptions

public java.util.List<Subscription> getSubscriptions()
Gets the list of subscriptions.

Returns:
List of subscriptions

toXML

public java.lang.String toXML()
Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Overrides:
toXML in class NodeExtension