public class SaxonUtil
extends java.lang.Object
| Constructor and Description |
|---|
SaxonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static net.sf.saxon.s9api.XQueryExecutable |
compileXQuery(java.lang.String query)
Compiles an XQuery so that it can be executed
|
static java.util.List<Content> |
evaluateListQuery(java.lang.String query,
Element dataElem)
Evaluates an XQuery against a data document
|
static java.lang.String |
evaluateQuery(java.lang.String query,
Document dataDoc)
Evaluates an XQuery against a data document
|
static Element |
evaluateTreeQuery(java.lang.String query,
Document dataDoc)
Evaluates an XQuery against a data document
|
static java.util.List<java.lang.String> |
getCompilerMessages() |
public static java.lang.String evaluateQuery(java.lang.String query,
Document dataDoc)
throws net.sf.saxon.s9api.SaxonApiException
query - the XQuery to evaluatedataDoc - a JDOM Document containing the data treenet.sf.saxon.s9api.SaxonApiException - if there's a problem with the XQuery or Documentpublic static Element evaluateTreeQuery(java.lang.String query, Document dataDoc) throws net.sf.saxon.s9api.SaxonApiException
query - the XQuery to evaluatedataDoc - a JDOM Document containing the data treenet.sf.saxon.s9api.SaxonApiException - if there's a problem with the XQuery or Documentpublic static java.util.List<Content> evaluateListQuery(java.lang.String query, Element dataElem) throws net.sf.saxon.s9api.SaxonApiException
query - the XQuery to evaluatedataElem - a JDOM Element containing the data treenet.sf.saxon.s9api.SaxonApiException - if there's a problem with the XQuery or Elementpublic static net.sf.saxon.s9api.XQueryExecutable compileXQuery(java.lang.String query)
throws net.sf.saxon.s9api.SaxonApiException
query - the XQuery to compilenet.sf.saxon.s9api.SaxonApiException - if there's a problem with the XQuerypublic static java.util.List<java.lang.String> getCompilerMessages()
Copyright © 2004-2014 The YAWL Foundation.