ucar.unidata.xml
Class XmlNodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by ucar.unidata.xml.XmlNodeList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, NodeList

public class XmlNodeList
extends ArrayList
implements NodeList

A utility that implements the interface NodeList.

Author:
$Author: jeffmc $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
XmlNodeList()
          Default ctor.
 
Method Summary
 int getLength()
          Return the length of the list.
 Node item(int index)
          Return the index'th item.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, 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, 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, removeAll, retainAll, subList
 

Constructor Detail

XmlNodeList

public XmlNodeList()
Default ctor.

Method Detail

getLength

public int getLength()
Return the length of the list.

Specified by:
getLength in interface NodeList
Returns:
The length.

item

public Node item(int index)
Return the index'th item.

Specified by:
item in interface NodeList
Parameters:
index - The list index.
Returns:
The Node.