Class MessageCorrectExtension
- java.lang.Object
-
- org.jivesoftware.smackx.message_correct.element.MessageCorrectExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class MessageCorrectExtension extends java.lang.Object implements ExtensionElement
An Extension that implements XEP-0308: Last Message Correction This extension is expected to be added to message stanzas. Please refer to the XEP for more implementation guidelines.- See Also:
- XEP-0308: Last Message Correction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT
The XML element name of a 'message correct' extension.static java.lang.String
ID_TAG
The id tag of a 'message correct' extension.static java.lang.String
NAMESPACE
The namespace that qualifies the XML element of a 'message correct' extension.static javax.xml.namespace.QName
QNAME
-
Constructor Summary
Constructors Constructor Description MessageCorrectExtension(java.lang.String idInitialMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageCorrectExtension
from(Message message)
java.lang.String
getElementName()
Returns the root element name.java.lang.String
getIdInitialMessage()
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
-
ELEMENT
public static final java.lang.String ELEMENT
The XML element name of a 'message correct' extension.- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
The namespace that qualifies the XML element of a 'message correct' extension.- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
ID_TAG
public static final java.lang.String ID_TAG
The id tag of a 'message correct' extension.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageCorrectExtension
public MessageCorrectExtension(java.lang.String idInitialMessage)
-
-
Method Detail
-
getIdInitialMessage
public java.lang.String getIdInitialMessage()
-
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.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
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.
-
from
public static MessageCorrectExtension from(Message message)
-
-