Class ChatStateExtension
- java.lang.Object
-
- org.jivesoftware.smackx.chatstates.packet.ChatStateExtension
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class ChatStateExtension extends java.lang.Object implements ExtensionElement
Represents a chat state which is an extension to message packets which is used to indicate the current status of a chat participant.- See Also:
ChatState
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMESPACE
-
Constructor Summary
Constructors Constructor Description ChatStateExtension(ChatState state)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatStategetChatState()java.lang.StringgetElementName()Returns the root element name.java.lang.StringgetNamespace()Returns the root element XML namespace.XmlStringBuildertoXML(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
-
-
Constructor Detail
-
ChatStateExtension
public ChatStateExtension(ChatState state)
Default constructor. The argument provided is the state that the extension will represent.- Parameters:
state- the state that the extension represents.
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
getChatState
public ChatState getChatState()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-