Smack

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:
PacketExtension

public class SubscriptionsExtension
extends NodeExtension

Represents the element holding the list of subscription elements.

Author:
Robin Collier

Field Summary
protected  java.util.List<Subscription> items
           
 
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()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

protected java.util.List<Subscription> items
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()
Description copied from interface: PacketExtension
Returns the XML representation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Overrides:
toXML in class NodeExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.