protected class AbstractParentNode.ChildNodes extends java.lang.Object implements 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.
|
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 Node item(int index)
NodeList.item(int)
.public int getLength()
NodeList.getLength()
.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 © 2022 Apache Software Foundation. All Rights Reserved.