FileDocCategorySizeDatePackage
ClonedNodeListIterator.javaAPI DocJava SE 6 API2112Tue Jun 10 00:22:32 BST 2008com.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;