public class StandardModuleURIResolver extends Object implements ModuleURIResolver
Constructor and Description |
---|
StandardModuleURIResolver()
Create a StandardModuleURIResolver.
|
Modifier and Type | Method and Description |
---|---|
static StandardModuleURIResolver |
getInstance()
Get the singular instance of this class
|
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 static StandardModuleURIResolver getInstance()
public StreamSource[] resolve(String moduleURI, String baseURI, 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 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-2013 Saxonica Limited. All rights reserved.