org.apache.xalan.xsltc.dom

Class SimpleResultTreeImpl.SimpleIterator

Enclosing Class:
SimpleResultTreeImpl
Implemented Interfaces:
Cloneable, DTMAxisIterator

public final class SimpleResultTreeImpl.SimpleIterator
extends DTMAxisIteratorBase

The SimpleIterator is designed to support the nodeset() extension function. It has a traversal direction parameter. The DOWN direction is used for child and descendant axes, while the UP direction is used for parent and ancestor axes. This iterator only handles two nodes (RTF_ROOT and RTF_TEXT). If the type is set, it will also match the node type with the given type.

Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator

END

Constructor Summary

SimpleIterator()
SimpleIterator(int direction)
SimpleIterator(int direction, int type)

Method Summary

void
gotoMark()
int
next()
void
setMark()
DTMAxisIterator
setStartNode(int nodeHandle)

Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase

cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable

Constructor Details

SimpleIterator

public SimpleIterator()

SimpleIterator

public SimpleIterator(int direction)

SimpleIterator

public SimpleIterator(int direction,
                      int type)

Method Details

gotoMark

public void gotoMark()
Specified by:
gotoMark in interface DTMAxisIterator

next

public int next()
Specified by:
next in interface DTMAxisIterator

setMark

public void setMark()
Specified by:
setMark in interface DTMAxisIterator

setStartNode

public DTMAxisIterator setStartNode(int nodeHandle)
Specified by:
setStartNode in interface DTMAxisIterator

Copyright B) 2006 Apache XML Project. All Rights Reserved.