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 List<Affiliation>
items
-
Constructor Summary
Constructors Constructor Description AffiliationsExtension()
AffiliationsExtension(List<Affiliation> subList)
AffiliationsExtension(List<Affiliation> subList, String node)
AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, List<Affiliation> subList)
AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, List<Affiliation> subList, String node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
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 List<Affiliation> items
-
-
Constructor Detail
-
AffiliationsExtension
public AffiliationsExtension()
-
AffiliationsExtension
public AffiliationsExtension(List<Affiliation> subList)
-
AffiliationsExtension
public AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, List<Affiliation> subList)
-
AffiliationsExtension
public AffiliationsExtension(List<Affiliation> subList, String node)
-
AffiliationsExtension
public AffiliationsExtension(Affiliation.AffiliationNamespace affiliationsNamespace, List<Affiliation> subList, String node)
-
-
Method Detail
-
getAffiliations
public List<Affiliation> getAffiliations()
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-