|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExternalModule
An external library module implemented in XQuery and loaded through the "import module" directive.
| Method Summary | |
|---|---|
void |
analyzeGlobalVars()
|
void |
declareFunction(UserDefinedFunction func)
Declare a new function. |
void |
declareVariable(QName qname,
VariableDeclaration decl)
|
XQueryContext |
getContext()
|
UserDefinedFunction |
getFunction(QName qname,
int arity)
Try to find the function identified by qname. |
Expression |
getRootExpression()
Returns the root expression associated with this context. |
Source |
getSource()
Get the source object this module has been read from. |
boolean |
moduleIsValid(DBBroker broker)
Is this module still valid or should it be reloaded from its source? |
void |
setContext(XQueryContext context)
Set the XQueryContext of this module. |
void |
setNamespace(java.lang.String prefix,
java.lang.String namespace)
|
void |
setSource(Source source)
Set the source object this module has been read from. |
| Methods inherited from interface org.exist.xquery.Module |
|---|
declareVariable, declareVariable, getDefaultPrefix, getDescription, getGlobalVariables, getNamespaceURI, getReleaseVersion, getSignaturesForFunction, isInternalModule, isReady, isVarDeclared, listFunctions, reset, resolveVariable |
| Method Detail |
|---|
void setNamespace(java.lang.String prefix,
java.lang.String namespace)
void declareFunction(UserDefinedFunction func)
func -
UserDefinedFunction getFunction(QName qname,
int arity)
qname -
void declareVariable(QName qname,
VariableDeclaration decl)
throws XPathException
XPathException
void analyzeGlobalVars()
throws XPathException
XPathExceptionSource getSource()
void setSource(Source source)
source - XQueryContext getContext()
void setContext(XQueryContext context)
context - boolean moduleIsValid(DBBroker broker)
Expression getRootExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||