public class XQueryAsXPathFunctionConverter extends Object
| Constructor and Description |
|---|
XQueryAsXPathFunctionConverter()
Default ctor using the current working directory as the base URL for the
XQuery resource resolver.
|
XQueryAsXPathFunctionConverter(File aBasePath)
Constructor using the passed file as a working directory as the base URL
for the XQuery resource resolver.
|
XQueryAsXPathFunctionConverter(String sBaseURL)
Constructor using the passed URL as a working directory as the base URL for
the XQuery resource resolver.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseURL() |
com.helger.xml.xpath.MapBasedXPathFunctionResolver |
loadXQuery(InputStream aXQueryIS)
Load XQuery functions from an input stream.
|
public XQueryAsXPathFunctionConverter()
throws MalformedURLException
MalformedURLException - In case the conversion to URL failedpublic XQueryAsXPathFunctionConverter(@Nonnull File aBasePath) throws MalformedURLException
aBasePath - Base path for XQuery resource resolving. May not be
null.MalformedURLException - In case the conversion to URL failedpublic XQueryAsXPathFunctionConverter(@Nonnull @Nonempty String sBaseURL)
sBaseURL - Base URL for XQuery resource resolving. May neither be
null nor empty.@Nonnull @Nonempty public String getBaseURL()
null
nor empty.@Nonnull public com.helger.xml.xpath.MapBasedXPathFunctionResolver loadXQuery(@Nonnull @WillClose InputStream aXQueryIS) throws net.sf.saxon.trans.XPathException, IOException
aXQueryIS - The Input Stream to read from. May not be null. Will be
closed automatically in this method.null MapBasedXPathFunctionResolver
containing all loaded functions.net.sf.saxon.trans.XPathException - if the syntax of the expression is wrong, or if it references
namespaces, variables, or functions that have not been declared, or
any other static error is reported.IOException - if a failure occurs reading the supplied input.Copyright © 2014–2016 Philip Helger. All rights reserved.