Package org.jivesoftware.smackx.pubsub
Class AffiliationsExtension
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.AffiliationsExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
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 and 8.9 Manage Affiliations.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Affiliation>
items
-
Constructor Summary
Constructors Constructor Description AffiliationsExtension()
AffiliationsExtension(java.util.List<Affiliation> subList)
AffiliationsExtension(java.util.List<Affiliation> subList, java.lang.String node)
AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, java.util.List<Affiliation> subList)
AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, java.util.List<Affiliation> subList, java.lang.String node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
java.util.List<Affiliation>
getAffiliations()
-
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 java.util.List<Affiliation> items
-
-
Constructor Detail
-
AffiliationsExtension
public AffiliationsExtension()
-
AffiliationsExtension
public AffiliationsExtension(java.util.List<Affiliation> subList)
-
AffiliationsExtension
public AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, java.util.List<Affiliation> subList)
-
AffiliationsExtension
public AffiliationsExtension(java.util.List<Affiliation> subList, java.lang.String node)
-
AffiliationsExtension
public AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, java.util.List<Affiliation> subList, java.lang.String node)
-
-
Method Detail
-
getAffiliations
public java.util.List<Affiliation> getAffiliations()
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-