Class MessageCorrectExtension
- java.lang.Object
-
- org.jivesoftware.smackx.message_correct.element.MessageCorrectExtension
-
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
public class MessageCorrectExtension extends 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 StringELEMENTThe XML element name of a 'message correct' extension.static StringID_TAGThe id tag of a 'message correct' extension.static StringNAMESPACEThe namespace that qualifies the XML element of a 'message correct' extension.static QNameQNAME
-
Constructor Summary
Constructors Constructor Description MessageCorrectExtension(String idInitialMessage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageCorrectExtensionfrom(Message message)StringgetElementName()Returns the root element name.StringgetIdInitialMessage()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.XmlElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
The XML element name of a 'message correct' extension.- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
The namespace that qualifies the XML element of a 'message correct' extension.- See Also:
- Constant Field Values
-
ID_TAG
public static final String ID_TAG
The id tag of a 'message correct' extension.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageCorrectExtension
public MessageCorrectExtension(String idInitialMessage)
-
-
Method Detail
-
getIdInitialMessage
public String getIdInitialMessage()
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
from
public static MessageCorrectExtension from(Message message)
-
-