Class DOMUtil.NodeListImpl

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
de.hybris.ant.taskdefs.yunit.DOMUtil.NodeListImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, NodeList
Enclosing class:
DOMUtil

public static class DOMUtil.NodeListImpl extends Vector 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.