|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smackx.packet.Nick
public class Nick
A minimalistic implementation of a PacketExtension
for nicknames.
Nested Class Summary | |
---|---|
static class |
Nick.Provider
|
Field Summary | |
---|---|
static String |
ELEMENT_NAME
|
static String |
NAMESPACE
|
Constructor Summary | |
---|---|
Nick(String name)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAMESPACE
public static final String ELEMENT_NAME
Constructor Detail |
---|
public Nick(String name)
Method Detail |
---|
public String getName()
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
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |