org.apache.xalan.xsltc.dom
Class AbsoluteIterator

java.lang.Object
  |
  +--org.apache.xml.dtm.ref.DTMAxisIteratorBase
        |
        +--org.apache.xalan.xsltc.dom.AbsoluteIterator

public final class AbsoluteIterator
extends DTMAxisIteratorBase

Absolute iterators ignore the node that is passed to setStartNode(). Instead, they always start from the root node. The node passed to setStartNode() is not totally useless, though. It is needed to obtain the DOM mask, i.e. the index into the MultiDOM table that corresponds to the DOM "owning" the node. The DOM mask is cached, so successive calls to setStartNode() passing nodes from other DOMs will have no effect (i.e. this iterator cannot migrate between DOMs).


Constructor Summary
AbsoluteIterator(DTMAxisIterator source)
           
 
Method Summary
 DTMAxisIterator cloneIterator()
           
 void gotoMark()
           
 int next()
           
 DTMAxisIterator reset()
           
 void setMark()
           
 void setRestartable(boolean isRestartable)
           
 DTMAxisIterator setStartNode(int node)
           
 
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase
getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteIterator

public AbsoluteIterator(DTMAxisIterator source)
Method Detail

setRestartable

public void setRestartable(boolean isRestartable)
Overrides:
setRestartable in class DTMAxisIteratorBase

setStartNode

public DTMAxisIterator setStartNode(int node)

next

public int next()

cloneIterator

public DTMAxisIterator cloneIterator()
Overrides:
cloneIterator in class DTMAxisIteratorBase

reset

public DTMAxisIterator reset()
Overrides:
reset in class DTMAxisIteratorBase

setMark

public void setMark()

gotoMark

public void gotoMark()


Copyright © 2006 Apache XML Project. All Rights Reserved.