public class DateMathFunction extends FunctionBase
Modifier and Type | Field and Description |
---|---|
static String |
NAME_DATE_ADD_YEARMONTHDURATION
Standard identifier for the date-add-yearMonthDuration function.
|
static String |
NAME_DATE_SUBTRACT_YEARMONTHDURATION
Standard identifier for the date-subtract-yearMonthDuration function.
|
static String |
NAME_DATETIME_ADD_DAYTIMEDURATION
Standard identifier for the dateTime-add-dayTimeDuration function.
|
static String |
NAME_DATETIME_ADD_YEARMONTHDURATION
Standard identifier for the dateTime-add-yearMonthDuration function.
|
static String |
NAME_DATETIME_SUBTRACT_DAYTIMEDURATION
Standard identifier for the dateTime-subtract-dayTimeDuration function.
|
static String |
NAME_DATETIME_SUBTRACT_YEARMONTHDURATION
Standard identifier for the dateTime-subtract-yearMonthDuration function.
|
FUNCTION_NS, FUNCTION_NS_2, FUNCTION_NS_3
Constructor and Description |
---|
DateMathFunction(String functionName)
Creates a new
DateMathFunction 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, returnsBag
public static final String NAME_DATETIME_ADD_DAYTIMEDURATION
public static final String NAME_DATETIME_SUBTRACT_DAYTIMEDURATION
public static final String NAME_DATETIME_ADD_YEARMONTHDURATION
public static final String NAME_DATETIME_SUBTRACT_YEARMONTHDURATION
public static final String NAME_DATE_ADD_YEARMONTHDURATION
public static final String NAME_DATE_SUBTRACT_YEARMONTHDURATION
public DateMathFunction(String functionName)
DateMathFunction
object.functionName
- the standard XACML name of the function to be handled by this object,
including the full namespaceIllegalArgumentException
- if the function is unknownpublic static Set getSupportedIdentifiers()
Set
containing all the function identifiers supported by this class.Set
of String
spublic 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 © 2021 WSO2. All rights reserved.