Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.cond
Class BagFunction  view BagFunction download BagFunction.java

java.lang.Object
  extended bycom.sun.xacml.cond.FunctionBase
      extended bycom.sun.xacml.cond.BagFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
ConditionBagFunction, GeneralBagFunction

public abstract class BagFunction
extends FunctionBase

Represents all of the Bag functions, though the actual implementations are in two sub-classes specific to the condition and general bag functions.

Since:
1.0

Field Summary
private static boolean[] bagParams
           
protected static java.lang.String[] baseTypes
          A complete list of all the XACML datatypes supported by the Bag functions
static java.lang.String NAME_BASE_BAG
          Base name for the type-bag funtions.
static java.lang.String NAME_BASE_BAG_SIZE
          Base name for the type-bag-size funtions.
static java.lang.String NAME_BASE_IS_IN
          Base name for the type-is-in.
static java.lang.String NAME_BASE_ONE_AND_ONLY
          Base name for the type-one-and-only funtions.
protected static java.lang.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(java.lang.String functionName, int functionId, java.lang.String[] paramTypes)
          Protected constuctor used by the general and condition subclasses to create a boolean function with parameters of different datatypes.
protected BagFunction(java.lang.String functionName, int functionId, java.lang.String paramType, boolean paramIsBag, int numParams, java.lang.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(java.lang.String functionName, java.lang.String argumentType)
          Returns a new BagFunction that provides the type-bag functionality over the given attribute type.
static BagFunction getBagSizeInstance(java.lang.String functionName, java.lang.String argumentType)
          Returns a new BagFunction that provides the type-bag-size functionality over the given attribute type.
static BagFunction getIsInInstance(java.lang.String functionName, java.lang.String argumentType)
          Returns a new BagFunction that provides the type-is-in functionality over the given attribute type.
static BagFunction getOneAndOnlyInstance(java.lang.String functionName, java.lang.String argumentType)
          Returns a new BagFunction that provides the type-one-and-only functionality over the given attribute type.
static java.util.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

NAME_BASE_ONE_AND_ONLY

public static final java.lang.String NAME_BASE_ONE_AND_ONLY
Base name for the type-one-and-only funtions. To get the standard identifier for a given type, use FunctionBase.FUNCTION_NS + the datatype's base name (e.g., string) + NAME_BASE_ONE_AND_ONLY.

See Also:
Constant Field Values

NAME_BASE_BAG_SIZE

public static final java.lang.String NAME_BASE_BAG_SIZE
Base name for the type-bag-size funtions. To get the standard identifier for a given type, use FunctionBase.FUNCTION_NS + the datatype's base name (e.g., string) + NAME_BASE_BAG_SIZE.

See Also:
Constant Field Values

NAME_BASE_IS_IN

public static final java.lang.String NAME_BASE_IS_IN
Base name for the type-is-in. To get the standard identifier for a given type, use FunctionBase.FUNCTION_NS + the datatype's base name (e.g., string) + NAME_BASE_IS_IN.

See Also:
Constant Field Values

NAME_BASE_BAG

public static final java.lang.String NAME_BASE_BAG
Base name for the type-bag funtions. To get the standard identifier for a given type, use FunctionBase.FUNCTION_NS + the datatype's base name (e.g., string) + NAME_BASE_BAG.

See Also:
Constant Field Values

bagParams

private static final boolean[] bagParams

baseTypes

protected static java.lang.String[] baseTypes
A complete list of all the XACML datatypes supported by the Bag functions


simpleTypes

protected static java.lang.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)

Constructor Detail

BagFunction

protected BagFunction(java.lang.String functionName,
                      int functionId,
                      java.lang.String paramType,
                      boolean paramIsBag,
                      int numParams,
                      java.lang.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. If you need to create a new BagFunction instance you should either use one of the getInstance methods or construct one of the sub-classes directly.


BagFunction

protected BagFunction(java.lang.String functionName,
                      int functionId,
                      java.lang.String[] paramTypes)
Protected constuctor used by the general and condition subclasses to create a boolean function with parameters of different datatypes. If you need to create a new BagFunction instance you should either use one of the getInstance methods or construct one of the sub-classes directly.

Method Detail

getOneAndOnlyInstance

public static BagFunction getOneAndOnlyInstance(java.lang.String functionName,
                                                java.lang.String argumentType)
Returns a new 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).


getBagSizeInstance

public static BagFunction getBagSizeInstance(java.lang.String functionName,
                                             java.lang.String argumentType)
Returns a new 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).


getIsInInstance

public static BagFunction getIsInInstance(java.lang.String functionName,
                                          java.lang.String argumentType)
Returns a new 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).


getBagInstance

public static BagFunction getBagInstance(java.lang.String functionName,
                                         java.lang.String argumentType)
Returns a new 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).


getSupportedIdentifiers

public static java.util.Set getSupportedIdentifiers()
Returns a Set containing all the function identifiers supported by this class.