|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EnumEvalResult>
org.opends.server.authorization.dseecompat.EnumEvalResult
public enum EnumEvalResult
This class provides an enumeration of evaluation results returned by the bind rule evaluation methods.
Enum Constant Summary | |
---|---|
ERR
This is an internal enumeration used during evaluation of bind rule when internal processing of the evaluation is undefined. |
|
FAIL
This enumeration is returned when the result of the evaluation is FAIL. |
|
FALSE
This enumeration is returned when the result of the evaluation is FALSE. |
|
TRUE
This enumeration is returned when the result of the evaluation is TRUE. |
Method Summary | |
---|---|
boolean |
getBoolVal()
Helper method that converts this enumeration to a boolean. |
EnumEvalResult |
getRet(EnumBindRuleType type,
boolean undefined)
The method tries to determine if the result was undefined, and if so it returns an FAIL enumeration. |
static EnumEvalResult |
negateIfNeeded(EnumEvalResult v,
boolean n)
This method is used to possibly negate the result of a simple bind rule evaluation. |
static EnumEvalResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EnumEvalResult[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnumEvalResult TRUE
public static final EnumEvalResult FALSE
public static final EnumEvalResult FAIL
public static final EnumEvalResult ERR
Method Detail |
---|
public static EnumEvalResult[] values()
for (EnumEvalResult c : EnumEvalResult.values()) System.out.println(c);
public static EnumEvalResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic EnumEvalResult getRet(EnumBindRuleType type, boolean undefined)
type
- The bind rule type enumeration of the bind rule.undefined
- A flag that signals the the result was undefined.
public static EnumEvalResult negateIfNeeded(EnumEvalResult v, boolean n)
v
- The enumeration result of the simple bind rule evaluation.n
- If true the result should be negated (TRUE->FALSE, FALSE->TRUE).
public boolean getBoolVal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |