lux
Class XdmResultSet
java.lang.Object
lux.XdmResultSet
- All Implemented Interfaces:
- Iterable<net.sf.saxon.s9api.XdmItem>
public class XdmResultSet
- extends Object
- implements Iterable<net.sf.saxon.s9api.XdmItem>
Represents the result of a query evaluation. This will contain either an XdmValue,
or if there was an error, a list of Exceptions. The class
will never return null. If there were errors, the value will be
an empty sequence. If there were no errors, there will be an empty error list.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XdmResultSet
public XdmResultSet(net.sf.saxon.s9api.XdmValue value)
XdmResultSet
public XdmResultSet(List<TransformerException> errors)
getXdmValue
public net.sf.saxon.s9api.XdmValue getXdmValue()
- Returns:
- the result of the query evaluation, as an
XdmValue.
iterator
public Iterator<net.sf.saxon.s9api.XdmItem> iterator()
- Specified by:
iterator in interface Iterable<net.sf.saxon.s9api.XdmItem>
- Returns:
- the result of the query evaluation, as an
XdmItem iterator.
size
public int size()
getErrors
public List<TransformerException> getErrors()
- Returns:
- the list of errors reported when compiling or evaluating an xquery expression.
returns an empty list if no errors were generated.
Copyright © 2013. All Rights Reserved.