groovy.util
Class NodeList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bygroovy.util.NodeList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class NodeList
extends ArrayList

A List implementation which is returned by queries on a Node which provides some XPath like helper methods for GPath

Version:
$Revision$
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeList()
           
NodeList(Collection collection)
           
NodeList(int size)
           
 
Method Summary
 NodeList getAt(QName name)
          Provides lookup of elements by QName
 NodeList getAt(String name)
          Provides lookup of elements by non-namespaced name
 String text()
          Returns the text value of all of the elements 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
 

Constructor Detail

NodeList

public NodeList()

NodeList

public NodeList(Collection collection)

NodeList

public NodeList(int size)
Method Detail

getAt

public NodeList getAt(String name)
Provides lookup of elements by non-namespaced name


getAt

public NodeList getAt(QName name)
Provides lookup of elements by QName


text

public String text()
Returns the text value of all of the elements in the collection

Returns:
the text value of all the elements in the collection or null


Copyright © 2003-2007 The Codehaus. All Rights Reserved.