public abstract class BagFunction extends FunctionBase
Modifier and Type | Field and Description |
---|---|
protected static String[] |
baseTypes
A complete list of all the XACML 1.x datatypes supported by the Bag
functions
|
protected static String[] |
baseTypes2
A complete list of all the XACML 2.0 datatypes newly supported by the
Bag functions
|
static String |
NAME_BASE_BAG
Base name for the type-bag funtions.
|
static String |
NAME_BASE_BAG_SIZE
Base name for the type-bag-size funtions.
|
static String |
NAME_BASE_IS_IN
Base name for the type-is-in.
|
static String |
NAME_BASE_ONE_AND_ONLY
Base name for the type-one-and-only funtions.
|
protected static String[] |
simpleTypes
A complete list of all the 1.x XACML datatypes supported by the
Bag functions, using the "simple" form of the names (eg, string
instead of http://www.w3.org/2001/XMLSchema#string)
|
protected static String[] |
simpleTypes2
A complete list of all the 2.0 XACML datatypes newly supported by the
Bag functions, using the "simple" form of the names (eg, string
instead of http://www.w3.org/2001/XMLSchema#string)
|
FUNCTION_NS, FUNCTION_NS_2
Modifier | Constructor and Description |
---|---|
protected |
BagFunction(String functionName,
int functionId,
String[] paramTypes)
Protected constuctor used by the general and condition subclasses
to create a boolean function with parameters of different datatypes.
|
protected |
BagFunction(String functionName,
int functionId,
String paramType,
boolean paramIsBag,
int numParams,
String returnType,
boolean returnsBag)
Protected constuctor used by the general and condition subclasses
to create a non-boolean function with parameters of the same datatype.
|
Modifier and Type | Method and Description |
---|---|
static BagFunction |
getBagInstance(String functionName,
String argumentType)
Returns a new
BagFunction that provides the
type-bag functionality over the given attribute type. |
static BagFunction |
getBagSizeInstance(String functionName,
String argumentType)
Returns a new
BagFunction that provides the
type-bag-size functionality over the given attribute type. |
static BagFunction |
getIsInInstance(String functionName,
String argumentType)
Returns a new
BagFunction that provides the
type-is-in functionality over the given attribute type. |
static BagFunction |
getOneAndOnlyInstance(String functionName,
String argumentType)
Returns a new
BagFunction that provides the
type-one-and-only functionality over the given attribute type. |
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_BASE_ONE_AND_ONLY
FunctionBase.FUNCTION_NS
+ the datatype's base name (e.g., string
) +
NAME_BASE_ONE_AND_ONLY.public static final String NAME_BASE_BAG_SIZE
FunctionBase.FUNCTION_NS
+ the datatype's base name (e.g., string
) +
NAME_BASE_BAG_SIZE.public static final String NAME_BASE_IS_IN
FunctionBase.FUNCTION_NS
+ the datatype's base name (e.g., string
) +
NAME_BASE_IS_IN.public static final String NAME_BASE_BAG
FunctionBase.FUNCTION_NS
+ the datatype's base name (e.g., string
) +
NAME_BASE_BAG.protected static String[] baseTypes
protected static String[] baseTypes2
protected static String[] simpleTypes
protected static String[] simpleTypes2
protected BagFunction(String functionName, int functionId, String paramType, boolean paramIsBag, int numParams, String returnType, boolean returnsBag)
BagFunction
instance you
should either use one of the getInstance
methods or
construct one of the sub-classes directly.functionName
- the identitifer for the functionfunctionId
- an optional, internal numeric identifierparamType
- the datatype this function acceptsparamIsBag
- whether the parameters are bagsnumParams
- number of parameters allowed or -1 for any numberreturnType
- the datatype this function returnsreturnsBag
- whether this function returns bagsprotected BagFunction(String functionName, int functionId, String[] paramTypes)
BagFunction
instance you
should either use one of the getInstance
methods or
construct one of the sub-classes directly.functionName
- the identitifer for the functionfunctionId
- an optional, internal numeric identifierparamTypes
- the datatype of each parameterpublic static BagFunction getOneAndOnlyInstance(String functionName, String argumentType)
BagFunction
that provides the
type-one-and-only functionality over the given attribute type.
This should be used to create new function instances for any new
attribute types, and the resulting object should be put into
the FunctionFactory
(instances already exist in the
factory for the standard attribute types).functionName
- the name to use for the functionargumentType
- the type to operate onBagFunction
public static BagFunction getBagSizeInstance(String functionName, String argumentType)
BagFunction
that provides the
type-bag-size functionality over the given attribute type. This
should be used to create new function instances for any new
attribute types, and the resulting object should be put into
the FunctionFactory
(instances already exist in the
factory for the standard attribute types).functionName
- the name to use for the functionargumentType
- the type to operate onBagFunction
public static BagFunction getIsInInstance(String functionName, String argumentType)
BagFunction
that provides the
type-is-in functionality over the given attribute type. This
should be used to create new function instances for any new
attribute types, and the resulting object should be put into
the FunctionFactory
(instances already exist in the
factory for the standard attribute types).functionName
- the name to use for the functionargumentType
- the type to operate onBagFunction
public static BagFunction getBagInstance(String functionName, String argumentType)
BagFunction
that provides the
type-bag functionality over the given attribute type. This
should be used to create new function instances for any new
attribute types, and the resulting object should be put into
the FunctionFactory
(instances already exist in the
factory for the standard attribute types).functionName
- the name to use for the functionargumentType
- the type to operate onBagFunction
public static Set getSupportedIdentifiers()
Set
containing all the function identifiers
supported by this class.Set
of String
sCopyright © 2023 JBoss by Red Hat. All rights reserved.