org.apache.tools.ant.taskdefs.optional.junit

Class DOMUtil.NodeListImpl

Enclosing Class:
DOMUtil
Implemented Interfaces:
NodeList

public static class DOMUtil.NodeListImpl
extends Vector
implements NodeList

custom implementation of a nodelist

Method Summary

int
getLength()
Get the number of nodes in the list.
Node
item(int i)
Get a particular node.

Method Details

getLength

public int getLength()
Get the number of nodes in the list.
Returns:
the length of the list.

item

public Node item(int i)
Get a particular node.
Parameters:
i - the index of the node to get.
Returns:
the node if the index is in bounds, null otherwise.