Package de.pdark.decentxml
Interface Parent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParentaddNode(int index, Node node)ParentaddNode(Node node)ParentaddNodes(int index, Node... nodes)ParentaddNodes(int index, java.util.Collection<? extends Node> nodes)ParentaddNodes(Node... nodes)ParentaddNodes(java.util.Collection<? extends Node> nodes)ParentclearNodes()Remove all nodesElementgetChild(java.lang.String path)Find a child element (not a node!) by pathNodegetNode(int index)Get a specific node from the listjava.util.List<Node>getNodes()Get the list of child nodes.booleanhasNodes()Does this node have children?intnodeCount()The number of nodes in the listintnodeIndexOf(Node node)The index of the node in the node list or -1 if it isn't in the listNoderemoveNode(int index)Remove a node from the listbooleanremoveNode(Node node)Remove a node from the list
-
-
-
Method Detail
-
getNode
Node getNode(int index)
Get a specific node from the list
-
removeNode
Node removeNode(int index)
Remove a node from the list- Returns:
- The removed node.
-
removeNode
boolean removeNode(Node node)
Remove a node from the list- Returns:
- true, if the node is in the list
-
clearNodes
Parent clearNodes()
Remove all nodes
-
getNodes
java.util.List<Node> getNodes()
Get the list of child nodes.CAUTION: Changes to this list will modify the actual data structure! So don't do this unless you know what you're doing!
-
nodeIndexOf
int nodeIndexOf(Node node)
The index of the node in the node list or -1 if it isn't in the list
-
nodeCount
int nodeCount()
The number of nodes in the list
-
hasNodes
boolean hasNodes()
Does this node have children?
-
getChild
Element getChild(java.lang.String path)
Find a child element (not a node!) by path
-
-