Package org.jivesoftware.smack.packet
Class Mechanisms
- java.lang.Object
-
- org.jivesoftware.smack.packet.Mechanisms
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class Mechanisms extends Object implements ExtensionElement
-
-
Constructor Summary
Constructors Constructor Description Mechanisms(String mechanism)
Mechanisms(Collection<String> mechanisms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.List<String>
getMechanisms()
String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
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 String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
mechanisms
public final List<String> mechanisms
-
-
Constructor Detail
-
Mechanisms
public Mechanisms(String mechanism)
-
Mechanisms
public Mechanisms(Collection<String> mechanisms)
-
-
Method Detail
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getMechanisms
public List<String> getMechanisms()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-