|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Function
Function defines the interface for objects that take an
ordered list of typed arguments and evaluates/returns a result.
| Method Summary | |
|---|---|
void |
checkArgList(List argList)
Checks that the given argList contains Evaluatables of the right types, in the right order, and are the right number for this function to evaluate. |
void |
checkArgListAllowBags(List argList)
Checks that the given argList contains Evaluatables of the right types, in the right order, and are the right number for this function to evaluate. |
EvaluationResult |
evaluate(List argList,
EvaluationContext evalContext)
Evaluates the Function using the given list of arguments. |
int |
getFunctionId()
Get the integer function identifier for this particular object. |
String |
getFunctionName()
Get the name of the function for this particular object. |
URI |
getIdentifier()
Get the identifier of this function. |
URI |
getReturnType()
Get the type of AttributeValue that this function
returns from a successful evaluate invocation. |
boolean |
returnsBag()
Indicate whether this function will return a bag of values or just a single value. |
| Method Detail |
|---|
EvaluationResult evaluate(List argList,
EvaluationContext evalContext)
Function using the given list of arguments.
The List contains Evaluatables which must be
of the correct type. Each parameter should be evaluated by the
Function, unless it does not need to evaluate all inputs
to determine a result.
- Parameters:
argList - the List of arguments for the function,
which must be the appropriate number of Evaluatables
of the correct type.evalContext - the representation of the request
- Returns:
- a result containing the
AttributeValue computed
when evaluating the function, or Status
specifying some error condition
URI getIdentifier()
String getFunctionName()
int getFunctionId()
URI getReturnType()
AttributeValue that this function
returns from a successful evaluate invocation.
boolean returnsBag()
void checkArgList(List argList)
throws IllegalArgumentException
IllegalArgumentException is thrown.
argList - a List of Evaluatables
IllegalArgumentException - if the arguments do match what the
function accepts for evaluation
void checkArgListAllowBags(List argList)
throws IllegalArgumentException
IllegalArgumentException is thrown. This check allows
arguments that evaluate to a bag and must be invoked by callers that
invoke the function over a bag of arguments.
argList - a List of Evaluatables
IllegalArgumentException - if the arguments do match what the
function accepts for evaluation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||