Class AbstractFunction
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.impl.basic.AbstractFunction
-
- All Implemented Interfaces:
FunctionIF
- Direct Known Subclasses:
DisplayHierarchyFunction,Function,HelloWorldFunction
public abstract class AbstractFunction extends Object implements FunctionIF
INTERNAL: Abstract implementation of FunctionIF, which should be the superclass for customized functions.Subclasses of this abstract function only have to implement the
getParameters()andexecute()methods.- Since:
- 1.3.4
-
-
Constructor Summary
Constructors Constructor Description AbstractFunction()
-
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.Collectionexecute(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()
-
-
-
Method Detail
-
getParameters
public Collection getParameters()
Description copied from interface:FunctionIFINTERNAL: Return the names of the parameters as an orderedCollection.- Specified by:
getParametersin interfaceFunctionIF- Returns:
- Empty list
-
execute
public Collection execute(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.TagSupport callingTag) throws IOException, javax.servlet.jsp.JspException
Description copied from interface:FunctionIFINTERNAL: Executes this function in the specified context.- Specified by:
executein interfaceFunctionIF- Returns:
- Collection The function return value collection. If null is returned, no value will be given to the parent value accepting tag.
- Throws:
IOExceptionjavax.servlet.jsp.JspException
-
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- Throws:
IOExceptionjavax.servlet.jsp.JspException
-
getName
public String getName()
Description copied from interface:FunctionIFINTERNAL: Gets the name of this function.- Specified by:
getNamein interfaceFunctionIF- Returns:
- null
-
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- 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- Returns:
- null
-
getRootNode
public JSPTreeNodeIF getRootNode()
Description copied from interface:FunctionIFINTERNAL: Gets the rode node of this Function.- Specified by:
getRootNodein interfaceFunctionIF- Returns:
- null
-
-