Save This Page
Home » groovy-src-1.6.3 » groovy » util » [javadoc | source]
groovy.util
public class: NodeList [javadoc | source]
java.lang.Object
   java.util.AbstractCollection
      java.util.AbstractList
         java.util.ArrayList
            groovy.util.NodeList

All Implemented Interfaces:
    List, Serializable, RandomAccess, Cloneable, Collection

A List implementation which is returned by queries on a Node which provides some XPath like helper methods for GPath.
Constructor:
 public NodeList() 
 public NodeList(Collection collection) 
 public NodeList(int size) 
Method from groovy.util.NodeList Summary:
getAt,   getAt,   setMetaClass,   text
Methods from java.util.ArrayList:
add,   add,   addAll,   addAll,   clear,   clone,   contains,   ensureCapacity,   get,   indexOf,   isEmpty,   lastIndexOf,   remove,   remove,   set,   size,   toArray,   toArray,   trimToSize
Methods from java.util.AbstractList:
add,   add,   addAll,   clear,   equals,   get,   hashCode,   indexOf,   iterator,   lastIndexOf,   listIterator,   listIterator,   remove,   set,   subList
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from groovy.util.NodeList Detail:
 public NodeList getAt(String name) 
    Provides lookup of elements by non-namespaced name.
 public NodeList getAt(QName name) 
    Provides lookup of elements by QName.
 protected static  void setMetaClass(Class nodelistClass,
    MetaClass metaClass) 
 public String text() 
    Returns the text value of all of the elements in the collection.