|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.lib.StandardModuleURIResolver
public class StandardModuleURIResolver
This class is the standard ModuleURIResolver used to implement the "import module" declaration in a Query Prolog. It is used when no user-defined ModuleURIResolver has been specified, or when the user-defined ModuleURIResolver decides to delegate to the standard ModuleURIResolver.
| Constructor Summary | |
|---|---|
StandardModuleURIResolver()
Create a StandardModuleURIResolver. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardModuleURIResolver()
| Method Detail |
|---|
public static StandardModuleURIResolver getInstance()
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 module
XPathException - (error XQST0059) if the module cannot be located
protected StreamSource getQuerySource(URI absoluteURI)
throws XPathException
absoluteURI - the absolute URI of the source query
XPathException - if the URIs are invalid or cannot be resolved or dereferenced, or
if any I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||