FileDocCategorySizeDatePackage
FilteredStepIterator.javaAPI DocJava SE 6 API1462Tue Jun 10 00:22:32 BST 2008com.sun.org.apache.xalan.internal.xsltc.dom

FilteredStepIterator

public final class FilteredStepIterator extends StepIterator
Extends a StepIterator by adding the ability to filter nodes. It uses filters similar to those of a FilterIterator.
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen
author
Morten Jorgensen

Fields Summary
private Filter
_filter
Constructors Summary
public FilteredStepIterator(DTMAxisIterator source, DTMAxisIterator iterator, Filter filter)

	super(source, iterator);
	_filter = filter;
    
Methods Summary
public intnext()

	int node;
	while ((node = super.next()) != END) {
	    if (_filter.test(node)) {
		return returnNode(node);
	    }
	}
	return node;