net.sf.kernow.xquery
Class StandaloneXQuery
java.lang.Object
net.sf.kernow.transform.TransformTask
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandaloneXQuery
public StandaloneXQuery()
- Creates a new instance of StandaloneXQuery
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.