Xindice API
version 1.2m1

Class NodeListImpl

  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.apache.xindice.xml.dom.NodeListImpl
All Implemented Interfaces:
Cloneable, Collection, List, org.w3c.dom.NodeList, RandomAccess, Serializable
Direct Known Subclasses:

public class NodeListImpl
extends ArrayList
implements org.w3c.dom.NodeList


$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
See Also:
Serialized Form

Field Summary
protected  NodeImpl owner
Fields inherited from class java.util.AbstractList
Constructor Summary
NodeListImpl(NodeImpl owner)
Method Summary
 int getLength()
          The number of nodes in the list.
 org.w3c.dom.Node item(int index)
          Returns the indexth item in the collection.
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList

Field Detail


protected NodeImpl owner
Constructor Detail


public NodeListImpl(NodeImpl owner)
Method Detail


public final org.w3c.dom.Node item(int index)
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Specified by:
item in interface org.w3c.dom.NodeList
index - Index into the collection.
The node at the indexth position in the NodeList, or null if that is not a valid index.


public final int getLength()
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

Specified by:
getLength in interface org.w3c.dom.NodeList

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.