|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xalan.xsltc.dom.ClonedNodeListIterator
public final class ClonedNodeListIterator
A ClonedNodeListIterator is returned by the cloneIterator() method of a CachedNodeListIterator. Its next() method retrieves the nodes from the cache of the CachedNodeListIterator.
| Field Summary | |
|---|---|
private int |
_index
|
private CachedNodeListIterator |
_source
Source for this iterator. |
| Fields inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
|---|
_includeSelf, _isRestartable, _last, _markedNode, _position, _startNode |
| Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator |
|---|
END |
| Constructor Summary | |
|---|---|
ClonedNodeListIterator(CachedNodeListIterator source)
|
|
| Method Summary | |
|---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator. |
int |
getNodeByPosition(int pos)
Return the node at the given position. |
int |
getPosition()
|
void |
gotoMark()
Restores the current node remembered by setMark(). |
int |
next()
Get the next node in the iteration. |
DTMAxisIterator |
reset()
Resets the iterator to the last start node. |
void |
setMark()
Remembers the current node for the next call to gotoMark(). |
void |
setRestartable(boolean isRestartable)
Set if restartable. |
DTMAxisIterator |
setStartNode(int node)
Set start to END should 'close' the iterator, i.e. |
| Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
|---|
getAxis, getLast, getStartNode, includeSelf, isDocOrdered, isReverse, resetPosition, returnNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CachedNodeListIterator _source
private int _index
| Constructor Detail |
|---|
public ClonedNodeListIterator(CachedNodeListIterator source)
| Method Detail |
|---|
public void setRestartable(boolean isRestartable)
DTMAxisIterator
setRestartable in interface DTMAxisIteratorsetRestartable in class DTMAxisIteratorBasepublic DTMAxisIterator setStartNode(int node)
DTMAxisIterator
node - Sets the root of the iteration.
public int next()
DTMAxisIterator
public int getPosition()
getPosition in interface DTMAxisIteratorgetPosition in class DTMAxisIteratorBasepublic int getNodeByPosition(int pos)
DTMAxisIteratorBase
getNodeByPosition in interface DTMAxisIteratorgetNodeByPosition in class DTMAxisIteratorBasepos - The position
public DTMAxisIterator cloneIterator()
DTMAxisIteratorBase
cloneIterator in interface DTMAxisIteratorcloneIterator in class DTMAxisIteratorBasepublic DTMAxisIterator reset()
DTMAxisIterator
reset in interface DTMAxisIteratorreset in class DTMAxisIteratorBasepublic void setMark()
DTMAxisIterator
public void gotoMark()
DTMAxisIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||