org.exist.xquery
Interface InternalModule

All Superinterfaces:
Module
All Known Implementing Classes:
AbstractInternalModule, BackupModule, ModuleImpl, RequestModule, ResponseModule, SessionModule, SystemModule, TextModule, TransformModule, UtilModule, ValidationModule, XMLDBModule

public interface InternalModule
extends Module

Defines an internal module implemented in Java. The class maintains a collection of Java classes each being a subclass of Function. For internal modules, a new function object is created from its class for each function reference in the XQuery script.

Author:
Wolfgang Meier (wolfgang@exist-db.org)

Method Summary
 FunctionDef getFunctionDef(QName qname, int argCount)
          Returns the implementing class for the function identified by qname or null if it is not defined.
 List getFunctionsByName(QName qname)
          Returns all functions defined in this module matching the specified qname.
 
Methods inherited from interface org.exist.xquery.Module
declareVariable, declareVariable, getDefaultPrefix, getDescription, getNamespaceURI, getReleaseVersion, getSignaturesForFunction, isInternalModule, isReady, isVarDeclared, listFunctions, reset, resolveVariable
 

Method Detail

getFunctionDef

FunctionDef getFunctionDef(QName qname,
                           int argCount)
Returns the implementing class for the function identified by qname or null if it is not defined. Called by FunctionFactory.

Parameters:
qname -
Returns:
implementing class for the function

getFunctionsByName

List getFunctionsByName(QName qname)
Returns all functions defined in this module matching the specified qname.

Parameters:
qname -
Returns:
all functions defined in this module


Copyright (C) Wolfgang Meier. All rights reserved.