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, wait
close, discharge
public 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()
LookaheadIterator
supportsHasNext
in interface LookaheadIterator
LookaheadIterator.hasNext()
method is availablepublic boolean hasNext()
LookaheadIterator
This method must not be called unless the result of LookaheadIterator.supportsHasNext()
is true.
hasNext
in interface LookaheadIterator
public NodeInfo next()
SequenceIterator
next
in interface SequenceIterator
next
in interface AxisIterator
public boolean isIgnorable(B node)
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.