net.sf.saxon.s9api
public class XdmSequenceIterator extends Object implements Iterator<XdmItem>
This class implements the standard Java Iterator interface.
Because the Iterator
interface does not define any checked
exceptions, the hasNext()
method of this iterator throws an unchecked
exception if a dynamic error occurs while evaluating the expression. Applications
wishing to control error handling should take care to catch this exception.
Constructor Summary | |
---|---|
protected | XdmSequenceIterator(SequenceIterator base) |
Method Summary | |
---|---|
boolean | hasNext()
Returns true if the iteration has more elements. |
XdmItem | next()
Returns the next element in the iteration. |
void | remove()
Not supported on this implementation.
|
Returns: true if the iterator has more elements.
Throws: SaxonApiUncheckedException if a dynamic error occurs during XPath evaluation that is detected at this point.
Returns: the next element in the iteration.
Throws: java.util.NoSuchElementException iteration has no more elements.
Throws: UnsupportedOperationException always