protected class AbstractParentNode.ChildNodes
extends java.lang.Object
implements org.w3c.dom.NodeList, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
children
The number of children.
|
protected int |
elementChildren
The number of Element children.
|
protected ExtendedNode |
firstChild
The first child.
|
protected ExtendedNode |
lastChild
The last child.
|
Constructor and Description |
---|
ChildNodes()
Creates a new ChildNodes object.
|
Modifier and Type | Method and Description |
---|---|
ExtendedNode |
append(ExtendedNode n)
Appends a node to the tree.
|
int |
getLength()
DOM: Implements
NodeList.getLength() . |
ExtendedNode |
insert(ExtendedNode n,
ExtendedNode r)
Inserts a node in the tree.
|
org.w3c.dom.Node |
item(int index)
DOM: Implements
NodeList.item(int) . |
ExtendedNode |
remove(ExtendedNode n)
Removes the given node from the tree.
|
ExtendedNode |
replace(ExtendedNode n,
ExtendedNode o)
Replaces a node in the tree by an other.
|
protected ExtendedNode firstChild
protected ExtendedNode lastChild
protected int children
protected int elementChildren
public org.w3c.dom.Node item(int index)
NodeList.item(int)
.item
in interface org.w3c.dom.NodeList
public int getLength()
NodeList.getLength()
.getLength
in interface org.w3c.dom.NodeList
children
.public ExtendedNode append(ExtendedNode n)
public ExtendedNode insert(ExtendedNode n, ExtendedNode r)
public ExtendedNode replace(ExtendedNode n, ExtendedNode o)
public ExtendedNode remove(ExtendedNode n)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.