|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xquery.ExternalModuleImpl
public class ExternalModuleImpl
Default implementation of an ExternalModule.
| Constructor Summary | |
|---|---|
ExternalModuleImpl(String namespaceURI,
String prefix)
|
|
| Method Summary | |
|---|---|
void |
declareFunction(UserDefinedFunction func)
Declare a new function. |
Variable |
declareVariable(QName qname,
Object value)
|
void |
declareVariable(QName qname,
VariableDeclaration decl)
|
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. |
UserDefinedFunction |
getFunction(QName qname,
int arity)
Try to find the function identified by qname. |
String |
getNamespaceURI()
Returns the namespace URI that uniquely identifies this module. |
Iterator |
getSignaturesForFunction(QName qname)
Try to find the signature of the function identified by its QName. |
Source |
getSource()
Get the source object this module has been read from. |
boolean |
isInternalModule()
Is this an internal module? |
boolean |
isVarDeclared(QName qname)
|
FunctionSignature[] |
listFunctions()
Returns the signatures of all functions defined within this module. |
boolean |
moduleIsValid()
Is this module still valid or should it be reloaded from its source? |
void |
reset()
Reset the module's internal state for being reused. |
Variable |
resolveVariable(QName qname)
|
void |
setContext(XQueryContext context)
Set the XQueryContext of this module. |
void |
setSource(Source source)
Set the source object this module has been read from. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalModuleImpl(String namespaceURI,
String prefix)
| Method Detail |
|---|
public String getDescription()
Module
getDescription in interface Module
public UserDefinedFunction getFunction(QName qname,
int arity)
ExternalModule
getFunction in interface ExternalModulepublic void declareFunction(UserDefinedFunction func)
ExternalModule
declareFunction in interface ExternalModulepublic String getNamespaceURI()
Module
getNamespaceURI in interface Modulepublic String getDefaultPrefix()
Module
getDefaultPrefix in interface Modulepublic boolean isInternalModule()
Module
isInternalModule in interface Modulepublic FunctionSignature[] listFunctions()
Module
listFunctions in interface Modulepublic Iterator getSignaturesForFunction(QName qname)
Module
getSignaturesForFunction in interface Module
public Variable declareVariable(QName qname,
Object value)
throws XPathException
declareVariable in interface ModuleXPathExceptionpublic Variable declareVariable(Variable var)
declareVariable in interface Module
public void declareVariable(QName qname,
VariableDeclaration decl)
throws XPathException
declareVariable in interface ExternalModuleXPathExceptionpublic boolean isVarDeclared(QName qname)
isVarDeclared in interface Module
public Variable resolveVariable(QName qname)
throws XPathException
resolveVariable in interface ModuleXPathExceptionpublic Source getSource()
ExternalModule
getSource in interface ExternalModulepublic void setSource(Source source)
ExternalModule
setSource in interface ExternalModulepublic void setContext(XQueryContext context)
ExternalModule
setContext in interface ExternalModulepublic boolean moduleIsValid()
ExternalModule
moduleIsValid in interface ExternalModulepublic void reset()
Module
reset in interface Module
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||