Class ChatStateExtension
- java.lang.Object
-
- org.jivesoftware.smackx.chatstates.packet.ChatStateExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class ChatStateExtension extends 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
-
-
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()
String
getElementName()
Returns the root element name.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 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 String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public 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)
-
-