|
Qizx/Open v0.4p2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.xquery.ModuleManager
Compiles and caches XQuery modules on behalf of a XQueryProcessor.
This is a simple implementation that assumes that all modules URIs can be
resolved using the same base location (any URL supported by Java).
If the physical location ("at") is not specified in the "import module"
declaration, then the module URI is used as follows: periods are replaced
by '/' and the extension '.xqm' is appended. For example if the base URL is
http://myserver.net/xqmodules
, the declaration
import module mod1 = "myapp.module1"
will resolve the module location
as http://myserver.net/xqmodules/myapp/module1.xqm
Ensures that a module is loaded only once for the same query (i.e. two indirect references to a module from the same query must yield the same object).
Can be shared by several XQueryProcessors in a multithreaded context.
Constructor Summary | |
ModuleManager(java.lang.String baseURI)
Builds a Module Manager with a base location for resolution of module URIs. |
|
ModuleManager(java.net.URL baseURL)
Builds a Module Manager with a base location for resolution of module URIs. |
Method Summary | |
void |
error(javax.xml.transform.TransformerException exception)
|
void |
fatalError(javax.xml.transform.TransformerException exception)
|
javax.xml.transform.TransformerFactory |
getXSLTFactory()
Gets the TransformerFactory used for XSLT transformations. |
net.xfra.qizxopen.xquery.impl.Module |
loadModule(net.xfra.qizxopen.xquery.impl.Parser caller,
java.lang.String uri,
java.lang.String location,
Log log)
[used internally by the parser.] |
java.net.URL |
resolveModuleLocation(java.lang.String namespaceURI,
java.lang.String physicalURI)
Overridable method for resolving a module name and location to an actual URL. |
void |
setXSLTFactory(javax.xml.transform.TransformerFactory value)
Sets the TransformerFactory used for XSLT transformations. |
void |
unloadAllModules()
Unloads all modules. |
void |
warning(javax.xml.transform.TransformerException exception)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModuleManager(java.net.URL baseURL) throws java.io.IOException
public ModuleManager(java.lang.String baseURI) throws java.io.IOException
Method Detail |
public java.net.URL resolveModuleLocation(java.lang.String namespaceURI, java.lang.String physicalURI) throws java.io.IOException
java.io.IOException
public void unloadAllModules()
Note: Due to possible dependencies between modules, it would be very difficult to unload a module selectively.
public net.xfra.qizxopen.xquery.impl.Module loadModule(net.xfra.qizxopen.xquery.impl.Parser caller, java.lang.String uri, java.lang.String location, Log log) throws java.io.IOException, XQueryException
java.io.IOException
XQueryException
public void setXSLTFactory(javax.xml.transform.TransformerFactory value)
public javax.xml.transform.TransformerFactory getXSLTFactory()
public void error(javax.xml.transform.TransformerException exception) throws javax.xml.transform.TransformerException
error
in interface javax.xml.transform.ErrorListener
javax.xml.transform.TransformerException
public void fatalError(javax.xml.transform.TransformerException exception) throws javax.xml.transform.TransformerException
fatalError
in interface javax.xml.transform.ErrorListener
javax.xml.transform.TransformerException
public void warning(javax.xml.transform.TransformerException exception)
warning
in interface javax.xml.transform.ErrorListener
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |