org.wso2.balana.cond
Class ConditionBagFunction
java.lang.Object
org.wso2.balana.cond.FunctionBase
org.wso2.balana.cond.BagFunction
org.wso2.balana.cond.ConditionBagFunction
- All Implemented Interfaces:
- Expression, Function
public class ConditionBagFunction
- extends BagFunction
Specific BagFunction
class that supports the single condition bag function:
type-is-in.
- Since:
- 1.2
- Author:
- Seth Proctor
Constructor Summary |
ConditionBagFunction(String functionName)
Constructor that is used to create one of the condition standard bag functions. |
ConditionBagFunction(String functionName,
String datatype)
Constructor that is used to create instances of condition bag functions for new
(non-standard) datatypes. |
Methods inherited from class org.wso2.balana.cond.FunctionBase |
checkInputs, checkInputsNoBag, encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionBagFunction
public ConditionBagFunction(String functionName)
- Constructor that is used to create one of the condition standard bag functions. The name
supplied must be one of the standard XACML functions supported by this class, including the
full namespace, otherwise an exception is thrown. Look in
BagFunction
for
details about the supported names.
- Parameters:
functionName
- the name of the function to create
- Throws:
IllegalArgumentException
- if the function is unknown
ConditionBagFunction
public ConditionBagFunction(String functionName,
String datatype)
- Constructor that is used to create instances of condition bag functions for new
(non-standard) datatypes. This is equivalent to using the
getInstance
methods in
BagFunction
and is generally only used by the run-time configuration code.
- Parameters:
functionName
- the name of the new functiondatatype
- the full identifier for the supported datatype
getSupportedIdentifiers
public static Set getSupportedIdentifiers()
- Returns a
Set
containing all the function identifiers supported by this class.
- Returns:
- a
Set
of String
s
evaluate
public EvaluationResult evaluate(List inputs,
EvaluationCtx context)
- Evaluate the function, using the specified parameters.
- Parameters:
inputs
- a List
of Evaluatable
objects representing the
arguments passed to the functioncontext
- an EvaluationCtx
so that the Evaluatable
objects can
be evaluated
- Returns:
- an
EvaluationResult
representing the function's result
Copyright © 2015 WSO2. All rights reserved.