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.
Modifier | Constructor and Description |
---|---|
protected |
XdmSequenceIterator(SequenceIterator base) |
protected XdmSequenceIterator(SequenceIterator base)
public boolean hasNext() throws SaxonApiUncheckedException
hasNext
in interface Iterator<XdmItem>
SaxonApiUncheckedException
- if a dynamic error occurs during XPath evaluation that
is detected at this point.public XdmItem next()
hasNext()
method returns false will
return each element in the underlying collection exactly once.next
in interface Iterator<XdmItem>
NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface Iterator<XdmItem>
UnsupportedOperationException
- alwaysCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.