Class MamElements.MamResultExtension
- java.lang.Object
-
- org.jivesoftware.smackx.mam.element.MamElements.MamResultExtension
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- MamElements
public static class MamElements.MamResultExtension extends Object implements ExtensionElement
MAM result extension class.- See Also:
- XEP-0313: Message Archive Management
-
-
Constructor Summary
Constructors Constructor Description MamResultExtension(String queryId, String id, Forwarded<Message> forwarded)
MAM result extension constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MamElements.MamResultExtension
from(MessageView message)
String
getElementName()
Returns the root element name.Forwarded<Message>
getForwarded()
Get the forwarded element.String
getId()
Get the id.String
getNamespace()
Returns the root element XML namespace.String
getQueryId()
Get query id.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 String ELEMENT
result element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MamResultExtension
public MamResultExtension(String queryId, String id, Forwarded<Message> forwarded)
MAM result extension constructor.- Parameters:
queryId
- TODO javadoc me pleaseid
- TODO javadoc me pleaseforwarded
- TODO javadoc me please
-
-
Method Detail
-
getForwarded
public Forwarded<Message> getForwarded()
Get the forwarded element.- Returns:
- the forwarded element
-
getQueryId
public final String getQueryId()
Get query id.- Returns:
- the query id
-
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 final String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
from
public static MamElements.MamResultExtension from(MessageView message)
-
-