Xindice API
version 1.1

org.apache.xindice.xml.dom
Class NodeListImpl

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--org.apache.xindice.xml.dom.NodeListImpl
All Implemented Interfaces:
Cloneable, Collection, List, org.w3c.dom.NodeList, Serializable
Direct Known Subclasses:
NamedNodeMapImpl

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

NodeListImpl

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $
See Also:
Serialized Form

Field Summary
protected  NodeImpl owner
           
 
Fields inherited from class java.util.AbstractList
modCount
 
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

owner

protected NodeImpl owner
Constructor Detail

NodeListImpl

public NodeListImpl(NodeImpl owner)
Method Detail

item

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
Parameters:
index - Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

getLength

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.1

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