Class DOMUtil.NodeListImpl

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Node>
org.apache.tools.ant.taskdefs.optional.junit.DOMUtil.NodeListImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Node>, Collection<Node>, List<Node>, RandomAccess, NodeList
Enclosing class:
DOMUtil

public static class DOMUtil.NodeListImpl extends Vector<Node> implements NodeList
custom implementation of a nodelist
See Also:
  • Constructor Details

    • NodeListImpl

      public NodeListImpl()
  • Method Details

    • getLength

      public int getLength()
      Get the number of nodes in the list.
      Specified by:
      getLength in interface NodeList
      Returns:
      the length of the list.
    • item

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