public interface Node
A representation of a node (element) in an XML document. This interface extnends the standard DOM Node interface with methods for getting and setting the value of a node, for getting and setting the parent of a node, and for removing a node.
|Fields inherited from interface org.w3c.dom.Node|
Returns the parent element of this
Returns the value of this node if this is a
Notifies the implementation that this
Sets the parent of this
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.
|Methods inherited from interface org.w3c.dom.Node|
Textnode or the value of the immediate child of this node otherwise. If there is an immediate child of this
Nodethat it is a
Textnode then it's value will be returned. If there is more than one
Textnode then the value of the first
TextNode will be returned. Otherwise
Stringwith the text of this node if this is a
Textnode or the text contained by the first immediate child of this
Nodeobject that is a
Textobject if such a child exists;
void setValue(java.lang.String value)
Textnode, or if there are no children in which case a child
Textnode will be created.
IllegalStateException- if the node is not a
Textnode and either has more than one child node or has a child node that is not a
void setParentElement(SOAPElement parent) throws SOAPException
Nodeobject to the given
SOAPElementobject to be set as the parent of this
SOAPException- if there is a problem in setting the parent to the given element
Nodeobject. This method can throw an
UnsupportedOperationExceptionif the tree is not kept in memory.
SOAPElementobject that is the parent of this
Nodeobject is root
java.lang.UnsupportedOperationException- if the whole tree is not kept in memory
Nodeobject from the tree.
Nodeobject is no longer being used by the application and that the implementation is free to reuse this object for nodes that may be created later.
Calling the method
recycleNode implies that the method
detachNode has been called previously.