|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.ArrayList groovy.util.NodeList
public class NodeList extends java.util.ArrayList
A List implementation which is returned by queries on a Node which provides some XPath like helper methods for GPath.
Constructor Summary | |
NodeList()
|
|
NodeList(java.util.Collection collection)
|
|
NodeList(int size)
|
Method Summary | |
---|---|
java.lang.Object
|
clone()
Creates a new NodeList containing the same elements as the original (but cloned in the case of Nodes). |
NodeList
|
getAt(java.lang.String name)
Provides lookup of elements by non-namespaced name. |
NodeList
|
getAt(QName name)
Provides lookup of elements by QName. |
void
|
plus(Closure c)
|
Node
|
replaceNode(Closure c)
|
protected static void
|
setMetaClass(java.lang.Class nodelistClass, MetaClass metaClass)
|
java.lang.String
|
text()
Returns the text value of all of the elements in the collection. |
Methods inherited from class java.util.ArrayList | |
---|---|
java.util.ArrayList#add(int, java.lang.Object), java.util.ArrayList#add(java.lang.Object), java.util.ArrayList#remove(int), java.util.ArrayList#remove(java.lang.Object), java.util.ArrayList#get(int), java.util.ArrayList#clone(), java.util.ArrayList#indexOf(java.lang.Object), java.util.ArrayList#clear(), java.util.ArrayList#contains(java.lang.Object), java.util.ArrayList#isEmpty(), java.util.ArrayList#lastIndexOf(java.lang.Object), java.util.ArrayList#size(), java.util.ArrayList#subList(int, int), java.util.ArrayList#toArray(), java.util.ArrayList#toArray([Ljava.lang.Object;), java.util.ArrayList#addAll(int, java.util.Collection), java.util.ArrayList#addAll(java.util.Collection), java.util.ArrayList#iterator(), java.util.ArrayList#set(int, java.lang.Object), java.util.ArrayList#ensureCapacity(int), java.util.ArrayList#trimToSize(), java.util.ArrayList#retainAll(java.util.Collection), java.util.ArrayList#listIterator(), java.util.ArrayList#listIterator(int), java.util.ArrayList#removeAll(java.util.Collection), java.util.ArrayList#equals(java.lang.Object), java.util.ArrayList#hashCode(), java.util.ArrayList#toString(), java.util.ArrayList#containsAll(java.util.Collection), java.util.ArrayList#wait(long, int), java.util.ArrayList#wait(long), java.util.ArrayList#wait(), java.util.ArrayList#getClass(), java.util.ArrayList#notify(), java.util.ArrayList#notifyAll() |
Methods inherited from class java.util.AbstractList | |
---|---|
java.util.AbstractList#add(int, java.lang.Object), java.util.AbstractList#add(java.lang.Object), java.util.AbstractList#remove(int), java.util.AbstractList#get(int), java.util.AbstractList#equals(java.lang.Object), java.util.AbstractList#hashCode(), java.util.AbstractList#indexOf(java.lang.Object), java.util.AbstractList#clear(), java.util.AbstractList#lastIndexOf(java.lang.Object), java.util.AbstractList#subList(int, int), java.util.AbstractList#addAll(int, java.util.Collection), java.util.AbstractList#iterator(), java.util.AbstractList#set(int, java.lang.Object), java.util.AbstractList#listIterator(), java.util.AbstractList#listIterator(int), java.util.AbstractList#remove(java.lang.Object), java.util.AbstractList#toString(), java.util.AbstractList#contains(java.lang.Object), java.util.AbstractList#isEmpty(), java.util.AbstractList#size(), java.util.AbstractList#toArray([Ljava.lang.Object;), java.util.AbstractList#toArray(), java.util.AbstractList#addAll(java.util.Collection), java.util.AbstractList#retainAll(java.util.Collection), java.util.AbstractList#containsAll(java.util.Collection), java.util.AbstractList#removeAll(java.util.Collection), java.util.AbstractList#wait(long, int), java.util.AbstractList#wait(long), java.util.AbstractList#wait(), java.util.AbstractList#getClass(), java.util.AbstractList#notify(), java.util.AbstractList#notifyAll(), java.util.AbstractList#size() |
Constructor Detail |
---|
public NodeList()
public NodeList(java.util.Collection collection)
public NodeList(int size)
Method Detail |
---|
public Object clone() { public java.lang.Object clone()
public NodeList getAt(java.lang.String name)
name
- the name or shortcut key for nodes of interest
public NodeList getAt(QName name)
name
- the name or shortcut key for nodes of interest
public void plus(Closure c)
public Node replaceNode(Closure c)
protected static void setMetaClass(java.lang.Class nodelistClass, MetaClass metaClass)
public java.lang.String text()
Groovy Documentation