Smack

org.jivesoftware.smackx.pubsub
Class AffiliationsExtension

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

public class AffiliationsExtension
extends NodeExtension

Represents the affiliations element of the reply to a request for affiliations. It is defined in the specification in section 5.7 Retrieve Affiliations.

Author:
Robin Collier

Field Summary
protected  java.util.List<Affiliation> items
           
 
Constructor Summary
AffiliationsExtension()
           
AffiliationsExtension(java.util.List<Affiliation> subList)
           
 
Method Summary
 java.util.List<Affiliation> getAffiliations()
           
 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<Affiliation> items
Constructor Detail

AffiliationsExtension

public AffiliationsExtension()

AffiliationsExtension

public AffiliationsExtension(java.util.List<Affiliation> subList)
Method Detail

getAffiliations

public java.util.List<Affiliation> getAffiliations()

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.