Class EqualTypeMatchFunction<PARAM extends AttributeValue>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.func.BaseFunction<RETURN>
-
- org.ow2.authzforce.core.pdp.api.func.FirstOrderFunction<RETURN_T>
-
- org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction<BooleanValue,PARAM>
-
- org.ow2.authzforce.core.pdp.api.func.EqualTypeMatchFunction<PARAM>
-
- Type Parameters:
PARAM
- type of compared parameters
- All Implemented Interfaces:
Function<BooleanValue>
,PdpExtension
,PrimitiveValue
,Value
public class EqualTypeMatchFunction<PARAM extends AttributeValue> extends SingleParameterTypedFirstOrderFunction<BooleanValue,PARAM>
Generic match function taking parameters of same/equal type, like standard (A.3.1) Equality predicates and special match function x500Name-match- Version:
- $Id: $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EqualTypeMatchFunction.CallFactory<PARAM_T extends AttributeValue>
Equal-type match function call factorystatic interface
EqualTypeMatchFunction.CallFactoryBuilder<PARAM_T extends AttributeValue>
Equal-type match function call factory builderstatic class
EqualTypeMatchFunction.EqualIgnoreCaseMatcher<PARAM extends SimpleValue<String>>
*-equal-ignore-case function matcherstatic class
EqualTypeMatchFunction.EqualMatcher<PARAM extends AttributeValue>
*-equal function matcherstatic interface
EqualTypeMatchFunction.Matcher<PARAM_T extends AttributeValue>
Generic match method interface
-
Field Summary
-
Fields inherited from class org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction
functionSignature
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.func.Function
AUTHZFORCE_EXTENSION_PREFIX, XACML_NS_1_0, XACML_NS_2_0, XACML_NS_3_0
-
-
Constructor Summary
Constructors Constructor Description EqualTypeMatchFunction(String functionName, Datatype<PARAM> paramType, EqualTypeMatchFunction.CallFactoryBuilder<PARAM> callFactoryBuilder)
Constructor based on a match method call factory builderEqualTypeMatchFunction(String functionName, Datatype<PARAM> paramType, EqualTypeMatchFunction.Matcher<PARAM> matcher)
Constructor based on a match function
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirstOrderFunctionCall<BooleanValue>
newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes)
Returns a function call for calling this function.-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.SingleParameterTypedFirstOrderFunction
getParameterTypes, getReturnType
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.FirstOrderFunction
newCall
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.func.BaseFunction
equals, getId, getIndeterminateArgException, getIndeterminateArgMessage, hashCode, toString
-
-
-
-
Constructor Detail
-
EqualTypeMatchFunction
public EqualTypeMatchFunction(String functionName, Datatype<PARAM> paramType, EqualTypeMatchFunction.Matcher<PARAM> matcher)
Constructor based on a match function- Parameters:
functionName
- the standard XACML name of the function to be handled by this object, including the full namespaceparamType
- parameter typematcher
- raw match method
-
EqualTypeMatchFunction
public EqualTypeMatchFunction(String functionName, Datatype<PARAM> paramType, EqualTypeMatchFunction.CallFactoryBuilder<PARAM> callFactoryBuilder)
Constructor based on a match method call factory builder- Parameters:
functionName
- the standard XACML name of the function to be handled by this object, including the full namespaceparamType
- parameter typecallFactoryBuilder
- raw match method
-
-
Method Detail
-
newCall
public FirstOrderFunctionCall<BooleanValue> newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes)
Description copied from class:FirstOrderFunction
Returns a function call for calling this function.- Specified by:
newCall
in classFirstOrderFunction<BooleanValue>
- Parameters:
argExpressions
- function arguments (expressions)remainingArgTypes
- types of remaining inputs to be passed only at request evaluation time, if not all arguments are specified inargExpressions
. Therefore, only their type is checked at this point. The actual argument values will be passed as last parameters when callingBaseFirstOrderFunctionCall.evaluate(org.ow2.authzforce.core.pdp.api.EvaluationContext, boolean, org.ow2.authzforce.core.pdp.api.value.AttributeValue...)
at request evaluation time, via the returnedFunctionCall
.- Returns:
- Function call handle for calling this function which such inputs (with possible changes from original inputs due to optimizations for instance)
-
-