lux
Class XdmResultSet

java.lang.Object
  extended by 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.


Constructor Summary
XdmResultSet(List<TransformerException> errors)
           
XdmResultSet(net.sf.saxon.s9api.XdmValue value)
           
 
Method Summary
 List<TransformerException> getErrors()
           
 net.sf.saxon.s9api.XdmValue getXdmValue()
           
 Iterator<net.sf.saxon.s9api.XdmItem> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdmResultSet

public XdmResultSet(net.sf.saxon.s9api.XdmValue value)

XdmResultSet

public XdmResultSet(List<TransformerException> errors)
Method Detail

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.