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:
- Belongs to the given parent;
- match the given node type;
- match the given namespace;
- match the given local 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 |
LevelIndexIterator
public LevelIndexIterator(Node parent,
int type,
java.lang.String url,
java.lang.String name)
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.