net.sf.saxon.om

Class Navigator.AxisFilter

Enclosing Class:
Navigator
Implemented Interfaces:
AxisIterator, SequenceIterator, UnfailingIterator

public static class Navigator.AxisFilter
extends AxisIteratorImpl

AxisFilter is an iterator that applies a NodeTest filter to the nodes returned by an underlying AxisIterator.

Field Summary

Fields inherited from class net.sf.saxon.om.AxisIteratorImpl

current, position

Fields inherited from interface net.sf.saxon.om.SequenceIterator

GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD

Constructor Summary

AxisFilter(AxisIterator base, NodeTest test)
S Construct a AxisFilter

Method Summary

SequenceIterator
getAnother()
Item
next()

Methods inherited from class net.sf.saxon.om.AxisIteratorImpl

atomize, current, getProperties, getStringValue, iterateAxis, moveNext, position

Constructor Details

AxisFilter

public AxisFilter(AxisIterator base,
                  NodeTest test)
S Construct a AxisFilter
Parameters:
base - the underlying iterator that returns all the nodes on a required axis. This must not be an atomizing iterator!
test - a NodeTest that is applied to each node returned by the underlying AxisIterator; only those nodes that pass the NodeTest are returned by the AxisFilter

Method Details

getAnother

public SequenceIterator getAnother()
Specified by:
getAnother in interface UnfailingIterator
getAnother in interface SequenceIterator

next

public Item next()
Specified by:
next in interface UnfailingIterator
next in interface SequenceIterator