|
|||||||||
Home >> All >> com >> sun >> xacml >> [ cond overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
com.sun.xacml.cond
Class EqualFunction

java.lang.Objectcom.sun.xacml.cond.FunctionBase
com.sun.xacml.cond.EqualFunction
- All Implemented Interfaces:
- Function
- public class EqualFunction
- extends FunctionBase
A class that implements all the *-equal functions. It takes two operands
of the appropriate type and returns a BooleanAttribute
indicating whether both of the operands are equal. If either of the
operands is indeterminate, an indeterminate result is returned.
- Since:
- 1.0
Field Summary | |
static java.lang.String |
NAME_ANYURI_EQUAL
Standard identifier for the anyURI-equal function. |
static java.lang.String |
NAME_BASE64BINARY_EQUAL
Standard identifier for the base64Binary-equal function. |
static java.lang.String |
NAME_BOOLEAN_EQUAL
Standard identifier for the boolean-equal function. |
static java.lang.String |
NAME_DATE_EQUAL
Standard identifier for the date-equal function. |
static java.lang.String |
NAME_DATETIME_EQUAL
Standard identifier for the dateTime-equal function. |
static java.lang.String |
NAME_DAYTIME_DURATION_EQUAL
Standard identifier for the dayTimeDuration-equal function. |
static java.lang.String |
NAME_DOUBLE_EQUAL
Standard identifier for the double-equal function. |
static java.lang.String |
NAME_HEXBINARY_EQUAL
Standard identifier for the hexBinary-equal function. |
static java.lang.String |
NAME_INTEGER_EQUAL
Standard identifier for the integer-equal function. |
static java.lang.String |
NAME_RFC822NAME_EQUAL
Standard identifier for the rfc822Name-equal function. |
static java.lang.String |
NAME_STRING_EQUAL
Standard identifier for the string-equal function. |
static java.lang.String |
NAME_TIME_EQUAL
Standard identifier for the time-equal function. |
static java.lang.String |
NAME_X500NAME_EQUAL
Standard identifier for the x500Name-equal function. |
static java.lang.String |
NAME_YEARMONTH_DURATION_EQUAL
Standard identifier for the yearMonthDuration-equal function. |
private static java.util.HashMap |
typeMap
|
Fields inherited from class com.sun.xacml.cond.FunctionBase |
FUNCTION_NS |
Constructor Summary | |
EqualFunction(java.lang.String functionName)
Creates a new EqualFunction object that supports one
of the standard type-equal functions. |
|
EqualFunction(java.lang.String functionName,
java.lang.String argumentType)
Creates a new EqualFunction object. |
Method Summary | |
EvaluationResult |
evaluate(java.util.List inputs,
com.sun.xacml.EvaluationCtx context)
Evaluate the function, using the specified parameters. |
private static java.lang.String |
getArgumentType(java.lang.String functionName)
Private helper that returns the type used for the given standard type-equal function. |
static EqualFunction |
getEqualInstance(java.lang.String functionName,
java.lang.String argumentType)
Returns an EqualFunction that provides the type-equal
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 |
Field Detail |
NAME_STRING_EQUAL
public static final java.lang.String NAME_STRING_EQUAL
- Standard identifier for the string-equal function.
- See Also:
- Constant Field Values
NAME_BOOLEAN_EQUAL
public static final java.lang.String NAME_BOOLEAN_EQUAL
- Standard identifier for the boolean-equal function.
- See Also:
- Constant Field Values
NAME_INTEGER_EQUAL
public static final java.lang.String NAME_INTEGER_EQUAL
- Standard identifier for the integer-equal function.
- See Also:
- Constant Field Values
NAME_DOUBLE_EQUAL
public static final java.lang.String NAME_DOUBLE_EQUAL
- Standard identifier for the double-equal function.
- See Also:
- Constant Field Values
NAME_DATE_EQUAL
public static final java.lang.String NAME_DATE_EQUAL
- Standard identifier for the date-equal function.
- See Also:
- Constant Field Values
NAME_TIME_EQUAL
public static final java.lang.String NAME_TIME_EQUAL
- Standard identifier for the time-equal function.
- See Also:
- Constant Field Values
NAME_DATETIME_EQUAL
public static final java.lang.String NAME_DATETIME_EQUAL
- Standard identifier for the dateTime-equal function.
- See Also:
- Constant Field Values
NAME_DAYTIME_DURATION_EQUAL
public static final java.lang.String NAME_DAYTIME_DURATION_EQUAL
- Standard identifier for the dayTimeDuration-equal function.
- See Also:
- Constant Field Values
NAME_YEARMONTH_DURATION_EQUAL
public static final java.lang.String NAME_YEARMONTH_DURATION_EQUAL
- Standard identifier for the yearMonthDuration-equal function.
- See Also:
- Constant Field Values
NAME_ANYURI_EQUAL
public static final java.lang.String NAME_ANYURI_EQUAL
- Standard identifier for the anyURI-equal function.
- See Also:
- Constant Field Values
NAME_X500NAME_EQUAL
public static final java.lang.String NAME_X500NAME_EQUAL
- Standard identifier for the x500Name-equal function.
- See Also:
- Constant Field Values
NAME_RFC822NAME_EQUAL
public static final java.lang.String NAME_RFC822NAME_EQUAL
- Standard identifier for the rfc822Name-equal function.
- See Also:
- Constant Field Values
NAME_HEXBINARY_EQUAL
public static final java.lang.String NAME_HEXBINARY_EQUAL
- Standard identifier for the hexBinary-equal function.
- See Also:
- Constant Field Values
NAME_BASE64BINARY_EQUAL
public static final java.lang.String NAME_BASE64BINARY_EQUAL
- Standard identifier for the base64Binary-equal function.
- See Also:
- Constant Field Values
typeMap
private static java.util.HashMap typeMap
Constructor Detail |
EqualFunction
public EqualFunction(java.lang.String functionName)
- Creates a new
EqualFunction
object that supports one of the standard type-equal functions. If you need to create an instance for a custom type, use thegetEqualInstance
method or the alternate constructor.
EqualFunction
public EqualFunction(java.lang.String functionName, java.lang.String argumentType)
- Creates a new
EqualFunction
object.
Method Detail |
getEqualInstance
public static EqualFunction getEqualInstance(java.lang.String functionName, java.lang.String argumentType)
- Returns an
EqualFunction
that provides the type-equal 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 theFunctionFactory
(instances for the standard types are pre-installed in the standard factory).Note that this method has the same affect as invoking the constructor with the same parameters. This method is provided as a convenience, and for symmetry with the bag and set functions.
getArgumentType
private static java.lang.String getArgumentType(java.lang.String functionName)
- Private helper that returns the type used for the given standard
type-equal function.
getSupportedIdentifiers
public static java.util.Set getSupportedIdentifiers()
- Returns a
Set
containing all the function identifiers supported by this class.
evaluate
public EvaluationResult evaluate(java.util.List inputs, com.sun.xacml.EvaluationCtx context)
- Evaluate the function, using the specified parameters.
|
|||||||||
Home >> All >> com >> sun >> xacml >> [ cond overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |