org.mmbase.module
Class ProcessorModule.ProcessFunction
java.lang.Object
org.mmbase.util.functions.AbstractFunction
org.mmbase.module.ProcessorModule.ProcessFunction
- All Implemented Interfaces:
- Comparable, Function, Serializable
- Enclosing class:
- ProcessorModule
- protected class ProcessorModule.ProcessFunction
- extends AbstractFunction
Function implementation around ProcessorModule.process(PageInfo, Hashtable, Hashtable). See in
MMAdmin for an example on how to use. It does not support multipible commands, so the first
Hashtable always contains precisely one entry. The value of the entry is the value of the
first string parameter or the empty string. All parameters are added to the second Hashtable
parameter ('vars'), and this is also returned (because sometimes also results are put in it).
- Since:
- MMBase-1.8
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.util.functions.AbstractFunction |
compareTo, createParameters, equals, getDescription, getFunctionValueWithList, getName, getParameterDefinition, getReturnType, hashCode, setDescription, setParameterDefinition, setReturnType, toString |
ProcessorModule.ProcessFunction
public ProcessorModule.ProcessFunction(String name,
Parameter[] params)
getFunctionValue
public Object getFunctionValue(Parameters arguments)
- Description copied from class:
AbstractFunction
- Executes the defined function supplying the given arguments.
- Specified by:
getFunctionValue in interface Function- Specified by:
getFunctionValue in class AbstractFunction
- Parameters:
arguments - The parameters for the function. To specify an empty parameter list use Parameters.VOID.
Implementors are encouraged to support null too.
- Returns:
- The function value, which can be of any type compatible to
AbstractFunction.getReturnType() - See Also:
AbstractFunction.createParameters()
MMBase build 1.8.1.20060716