public class RemoteFunction_Proxy<R> extends MappedObject_Proxy<RemoteFunction<R>> implements Function<R>
| Constructor and Description |
|---|
RemoteFunction_Proxy(RemoteFunction<R> remoteObject) |
| Modifier and Type | Method and Description |
|---|---|
Parameters |
createParameters()
Creates an empty 'Parameters' object for you, which you have to fill and feed back to getFunctionValue
|
String |
getDescription() |
R |
getFunctionValue(Parameters arg0)
Executes the defined function supplying the given arguments.
|
R |
getFunctionValueWithList(List<?> arg0)
Executes the defined function supplying the given List of arguments.
|
String |
getName()
A function must have a name.
|
Parameter<?>[] |
getParameterDefinition() |
ReturnType<R> |
getReturnType() |
RemoteFunction<R> |
getWrappedObject() |
void |
setDescription(String arg0)
For documentational purposes a function object needs a description too.
|
void |
setParameterDefinition(Parameter<?>[] arg0)
A function object is of no use, as long as it lacks a definition.
|
void |
setReturnType(ReturnType<R> arg0)
Sets the return type of the function's result value.
|
equals, getMapperCode, hashCode, toStringpublic RemoteFunction_Proxy(RemoteFunction<R> remoteObject)
public Parameters createParameters()
FunctioncreateParameters in interface Function<R>Function.getFunctionValue(Parameters)public R getFunctionValue(Parameters arg0)
FunctiongetFunctionValue in interface Function<R>arg0 - 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 R getFunctionValueWithList(List<?> arg0)
FunctionFunction.getFunctionValue(Parameters).getFunctionValueWithList in interface Function<R>arg0 - The parameters for the function. To specify an empty parameter list use Parameters.VOID.Function.getReturnType()public Parameter<?>[] getParameterDefinition()
getParameterDefinition in interface Function<R>null if not set already.public void setParameterDefinition(Parameter<?>[] arg0)
FunctionsetParameterDefinition in interface Function<R>arg0 - An array of Parameter objects.public void setReturnType(ReturnType<R> arg0)
FunctionsetReturnType in interface Function<R>arg0 - A ReturnType object. For void functions that could be ReturnType.VOID.public String getDescription()
getDescription in interface Function<R>Function.setDescription(String)public void setDescription(String arg0)
FunctionsetDescription in interface Function<R>public String getName()
Functionpublic ReturnType<R> getReturnType()
getReturnType in interface Function<R>null if unknown.public RemoteFunction<R> getWrappedObject()
getWrappedObject in interface MappedObjectgetWrappedObject in class MappedObject_Proxy<RemoteFunction<R>>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}