Class StanzaIdElement
java.lang.Object
org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
org.jivesoftware.smackx.sid.element.StanzaIdElement
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final QName
Fields inherited from class org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
ATTR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBy()
Returns the root element name.Returns the root element XML namespace.static StanzaIdElement
getStanzaId
(Message message) Return the stanza-id element of a message.static boolean
hasStanzaId
(Message message) Return true, if a message contains a stanza-id element.toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
getId
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 Details
-
ELEMENT
- See Also:
-
NAMESPACE
- See Also:
-
QNAME
-
ATTR_BY
- See Also:
-
-
Constructor Details
-
StanzaIdElement
-
StanzaIdElement
-
-
Method Details
-
hasStanzaId
Return true, if a message contains a stanza-id element.- Parameters:
message
- message- Returns:
- true if message contains stanza-id element, otherwise false.
-
getStanzaId
Return the stanza-id element of a message.- Parameters:
message
- message- Returns:
- stanza-id element of a jid, or null if absent.
-
getBy
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Returns:
- the namespace.
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
toXML
-