org.apache.xalan.stree
Class LevelIndexIterator

java.lang.Object
  |
  +--org.apache.xalan.stree.LevelIndexIterator

public class LevelIndexIterator
extends java.lang.Object

The responsibility of this class is to hide the internal workings of the LevelIndexer from the LocPathIterator, and to return nodes that:

  1. Belongs to the given parent;
  2. match the given node type;
  3. match the given namespace;
  4. match the given local name;


Constructor Summary
LevelIndexIterator(Node parent, int type, java.lang.String url, java.lang.String name)
           
 
Method Summary
 Node nextNode()
          Returns the next node in the set and advances the position of the iterator in the set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelIndexIterator

public LevelIndexIterator(Node parent,
                          int type,
                          java.lang.String url,
                          java.lang.String name)
Method Detail

nextNode

public Node nextNode()
              throws DOMException
Returns the next node in the set and advances the position of the iterator in the set. After a NodeIterator is created, the first call to nextNode() returns the first node in the set.
Returns:
The next Node in the set being iterated over, or null if there are no more members in that set.
Throws:
DOMException - INVALID_STATE_ERR: Raised if this method is called after the detach method was invoked.


Copyright © 2000 Apache XML Project. All Rights Reserved.