Package org.jivesoftware.smack.packet
Class Session.Feature
- java.lang.Object
-
- org.jivesoftware.smack.packet.Session.Feature
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- Session
public static class Session.Feature extends java.lang.Object implements ExtensionElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OPTIONAL_ELEMENT
static javax.xml.namespace.QName
QNAME
-
Constructor Summary
Constructors Constructor Description Feature(boolean optional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.boolean
isOptional()
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
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
OPTIONAL_ELEMENT
public static final java.lang.String OPTIONAL_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Feature
public Feature(boolean optional)
-
-
Method Detail
-
isOptional
public boolean isOptional()
-
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.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-