public class NodeExtension extends Object implements PacketExtension
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() |
String |
toXML()
Returns the XML representation of the PacketExtension.
|
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 getNode()
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
Copyright © 2003-2007 Jive Software.