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, RandomAccess, Serializable
- Direct Known Subclasses:
- NamedNodeMapImpl
- public class NodeListImpl
- extends ArrayList
- implements org.w3c.dom.NodeList
NodeListImpl
- Version:
- $Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
- See Also:
- Serialized Form
Method Summary |
int |
getLength()
The number of nodes in the list. |
org.w3c.dom.Node |
item(int index)
Returns the index th 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 |
owner
protected NodeImpl owner
NodeListImpl
public NodeListImpl(NodeImpl owner)
item
public final org.w3c.dom.Node item(int index)
- Returns the
index
th 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
index
th 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
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.