org.oXML.xpath.iterator
Class DynamicNodeset
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.oXML.xpath.iterator.DynamicNodeset
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.util.List, Nodeset, java.util.RandomAccess, java.io.Serializable
- public class DynamicNodeset
- extends java.util.ArrayList
- implements Nodeset
Nodeset where nodes can be dynamically added.
- See Also:
- Serialized Form
| Fields inherited from class java.util.AbstractList |
modCount |
|
Constructor Summary |
DynamicNodeset()
creates empty nodeset. |
DynamicNodeset(java.util.Collection nodes)
creates a nodeset and adds the nodes in the specified collection. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
DynamicNodeset
public DynamicNodeset()
- creates empty nodeset. add nodes using appendChild()
and/or appendChildset().
DynamicNodeset
public DynamicNodeset(java.util.Collection nodes)
- creates a nodeset and adds the nodes in the specified collection.
getIterator
public NodeIterator getIterator()
- Specified by:
getIterator in interface Nodeset
getNode
public Node getNode(int index)
- Specified by:
getNode in interface Nodeset
addNodeset
public void addNodeset(Nodeset nodes)
addNode
public void addNode(Node node)
- Specified by:
addNode in interface Nodeset
indexOf
public int indexOf(Node node)
- Specified by:
indexOf in interface Nodeset
removeNode
public void removeNode(int pos)
- Specified by:
removeNode in interface Nodeset
insertNode
public void insertNode(int pos,
Node node)
- Specified by:
insertNode in interface Nodeset
toString
public java.lang.String toString()