net.sf.kernow.xquery
Class StandaloneXQuery

java.lang.Object
  extended by net.sf.kernow.transform.TransformTask
      extended by net.sf.kernow.xquery.StandaloneXQuery
All Implemented Interfaces:
TimedTransform

public class StandaloneXQuery
extends TransformTask


Constructor Summary
StandaloneXQuery()
          Creates a new instance of StandaloneXQuery
 
Method Summary
 net.sf.saxon.trans.XPathException checkQuery(java.lang.String query)
           
protected  java.util.Properties newJAXPProperties()
          Return the JAXP properties used to evaluate a query.
 boolean runQuery(java.io.InputStream query, javax.xml.transform.Result result)
           
 boolean runQuery(java.io.Reader query, javax.xml.transform.Result result)
           
 boolean runQuery(java.lang.String query)
           
 boolean runQuery(java.lang.String query, javax.xml.transform.Result result)
           
 boolean runQuery(net.sf.saxon.query.XQueryExpression exp, javax.xml.transform.Result result)
           
 void setCollectionURIResolver(CustomStandardCollectionURIResolver collectionEntityResolver)
           
 
Methods inherited from class net.sf.kernow.transform.TransformTask
addTimeObserver, checkForCleaning, getResult, getTimeTakeInMS, getTimeTakenInWords, getXMLReader, notifyTimeObservers, setTimeTakeInMS, setTimeTakenInWords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneXQuery

public StandaloneXQuery()
Creates a new instance of StandaloneXQuery

Method Detail

checkQuery

public net.sf.saxon.trans.XPathException checkQuery(java.lang.String query)

runQuery

public boolean runQuery(java.lang.String query)

runQuery

public boolean runQuery(java.lang.String query,
                        javax.xml.transform.Result result)
                 throws net.sf.saxon.trans.XPathException
Throws:
net.sf.saxon.trans.XPathException

runQuery

public boolean runQuery(java.io.InputStream query,
                        javax.xml.transform.Result result)
                 throws net.sf.saxon.trans.XPathException,
                        java.io.IOException
Throws:
net.sf.saxon.trans.XPathException
java.io.IOException

runQuery

public boolean runQuery(java.io.Reader query,
                        javax.xml.transform.Result result)
                 throws net.sf.saxon.trans.XPathException,
                        java.io.IOException
Throws:
net.sf.saxon.trans.XPathException
java.io.IOException

runQuery

public boolean runQuery(net.sf.saxon.query.XQueryExpression exp,
                        javax.xml.transform.Result result)

setCollectionURIResolver

public void setCollectionURIResolver(CustomStandardCollectionURIResolver collectionEntityResolver)

newJAXPProperties

protected java.util.Properties newJAXPProperties()
Return the JAXP properties used to evaluate a query. This enable now to use a Test Double (see http://xunitpatterns.com/Test%20Double.html) to test the class. TODO: But it should be possible to set those properties from the outside of the class for its normal use.