B - the class of the external nodes being wrapped.public class NodeWrappingAxisIterator<B> extends java.lang.Object implements AxisIterator, LookaheadIterator
| Constructor and Description |
|---|
NodeWrappingAxisIterator(java.util.Iterator<? extends B> base,
NodeWrappingFunction<? super B,NodeInfo> wrappingFunction)
Create a SequenceIterator over a given iterator
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<? extends B> |
getBaseIterator() |
NodeWrappingFunction<? super B,NodeInfo> |
getNodeWrappingFunction() |
boolean |
hasNext()
Determine whether there are more items to come.
|
boolean |
isIgnorable(B node) |
NodeInfo |
next()
Get the next item in the sequence.
|
boolean |
supportsHasNext()
Ask whether the hasNext() method can be called.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dischargepublic NodeWrappingAxisIterator(java.util.Iterator<? extends B> base, NodeWrappingFunction<? super B,NodeInfo> wrappingFunction)
base - the base IteratorwrappingFunction - a function that wraps objects of type B in a Saxon NodeInfopublic java.util.Iterator<? extends B> getBaseIterator()
public NodeWrappingFunction<? super B,NodeInfo> getNodeWrappingFunction()
public boolean supportsHasNext()
LookaheadIteratorsupportsHasNext in interface LookaheadIteratorLookaheadIterator.hasNext() method is availablepublic boolean hasNext()
LookaheadIteratorThis method must not be called unless the result of LookaheadIterator.supportsHasNext()
is true.
hasNext in interface LookaheadIteratorpublic NodeInfo next()
SequenceIteratornext in interface SequenceIteratornext in interface AxisIteratorpublic boolean isIgnorable(B node)
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.