public class GeneralSetFunction extends SetFunction
SetFunction class that supports all of the general-purpose set functions:
type-intersection and type-union.baseTypes, baseTypes2, NAME_BASE_AT_LEAST_ONE_MEMBER_OF, NAME_BASE_INTERSECTION, NAME_BASE_SET_EQUALS, NAME_BASE_SUBSET, NAME_BASE_UNION, simpleTypes, simpleTypes2FUNCTION_NS, FUNCTION_NS_2, FUNCTION_NS_3| Constructor and Description |
|---|
GeneralSetFunction(String functionName)
Constructor that is used to create one of the general-purpose standard set functions.
|
GeneralSetFunction(String functionName,
String datatype,
String functionType)
Constructor that is used to create instances of general-purpose set functions for new
(non-standard) datatypes.
|
| Modifier and Type | Method and Description |
|---|---|
EvaluationResult |
evaluate(List inputs,
EvaluationCtx context)
Evaluates the function, using the specified parameters.
|
static Set |
getSupportedIdentifiers()
Returns a
Set containing all the function identifiers supported by this class. |
getAtLeastOneInstance, getIntersectionInstance, getSetEqualsInstance, getSubsetInstance, getUnionInstancecheckInputs, checkInputsNoBag, encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBagpublic GeneralSetFunction(String functionName)
SetFunction for
details about the supported names.functionName - the name of the function to createIllegalArgumentException - if the function is unknownpublic GeneralSetFunction(String functionName, String datatype, String functionType)
getInstance methods in
SetFunction and is generally only used by the run-time configuration code.functionName - the name of the new functiondatatype - the full identifier for the supported datatypefunctionType - which kind of Set function, based on the NAME_BASE_* fieldspublic 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 © 2024 WSO2. All rights reserved.