java.lang.Object
io.sf.carte.echosvg.dom.AbstractParentNode.ChildNodes
- All Implemented Interfaces:
Serializable
,NodeList
- Enclosing class:
AbstractParentNode
To manage the children of this node.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The number of children.protected int
The number of Element children.protected ExtendedNode
The first child.protected ExtendedNode
The last child. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAppends a node to the tree.int
DOM: ImplementsNodeList.getLength()
.insert
(ExtendedNode n, ExtendedNode r) Inserts a node in the tree.item
(int index) DOM: ImplementsNodeList.item(int)
.Removes the given node from the tree.replace
(ExtendedNode n, ExtendedNode o) Replaces a node in the tree by an other.
-
Field Details
-
firstChild
The first child. -
lastChild
The last child. -
children
protected int childrenThe number of children. -
elementChildren
protected int elementChildrenThe number of Element children.
-
-
Constructor Details
-
ChildNodes
public ChildNodes()Creates a new ChildNodes object.
-
-
Method Details
-
item
DOM: ImplementsNodeList.item(int)
. -
getLength
public int getLength()DOM: ImplementsNodeList.getLength()
. -
append
Appends a node to the tree. The node is assumed not to be a DocumentFragment instance. -
insert
Inserts a node in the tree. -
replace
Replaces a node in the tree by an other. -
remove
Removes the given node from the tree.
-