| net.sf.saxon.query.ModuleURIResolver
All known Subclasses: net.sf.saxon.query.StandardModuleURIResolver,
ModuleURIResolver | public interface ModuleURIResolver extends Serializable(Code) | | This interface defines a ModuleURIResolver. This takes a module URI and a set of
module location hints as input, and returns a StreamSource representing the text of the query,
and containing its base URI.
The system supplies a StandardModuleURIResolver but this can be overridden by a user-supplied
ModuleURIResolver.
author: Michael H. Kay |
Method Summary | |
public StreamSource[] | resolve(String moduleURI, String baseURI, String[] locations) Resolve a module URI and associated location hints.
Parameters: moduleURI - The module namespace URI of the module to be imported; or null whenloading a non-library module. Parameters: baseURI - The base URI of the module containing the "import module" declaration;null if no base URI is known Parameters: locations - The set of URIs specified in the "at" clause of "import module",which serve as location hints for the module an array of StreamSource objects each identifying the contents of a module to beimported. |
resolve | public StreamSource[] resolve(String moduleURI, String baseURI, String[] locations) throws XPathException(Code) | | Resolve a module URI and associated location hints.
Parameters: moduleURI - The module namespace URI of the module to be imported; or null whenloading a non-library module. Parameters: baseURI - The base URI of the module containing the "import module" declaration;null if no base URI is known Parameters: locations - The set of URIs specified in the "at" clause of "import module",which serve as location hints for the module an array of StreamSource objects each identifying the contents of a module to beimported. Each StreamSource must contain anon-null absolute System ID which will be used as the base URI of the imported module,and either an InputSource or a Reader representing the text of the module. The methodmay also return null, in which case the system attempts to resolve the URI using thestandard module URI resolver. throws: XPathException - if the module cannot be located, and if delegation to the defaultmodule resolver is not required. |
|
|