Class MUCLightElements.AffiliationsChangeExtension
- java.lang.Object
-
- org.jivesoftware.smackx.muclight.element.MUCLightElements.AffiliationsChangeExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- MUCLightElements
public static class MUCLightElements.AffiliationsChangeExtension extends java.lang.Object implements ExtensionElement
Affiliations change extension element class.
-
-
Constructor Summary
Constructors Constructor Description AffiliationsChangeExtension(java.util.HashMap<Jid,MUCLightAffiliation> affiliations, java.lang.String prevVersion, java.lang.String version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MUCLightElements.AffiliationsChangeExtension
from(Message message)
java.util.HashMap<Jid,MUCLightAffiliation>
getAffiliations()
Get the affiliations.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
getPrevVersion()
Get the previous version.java.lang.String
getVersion()
Get the version.java.lang.CharSequence
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
AffiliationsChangeExtension
public AffiliationsChangeExtension(java.util.HashMap<Jid,MUCLightAffiliation> affiliations, java.lang.String prevVersion, java.lang.String version)
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getAffiliations
public java.util.HashMap<Jid,MUCLightAffiliation> getAffiliations()
Get the affiliations.- Returns:
- the affiliations
-
getPrevVersion
public java.lang.String getPrevVersion()
Get the previous version.- Returns:
- the previous version
-
getVersion
public java.lang.String getVersion()
Get the version.- Returns:
- the version
-
toXML
public java.lang.CharSequence toXML(XmlEnvironment enclosingNamespace)
-
from
public static MUCLightElements.AffiliationsChangeExtension from(Message message)
-
-