PARAM_T
- parameter/input typeRETURN_T
- return/output typepublic class DatatypeConversionFunction<PARAM_T extends AttributeValue,RETURN_T extends AttributeValue> extends SingleParameterTypedFirstOrderFunction<RETURN_T,PARAM_T>
Modifier and Type | Class and Description |
---|---|
static interface |
DatatypeConversionFunction.TypeConverter<RETURN,PARAM>
Data converter
|
functionSignature
AUTHZFORCE_EXTENSION_PREFIX, XACML_NS_1_0, XACML_NS_2_0, XACML_NS_3_0
Constructor and Description |
---|
DatatypeConversionFunction(String functionID,
Datatype<PARAM_T> paramType,
Datatype<RETURN_T> returnType,
DatatypeConversionFunction.TypeConverter<RETURN_T,PARAM_T> converter)
Creates a new
DatatypeConversionFunction object. |
Modifier and Type | Method and Description |
---|---|
FirstOrderFunctionCall<RETURN_T> |
newCall(List<Expression<?>> argExpressions,
Datatype<?>... remainingArgTypes)
Returns a function call for calling this function.
|
getParameterTypes, getReturnType
newCall
equals, getId, getIndeterminateArgException, getIndeterminateArgMessage, hashCode, toString
public DatatypeConversionFunction(String functionID, Datatype<PARAM_T> paramType, Datatype<RETURN_T> returnType, DatatypeConversionFunction.TypeConverter<RETURN_T,PARAM_T> converter)
DatatypeConversionFunction
object.functionID
- function IDparamType
- parameter typereturnType
- return typeconverter
- type converterpublic FirstOrderFunctionCall<RETURN_T> newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes) throws IllegalArgumentException
newCall
in class FirstOrderFunction<RETURN_T extends AttributeValue>
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.