public class NodeExtension extends java.lang.Object implements ExtensionElement
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 |
---|---|
java.lang.String |
getElementName()
Returns the root element name.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
java.lang.String |
getNode()
Gets the node id.
|
java.lang.String |
toString() |
java.lang.CharSequence |
toXML()
Returns the XML representation of this Element.
|
public NodeExtension(PubSubElementType elem, java.lang.String nodeId)
PubSubElementType
and the specified node id.elem
- Defines the element name and namespacenodeId
- Specifies the id of the nodepublic NodeExtension(PubSubElementType elem)
PubSubElementType
.elem
- Defines the element name and namespacepublic java.lang.String getNode()
public java.lang.String getElementName()
NamedElement
getElementName
in interface NamedElement
public java.lang.String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public java.lang.CharSequence toXML()
Element
public java.lang.String toString()
toString
in class java.lang.Object