Class Function
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.impl.basic.AbstractFunction
-
- net.ontopia.topicmaps.nav2.impl.basic.Function
-
- All Implemented Interfaces:
FunctionIF
public final class Function extends AbstractFunction
INTERNAL: A FunctionIF implementation used by the XML-based ModuleIF reader code. The function evaluates the taglib tree node in the context of the calling tag and the page context.- See Also:
ModuleReader
-
-
Constructor Summary
Constructors Constructor Description Function(String name, JSPTreeNodeIF rootNode, Collection params)
Default constructor.Function(ModuleIF parentModule, String name, JSPTreeNodeIF rootNode, Collection params)
Function(ModuleIF parentModule, String name, JSPTreeNodeIF rootNode, Collection params, String returnVariableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport callingTag)
INTERNAL: Executes this function in the specified context.ModuleIF
getModule()
INTERNAL: Gets the reference to the Module this function belongs to.String
getName()
INTERNAL: Gets the name of this function.Collection
getParameters()
INTERNAL: Return the names of the parameters as an orderedCollection
.String
getReturnVariableName()
INTERNAL: Gets the name of the variable to which the return value of the function should be assigned to.JSPTreeNodeIF
getRootNode()
INTERNAL: Gets the rode node of this Function.String
toString()
-
Methods inherited from class net.ontopia.topicmaps.nav2.impl.basic.AbstractFunction
execute
-
-
-
-
Constructor Detail
-
Function
public Function(String name, JSPTreeNodeIF rootNode, Collection params)
Default constructor.
-
Function
public Function(ModuleIF parentModule, String name, JSPTreeNodeIF rootNode, Collection params)
-
Function
public Function(ModuleIF parentModule, String name, JSPTreeNodeIF rootNode, Collection params, String returnVariableName)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:FunctionIF
INTERNAL: Gets the name of this function.- Specified by:
getName
in interfaceFunctionIF
- Overrides:
getName
in classAbstractFunction
- Returns:
- null
-
getParameters
public Collection getParameters()
Description copied from interface:FunctionIF
INTERNAL: Return the names of the parameters as an orderedCollection
.- Specified by:
getParameters
in interfaceFunctionIF
- Overrides:
getParameters
in classAbstractFunction
- Returns:
- Empty list
-
getReturnVariableName
public String getReturnVariableName()
Description copied from interface:FunctionIF
INTERNAL: Gets the name of the variable to which the return value of the function should be assigned to. Returns null if no return variable name was specified.- Specified by:
getReturnVariableName
in interfaceFunctionIF
- Overrides:
getReturnVariableName
in classAbstractFunction
- Returns:
- null
-
call
public void call(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport callingTag) throws IOException, javax.servlet.jsp.JspException
Description copied from interface:FunctionIF
INTERNAL: Executes this function in the specified context.- Specified by:
call
in interfaceFunctionIF
- Overrides:
call
in classAbstractFunction
- Throws:
IOException
javax.servlet.jsp.JspException
-
getRootNode
public JSPTreeNodeIF getRootNode()
Description copied from interface:FunctionIF
INTERNAL: Gets the rode node of this Function.- Specified by:
getRootNode
in interfaceFunctionIF
- Overrides:
getRootNode
in classAbstractFunction
- Returns:
- null
-
getModule
public ModuleIF getModule()
Description copied from interface:FunctionIF
INTERNAL: Gets the reference to the Module this function belongs to.- Specified by:
getModule
in interfaceFunctionIF
- Overrides:
getModule
in classAbstractFunction
- Returns:
- null
-
toString
public String toString()
- Overrides:
toString
in classAbstractFunction
-
-