public class StandardModuleURIResolver extends Object implements ModuleURIResolver
jar URI scheme; it also
accepts classpath URIs as defined in the Spring framework.| Constructor and Description |
|---|
StandardModuleURIResolver()
Create a StandardModuleURIResolver.
|
StandardModuleURIResolver(Configuration config)
Create a StandardModuleURIResolver.
|
| Modifier and Type | Method and Description |
|---|---|
protected StreamSource |
getQuerySource(URI absoluteURI)
Get a StreamSource object representing the source of a query, given its URI.
|
StreamSource[] |
resolve(String moduleURI,
String baseURI,
String[] locations)
Resolve a module URI and associated location hints.
|
public StandardModuleURIResolver()
public StandardModuleURIResolver(Configuration config)
public StreamSource[] resolve(String moduleURI, String baseURI, String[] locations) throws XPathException
resolve in interface ModuleURIResolvermoduleURI - 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 StreamSource getQuerySource(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 occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.