public class NodeList
extends java.util.ArrayList
Node
which provides some XPath like helper methods for GPath.Constructor and Description |
---|
NodeList() |
NodeList(java.util.Collection collection) |
NodeList(int size) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a new NodeList containing the same elements as the
original (but cloned in the case of Nodes).
|
NodeList |
getAt(QName name)
Provides lookup of elements by QName.
|
NodeList |
getAt(java.lang.String name)
Provides lookup of elements by non-namespaced name.
|
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.
|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public NodeList()
public NodeList(java.util.Collection collection)
public NodeList(int size)
public java.lang.Object clone()
clone
in class java.util.ArrayList
protected static void setMetaClass(java.lang.Class nodelistClass, MetaClass metaClass)
public NodeList getAt(java.lang.String name)
name
- the name or shortcut key for nodes of interestpublic NodeList getAt(QName name)
name
- the name or shortcut key for nodes of interestpublic java.lang.String text()
public void plus(Closure c)