public class XdmSequenceIterator extends java.lang.Object implements java.util.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.
??? | ?????? |
---|---|
protected |
XdmSequenceIterator(SequenceIterator base) |
?????? | ????? |
---|---|
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.
|
protected XdmSequenceIterator(SequenceIterator base)
public boolean hasNext() throws SaxonApiUncheckedException
hasNext
???? java.util.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
???? java.util.Iterator<XdmItem>
java.util.NoSuchElementException
- iteration has no more elements.public void remove()
remove
???? java.util.Iterator<XdmItem>
java.lang.UnsupportedOperationException
- always