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

Class DOMUtil.NodeListImpl

public static class DOMUtil.NodeListImpl extends Vector implements NodeList

custom implementation of a nodelist
Method Summary
intgetLength()
Get the number of nodes in the list.
Nodeitem(int i)
Get a particular node.

Method Detail

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.