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.String
NAMESPACE
-
Constructor Summary
Constructors Constructor Description ChatStateExtension(ChatState state)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatState
getChatState()
java.lang.String
getElementName()
Returns the root element name.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
-
-
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: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.
-
getChatState
public ChatState getChatState()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-