FileDocCategorySizeDatePackage
ClonedNodeListIterator.javaAPI DocJava SE 5 API2108Fri Aug 26 14:55:40 BST 2005com.sun.org.apache.xalan.internal.xsltc.dom

ClonedNodeListIterator

public final class ClonedNodeListIterator extends DTMAxisIteratorBase
A ClonedNodeListIterator is returned by the cloneIterator() method of a CachedNodeListIterator. Its next() method retrieves the nodes from the cache of the CachedNodeListIterator.

Fields Summary
private CachedNodeListIterator
_source
Source for this iterator.
private int
_index
Constructors Summary
public ClonedNodeListIterator(CachedNodeListIterator source)


       
	_source = source;
    
Methods Summary
public com.sun.org.apache.xml.internal.dtm.DTMAxisIteratorcloneIterator()

	return _source.cloneIterator();
    
public intgetNodeByPosition(int pos)

    	return _source.getNode(pos);
    
public intgetPosition()

    	return _index == 0 ? 1 : _index;
    
public voidgotoMark()

	_source.gotoMark();
    
public intnext()

        return _source.getNode(_index++);
    
public com.sun.org.apache.xml.internal.dtm.DTMAxisIteratorreset()

    	_index = 0;
    	return this;
    
public voidsetMark()

	_source.setMark();
    
public voidsetRestartable(boolean isRestartable)

	//_isRestartable = isRestartable;
	//_source.setRestartable(isRestartable);
    
public com.sun.org.apache.xml.internal.dtm.DTMAxisIteratorsetStartNode(int node)

	return this;