public class Nick extends Object implements PacketExtension
PacketExtension
for nicknames.Modifier and Type | Class and Description |
---|---|
static class |
Nick.Provider |
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME |
static String |
NAMESPACE |
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getName()
The value of this nickname
|
String |
getNamespace()
Returns the root element XML namespace.
|
void |
setName(String name)
Sets the value of this nickname
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final String NAMESPACE
public static final String ELEMENT_NAME
public void setName(String name)
name
- the name to setpublic String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension