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 voidcall(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport callingTag)INTERNAL: Executes this function in the specified context.ModuleIFgetModule()INTERNAL: Gets the reference to the Module this function belongs to.StringgetName()INTERNAL: Gets the name of this function.CollectiongetParameters()INTERNAL: Return the names of the parameters as an orderedCollection.StringgetReturnVariableName()INTERNAL: Gets the name of the variable to which the return value of the function should be assigned to.JSPTreeNodeIFgetRootNode()INTERNAL: Gets the rode node of this Function.StringtoString()-
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:FunctionIFINTERNAL: Gets the name of this function.- Specified by:
getNamein interfaceFunctionIF- Overrides:
getNamein classAbstractFunction- Returns:
- null
-
getParameters
public Collection getParameters()
Description copied from interface:FunctionIFINTERNAL: Return the names of the parameters as an orderedCollection.- Specified by:
getParametersin interfaceFunctionIF- Overrides:
getParametersin classAbstractFunction- Returns:
- Empty list
-
getReturnVariableName
public String getReturnVariableName()
Description copied from interface:FunctionIFINTERNAL: 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:
getReturnVariableNamein interfaceFunctionIF- Overrides:
getReturnVariableNamein classAbstractFunction- Returns:
- null
-
call
public void call(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport callingTag) throws IOException, javax.servlet.jsp.JspExceptionDescription copied from interface:FunctionIFINTERNAL: Executes this function in the specified context.- Specified by:
callin interfaceFunctionIF- Overrides:
callin classAbstractFunction- Throws:
IOExceptionjavax.servlet.jsp.JspException
-
getRootNode
public JSPTreeNodeIF getRootNode()
Description copied from interface:FunctionIFINTERNAL: Gets the rode node of this Function.- Specified by:
getRootNodein interfaceFunctionIF- Overrides:
getRootNodein classAbstractFunction- Returns:
- null
-
getModule
public ModuleIF getModule()
Description copied from interface:FunctionIFINTERNAL: Gets the reference to the Module this function belongs to.- Specified by:
getModulein interfaceFunctionIF- Overrides:
getModulein classAbstractFunction- Returns:
- null
-
toString
public String toString()
- Overrides:
toStringin classAbstractFunction
-
-