|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parent
This is an interface for anything which can be a parent:
Element
and Document
.
Element
,
Document
Method Summary | |
---|---|
Parent |
addNode(int index,
Node node)
|
Parent |
addNode(Node node)
|
Parent |
addNodes(java.util.Collection<? extends Node> nodes)
|
Parent |
addNodes(int index,
java.util.Collection<? extends Node> nodes)
|
Parent |
addNodes(int index,
Node... nodes)
|
Parent |
addNodes(Node... nodes)
|
Parent |
clearNodes()
Remove all nodes |
Element |
getChild(java.lang.String path)
Find a child element (not a node!) by path |
Node |
getNode(int index)
Get a specific node from the list |
java.util.List<Node> |
getNodes()
Get the list of child nodes. |
boolean |
hasNodes()
Does this node have children? |
int |
nodeCount()
The number of nodes in the list |
int |
nodeIndexOf(Node node)
The index of the node in the node list or -1 if it isn't in the list |
Node |
removeNode(int index)
Remove a node from the list |
boolean |
removeNode(Node node)
Remove a node from the list |
Methods inherited from interface de.pdark.decentxml.Node |
---|
copy, copy, createClone, getType, toXML, toXML |
Method Detail |
---|
Parent addNode(Node node)
Parent addNode(int index, Node node)
Parent addNodes(Node... nodes)
Parent addNodes(java.util.Collection<? extends Node> nodes)
Parent addNodes(int index, Node... nodes)
Parent addNodes(int index, java.util.Collection<? extends Node> nodes)
Node getNode(int index)
Node removeNode(int index)
boolean removeNode(Node node)
Parent clearNodes()
java.util.List<Node> getNodes()
CAUTION: Changes to this list will modify the actual data structure! So don't do this unless you know what you're doing!
int nodeIndexOf(Node node)
int nodeCount()
boolean hasNodes()
Element getChild(java.lang.String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |