|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.s9api.XdmSequenceIterator
public class XdmSequenceIterator
An iterator over an XPath sequence.
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.
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
- always
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |