public class StanzaIdElement extends StableAndUniqueIdElement
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_BY |
static String |
ELEMENT |
ATTR_ID| Constructor and Description |
|---|
StanzaIdElement(String by) |
StanzaIdElement(String id,
String by) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBy() |
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
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.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
getIdpublic static final String ELEMENT
public static final String ATTR_BY
public StanzaIdElement(String by)
public StanzaIdElement(String id, String by)
public static boolean hasStanzaId(Message message)
message - messagepublic static StanzaIdElement getStanzaId(Message message)
message - messagepublic String getNamespace()
ExtensionElementpublic String getElementName()
NamedElementpublic XmlStringBuilder toXML(String enclosingNamespace)
ElementenclosingNamespace - the enclosing namespace or null.