Constructor and description |
---|
NodeList() |
NodeList(Collection collection) |
NodeList(int size) |
Type Params | Return Type | Name and description |
---|---|---|
|
public Object |
clone() Creates a new NodeList containing the same elements as the original (but cloned in the case of Nodes). |
|
public NodeList |
getAt(String name) Provides lookup of elements by non-namespaced name. |
|
public NodeList |
getAt(QName name) Provides lookup of elements by QName. |
|
public Object |
getAttribute(Object object, String attribute) |
|
public Object |
getProperty(Object object, String property) |
|
public void |
plus(Closure c) |
|
public Node |
replaceNode(Closure c) |
|
public void |
setAttribute(Object object, String attribute, Object newValue) |
|
protected static void |
setMetaClass(Class nodelistClass, MetaClass metaClass) |
|
public String |
text() Returns the text value of all of the elements in the collection. |
Methods inherited from class | Name |
---|---|
class ArrayList |
add, add, remove, remove, get, equals, hashCode, clone, indexOf, clear, lastIndexOf, isEmpty, replaceAll, size, subList, toArray, toArray, iterator, contains, spliterator, addAll, addAll, set, forEach, ensureCapacity, trimToSize, removeIf, sort, removeAll, retainAll, listIterator, listIterator, toString, containsAll, wait, wait, wait, getClass, notify, notifyAll, toArray, stream, parallelStream |
Creates a new NodeList containing the same elements as the original (but cloned in the case of Nodes).
Provides lookup of elements by non-namespaced name.
name
- the name or shortcut key for nodes of interestProvides lookup of elements by QName.
name
- the name or shortcut key for nodes of interestReturns the text value of all of the elements in the collection.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.