|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.xml.xpath.NodeListImpl
Implementation of the NodeList
interface.
Constructor Summary | |
NodeListImpl()
Constructor |
|
NodeListImpl(org.w3c.dom.DocumentFragment fragment,
java.lang.String rootName)
Construct a NodeList by copying. |
|
NodeListImpl(org.w3c.dom.Node[] nodes)
Constructor |
|
NodeListImpl(org.w3c.dom.NodeList list)
Construct a NodeList by copying. |
Method Summary | |
void |
addNode(org.w3c.dom.Node node)
Add a node to list |
int |
getLength()
The number of nodes in the list. |
org.w3c.dom.Node |
item(int index)
Returns the index th item in the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeListImpl(org.w3c.dom.NodeList list)
public NodeListImpl(org.w3c.dom.Node[] nodes)
public NodeListImpl()
public NodeListImpl(org.w3c.dom.DocumentFragment fragment, java.lang.String rootName)
Method Detail |
public void addNode(org.w3c.dom.Node node)
public org.w3c.dom.Node item(int index)
index
th item in the collection. If
index
is greater than or equal to the number of nodes in
the list, this returns null
.
item
in interface org.w3c.dom.NodeList
index
- Index into the collection.
index
th position in the
NodeList
, or null
if that is not a valid
index.public int getLength()
length-1
inclusive.
getLength
in interface org.w3c.dom.NodeList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |