AV
- primitive type of elements in bag/setRETURN
- return typepublic abstract static class FirstOrderBagFunctions.SetFunction<AV extends AttributeValue,RETURN extends Value> extends SingleParameterTypedFirstOrderFunction<RETURN,Bag<AV>>
functionSignature
AUTHZFORCE_EXTENSION_PREFIX, XACML_NS_1_0, XACML_NS_2_0, XACML_NS_3_0
Constructor and Description |
---|
SetFunction(String functionIdSuffix,
Datatype<RETURN> returnType,
boolean varArgs,
List<? extends BagDatatype<AV>> parameterTypes)
Creates instance
|
Modifier and Type | Method and Description |
---|---|
protected abstract RETURN |
eval(Bag<AV>[] bagArgs) |
FirstOrderFunctionCall<RETURN> |
newCall(List<Expression<?>> argExpressions,
Datatype<?>... remainingArgTypes)
Returns a function call for calling this function.
|
getParameterTypes, getReturnType
newCall
equals, getId, getIndeterminateArgException, getIndeterminateArgMessage, hashCode, toString
public SetFunction(String functionIdSuffix, Datatype<RETURN> returnType, boolean varArgs, List<? extends BagDatatype<AV>> parameterTypes)
functionIdSuffix
- suffix to functionId; resulting functionId = parameterType.getTypeParameter().getFuncIdPrefix()+ functionIdSuffix
function IDreturnType
- return typevarArgs
- variable-length parameter (the number of parameters to set function is variable)parameterTypes
- parameter typespublic final FirstOrderFunctionCall<RETURN> newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes) throws IllegalArgumentException
FirstOrderFunction
newCall
in class FirstOrderFunction<RETURN extends Value>
argExpressions
- function arguments (expressions)remainingArgTypes
- types of remaining inputs to be passed only at request evaluation time, if not all arguments are specified in argExpressions
. Therefore, only their type is checked at
this point. The actual argument values will be passed as last parameters when calling
BaseFirstOrderFunctionCall.evaluate(org.ow2.authzforce.core.pdp.api.EvaluationContext, boolean, org.ow2.authzforce.core.pdp.api.value.AttributeValue...)
at request evaluation
time, via the returned FunctionCall
.IllegalArgumentException
- if inputs are invalid for this functionCopyright © 2012–2020. All rights reserved.