|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.cond.FunctionBase
com.sun.xacml.cond.BagFunction
Represents all of the Bag functions, though the actual implementations are in two sub-classes specific to the condition and general bag functions.
Field Summary | |
protected static String[] |
baseTypes
A complete list of all the XACML datatypes 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 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) |
Fields inherited from class com.sun.xacml.cond.FunctionBase |
FUNCTION_NS |
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class com.sun.xacml.cond.FunctionBase |
checkInputs, checkInputsNoBag, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, makeProcessingError, returnsBag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.xacml.cond.Function |
evaluate |
Field Detail |
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[] simpleTypes
Constructor Detail |
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 parameterMethod Detail |
public 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 on
BagFunction
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 on
BagFunction
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 on
BagFunction
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 on
BagFunction
public static Set getSupportedIdentifiers()
Set
containing all the function identifiers
supported by this class.
Set
of String
s
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.