public class AbsFunction extends FunctionBase
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_DOUBLE_ABS
Standard identifier for the double-abs function.
|
static String |
NAME_INTEGER_ABS
Standard identifier for the integer-abs function.
|
FUNCTION_NS, FUNCTION_NS_2, FUNCTION_NS_3| Constructor and Description |
|---|
AbsFunction(String functionName)
Creates a new
AbsFunction object. |
| Modifier and Type | Method and Description |
|---|---|
EvaluationResult |
evaluate(List inputs,
EvaluationCtx context)
Evaluate the function, using the specified parameters.
|
static Set |
getSupportedIdentifiers()
Returns a
Set containing all the function identifiers supported by this class. |
checkInputs, checkInputsNoBag, encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBagpublic static final String NAME_INTEGER_ABS
public static final String NAME_DOUBLE_ABS
public AbsFunction(String functionName)
AbsFunction object.functionName - the standard XACML name of the function to be handled by this object,
including the full namespaceIllegalArgumentException - if the function is knownpublic static Set getSupportedIdentifiers()
Set containing all the function identifiers supported by this class.Set of Stringspublic EvaluationResult evaluate(List inputs, EvaluationCtx context)
inputs - a List of Evaluatable objects representing the
arguments passed to the functioncontext - an EvaluationCtx so that the Evaluatable objects can
be evaluatedEvaluationResult representing the function's resultCopyright © 2018 WSO2. All rights reserved.