org.oXML.xpath.iterator
Class DynamicNodeset

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.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

Nested Class Summary
 class DynamicNodeset.DynamicNodesetIterator
          does not honour filters or whatToShow
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.oXML.type.Nodeset
EMPTY_SET
 
Constructor Summary
DynamicNodeset()
          creates empty nodeset.
DynamicNodeset(java.util.Collection nodes)
          creates a nodeset and adds the nodes in the specified collection.
 
Method Summary
 void addNode(Node node)
           
 void addNodeset(Nodeset nodes)
           
 NodeIterator getIterator()
           
 Node getNode(int index)
           
 int indexOf(Node node)
           
 void insertNode(int pos, Node node)
           
 void removeNode(int pos)
           
 java.lang.String toString()
           
 
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 org.oXML.type.Nodeset
isEmpty, size
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

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.

Method Detail

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()