net.sf.saxon.query
public class StandardModuleURIResolver extends java.lang.Object implements ModuleURIResolver
Modifier | Constructor and Description |
---|---|
protected |
StandardModuleURIResolver()
Create a StandardModuleURIResolver
|
Modifier and Type | Method and Description |
---|---|
static StandardModuleURIResolver |
getInstance()
Get the singular instance of this class
|
protected javax.xml.transform.stream.StreamSource |
getQuerySource(java.net.URI absoluteURI)
Get a StreamSource object representing the source of a query, given its URI.
|
javax.xml.transform.stream.StreamSource[] |
resolve(java.lang.String moduleURI,
java.lang.String baseURI,
java.lang.String[] locations)
Resolve a module URI and associated location hints.
|
protected StandardModuleURIResolver()
public static StandardModuleURIResolver getInstance()
public javax.xml.transform.stream.StreamSource[] resolve(java.lang.String moduleURI, java.lang.String baseURI, java.lang.String[] locations) throws XPathException
resolve
in interface ModuleURIResolver
moduleURI
- The module namespace URI of the module to be imported; or null when
loading a non-library module.baseURI
- The base URI of the module containing the "import module" declaration;
null if no base URI is knownlocations
- The set of URIs specified in the "at" clause of "import module",
which serve as location hints for the moduleXPathException
- (error XQST0059) if the module cannot be locatedprotected javax.xml.transform.stream.StreamSource getQuerySource(java.net.URI absoluteURI) throws XPathException
absoluteURI
- the absolute URI of the source queryXPathException
- if the URIs are invalid or cannot be resolved or dereferenced, or
if any I/O error occurs