public class NodeExtension
extends java.lang.Object
implements org.jivesoftware.smack.packet.XmlElement
| Constructor and Description |
|---|
NodeExtension(PubSubElementType elem)
Constructs a
NodeExtension with an element name specified
by PubSubElementType. |
NodeExtension(PubSubElementType elem,
java.lang.String nodeId)
Constructs a
NodeExtension with an element name specified
by PubSubElementType and the specified node id. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addXml(org.jivesoftware.smack.util.XmlStringBuilder xml) |
java.lang.String |
getElementName() |
java.lang.String |
getNamespace() |
java.lang.String |
getNode()
Gets the node id.
|
PubSubNamespace |
getPubSubNamespace() |
java.lang.String |
toString() |
org.jivesoftware.smack.util.XmlStringBuilder |
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) |
public NodeExtension(PubSubElementType elem, java.lang.String nodeId)
NodeExtension with an element name specified
by PubSubElementType and the specified node id.elem - Defines the element name and namespacenodeId - Specifies the id of the nodepublic NodeExtension(PubSubElementType elem)
NodeExtension with an element name specified
by PubSubElementType.elem - Defines the element name and namespacepublic java.lang.String getNode()
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.NamedElementpublic PubSubNamespace getPubSubNamespace()
public final java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.XmlElementpublic final org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
toXML in interface org.jivesoftware.smack.packet.Elementprotected void addXml(org.jivesoftware.smack.util.XmlStringBuilder xml)
public java.lang.String toString()
toString in class java.lang.Object