public interface Node
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addChild(Node childNode)
Add a child node to this node.
|
void |
addContent(int position,
Node childNode)
Add the child node to this node at the specified position.
|
void |
addContent(Node childNode)
Add the child node to this node.
|
java.lang.Object |
clone()
Return a deep copy of this node, including copies of all sub-nodes.
|
Node |
detach()
Detach this node from its parent node.
|
Element |
getChild(java.lang.String nodeName)
Get the first child node with the specified name.
|
java.util.Vector<Node> |
getChildren()
Get the child nodes of this node.
|
int |
getChildrenCount()
Get the number of child nodes.
|
java.lang.String |
getName()
Get the name of this node.
|
java.lang.String |
getValue()
Get the node value.
|
boolean |
hasChildren()
Return true if this node has child nodes.
|
boolean |
removeChild(java.lang.String nodeName)
Remove the first child node with the specified name.
|
void |
setName(java.lang.String nodeName)
Set the name of the node.
|
void |
setValue(java.lang.String theValue)
Set the node value.
|
void setName(java.lang.String nodeName)
nodeName
- the name of the node.java.lang.String getName()
void setValue(java.lang.String theValue)
theValue
- the String-based value of the node.java.lang.String getValue()
boolean hasChildren()
int getChildrenCount()
void addChild(Node childNode)
childNode
- the node to add as a child node.Element getChild(java.lang.String nodeName)
nodeName
- the name of the node to return.java.util.Vector<Node> getChildren()
boolean removeChild(java.lang.String nodeName)
nodeName
- the name of the node to remove.void addContent(Node childNode)
childNode
- the node to add as a child node.void addContent(int position, Node childNode)
position
- the position at which to add the child node.childNode
- the node to add as a child node.Node detach()
java.lang.Object clone()