Class Nick
- java.lang.Object
-
- org.jivesoftware.smackx.nick.packet.Nick
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class Nick extends java.lang.Object implements ExtensionElement
A minimalistic implementation of aExtensionElement
for nicknames.- See Also:
- XEP-0172: User Nickname
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT_NAME
Deprecated.useQNAME
instead.static java.lang.String
NAMESPACE
static javax.xml.namespace.QName
QNAME
-
Constructor Summary
Constructors Constructor Description Nick(java.lang.String name)
-
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
getName()
The value of this nickname.java.lang.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
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
ELEMENT_NAME
@Deprecated public static final java.lang.String ELEMENT_NAME
Deprecated.useQNAME
instead.Deprected, do not use.
-
-
Constructor Detail
-
Nick
public Nick(java.lang.String name)
-
-
Method Detail
-
getName
public java.lang.String getName()
The value of this nickname.- Returns:
- the nickname
-
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)
-
-