Class NonEqualTypeMatchFunction<T0 extends AttributeValue,T1 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.MultiParameterTypedFirstOrderFunction<BooleanValue>
-
- org.ow2.authzforce.core.pdp.api.func.NonEqualTypeMatchFunction<T0,T1>
-
- Type Parameters:
T0
- Type of the first parameter of this function.T1
- Type of the second parameter of this function.
- All Implemented Interfaces:
Function<BooleanValue>
,PdpExtension
,PrimitiveValue
,Value
public class NonEqualTypeMatchFunction<T0 extends AttributeValue,T1 extends AttributeValue> extends MultiParameterTypedFirstOrderFunction<BooleanValue>
Generic match functions taking two parameters of possibly different types, e.g. a string and a URI.- Version:
- $Id: $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NonEqualTypeMatchFunction.CallFactory<T0 extends AttributeValue,T1 extends AttributeValue>
Match function call factorystatic interface
NonEqualTypeMatchFunction.CallFactoryBuilder<T0 extends AttributeValue,T1 extends AttributeValue>
Match function call factory builderstatic interface
NonEqualTypeMatchFunction.Matcher<T0 extends AttributeValue,T1 extends AttributeValue>
Generic match method interface for values of different typesstatic class
NonEqualTypeMatchFunction.RegexpMatchCallFactoryBuilder<AV extends SimpleValue<String>>
*-regexp-match function
-
Field Summary
-
Fields inherited from class org.ow2.authzforce.core.pdp.api.func.MultiParameterTypedFirstOrderFunction
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 NonEqualTypeMatchFunction(String functionName, Datatype<T0> paramType0, Datatype<T1> paramType1, NonEqualTypeMatchFunction.CallFactoryBuilder<T0,T1> callFactoryBuilder)
Creates a newNonEqualTypeMatchFunction
based on a match method call factory builder.NonEqualTypeMatchFunction(String functionName, Datatype<T0> paramType0, Datatype<T1> paramType1, NonEqualTypeMatchFunction.Matcher<T0,T1> matcher)
Creates a newNonEqualTypeMatchFunction
based on a match method.
-
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.MultiParameterTypedFirstOrderFunction
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
-
NonEqualTypeMatchFunction
public NonEqualTypeMatchFunction(String functionName, Datatype<T0> paramType0, Datatype<T1> paramType1, NonEqualTypeMatchFunction.Matcher<T0,T1> matcher)
Creates a newNonEqualTypeMatchFunction
based on a match method.- Parameters:
functionName
- the name of the standard match function, including the complete namespaceparamType0
- first parameter typeparamType1
- second parameter typematcher
- matching algorithm
-
NonEqualTypeMatchFunction
public NonEqualTypeMatchFunction(String functionName, Datatype<T0> paramType0, Datatype<T1> paramType1, NonEqualTypeMatchFunction.CallFactoryBuilder<T0,T1> callFactoryBuilder)
Creates a newNonEqualTypeMatchFunction
based on a match method call factory builder.- Parameters:
functionName
- the name of the standard match function, including the complete namespaceparamType0
- first parameter typeparamType1
- second parameter typecallFactoryBuilder
- match function call factory builder
-
-
Method Detail
-
newCall
public FirstOrderFunctionCall<BooleanValue> newCall(List<Expression<?>> argExpressions, Datatype<?>... remainingArgTypes) throws IllegalArgumentException
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)
- Throws:
IllegalArgumentException
- if inputs are invalid for this function
-
-