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 |
---|---|
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, clone, 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)
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)