public class NodeExtension extends Object implements ExtensionElement
Constructor and Description |
---|
NodeExtension(PubSubElementType elem)
Constructs a NodeExtension with an element name specified
by
PubSubElementType . |
NodeExtension(PubSubElementType elem,
String nodeId)
Constructs a NodeExtension with an element name specified
by
PubSubElementType and the specified node id. |
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
getNode()
Gets the node id
|
String |
toString() |
CharSequence |
toXML()
Returns the XML representation of this Element.
|
public NodeExtension(PubSubElementType elem, 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 String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public CharSequence toXML()
Element