|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.WrappedFunction
A wrapped function is a base class for function objects based on an other function object.
| Field Summary | |
protected Function |
wrappedFunction
|
| Constructor Summary | |
WrappedFunction(Function function)
Constructor for Basic Function |
|
| Method Summary | |
Parameters |
createParameters()
Creates an empty 'Parameters' object for you, which you have to fill and feed back to getFunctionValue |
String |
getDescription()
|
Object |
getFunctionValue(Parameters parameters)
Executes the defined function supplying the given arguments. |
Object |
getFunctionValueWithList(List parameters)
Executes the defined function supplying the given List of arguments. |
String |
getName()
A function must have a name. |
Parameter[] |
getParameterDefinition()
|
ReturnType |
getReturnType()
|
int |
hashCode()
|
void |
setDescription(String description)
For documentational purposes a function object needs a description too. |
void |
setParameterDefinition(Parameter[] params)
A function object is of no use, as long as it lacks a definition. |
void |
setReturnType(ReturnType type)
Sets the return type of the function's result value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Function wrappedFunction
| Constructor Detail |
public WrappedFunction(Function function)
function - The function to wrap| Method Detail |
public Parameters createParameters()
Function
createParameters in interface FunctionFunction.getFunctionValue(Parameters)public Object getFunctionValue(Parameters parameters)
Function
getFunctionValue in interface Functionparameters - The parameters for the function. To specify an empty parameter list use Parameters.VOID.
Implementors are encouraged to support null too.
Function.getReturnType()Function.createParameters()public Object getFunctionValueWithList(List parameters)
FunctionFunction.getFunctionValue(Parameters).
getFunctionValueWithList in interface Functionparameters - The parameters for the function. To specify an empty parameter list use Parameters.VOID.
Function.getReturnType()public void setDescription(String description)
Function
setDescription in interface Functionpublic String getDescription()
getDescription in interface FunctionFunction.setDescription(String)public String getName()
Function
getName in interface Functionnullpublic Parameter[] getParameterDefinition()
getParameterDefinition in interface Functionnull if not set already.public void setParameterDefinition(Parameter[] params)
Function
setParameterDefinition in interface Functionparams - An array of Parameter objects.public ReturnType getReturnType()
getReturnType in interface Functionnull if unknown.public void setReturnType(ReturnType type)
Function
setReturnType in interface Functiontype - A ReturnType object. For void functions that could be ReturnType.VOID.public int hashCode()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||