|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Module
Defines an XQuery library module. A module consists of function definitions
and global variables. It is uniquely identified by a namespace URI and an optional
default namespace prefix. All functions provided by the module have to be defined
in the module's namespace.
Modules can be either internal or external: internal modules are collections of Java
classes, each being a subclass of Function
. External modules
are defined by the XQuery "module" directive and can be loaded with "import module".
Modules are dynamically loaded by class XQueryContext
, either
during the initialization phase of the query engine (for the standard library modules) or
upon an "import module" directive.
Method Summary | |
---|---|
Variable |
declareVariable(QName qname,
Object value)
|
Variable |
declareVariable(Variable var)
|
String |
getDefaultPrefix()
Returns an optional default prefix (used if no prefix is supplied with the "import module" directive). |
String |
getDescription()
Return a short description of this module to be displayed to a user. |
String |
getNamespaceURI()
Returns the namespace URI that uniquely identifies this module. |
String |
getReleaseVersion()
Returns the release version in which the module was firstly available. |
Iterator |
getSignaturesForFunction(QName qname)
Try to find the signature of the function identified by its QName. |
boolean |
isInternalModule()
Is this an internal module? |
boolean |
isReady()
Check if this module has been fully loaded and is ready for use. |
boolean |
isVarDeclared(QName qname)
|
FunctionSignature[] |
listFunctions()
Returns the signatures of all functions defined within this module. |
void |
reset(XQueryContext xqueryContext)
Reset the module's internal state for being reused. |
Variable |
resolveVariable(QName qname)
|
Method Detail |
---|
String getNamespaceURI()
String getDefaultPrefix()
String getDescription()
String getReleaseVersion()
boolean isInternalModule()
FunctionSignature[] listFunctions()
Iterator getSignaturesForFunction(QName qname)
qname
-
Variable resolveVariable(QName qname) throws XPathException
XPathException
Variable declareVariable(QName qname, Object value) throws XPathException
XPathException
Variable declareVariable(Variable var)
boolean isVarDeclared(QName qname)
void reset(XQueryContext xqueryContext)
boolean isReady()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |