Class OriginIdElement
java.lang.Object
org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
org.jivesoftware.smackx.sid.element.OriginIdElement
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
ATTR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OriginIdElement
addTo
(MessageBuilder messageBuilder) Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.boolean
Returns the root element name.Returns the root element XML namespace.static OriginIdElement
getOriginId
(Message message) Return the origin-id element of a message or null, if absent.int
hashCode()
static boolean
hasOriginId
(Message message) Return true, if the message contains a origin-id element.toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class org.jivesoftware.smackx.sid.element.StableAndUniqueIdElement
getId
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
-
Constructor Details
-
OriginIdElement
public OriginIdElement() -
OriginIdElement
-
-
Method Details
-
addTo
Add an origin-id element to a message and set the stanzas id to the same id as in the origin-id element.- Parameters:
messageBuilder
- the message builder to add an origin ID to.- Returns:
- the added origin-id element.
-
hasOriginId
Return true, if the message contains a origin-id element.- Parameters:
message
- message- Returns:
- true if the message contains a origin-id, false otherwise.
-
getOriginId
Return the origin-id element of a message or null, if absent.- Parameters:
message
- message- Returns:
- origin-id element
-
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
-
equals
-
hashCode
-