org.opends.server.authorization.dseecompat
Enum EnumBooleanTypes

java.lang.Object
  extended by java.lang.Enum<EnumBooleanTypes>
      extended by org.opends.server.authorization.dseecompat.EnumBooleanTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumBooleanTypes>

public enum EnumBooleanTypes
extends java.lang.Enum<EnumBooleanTypes>

This class provides an enumeration of the allowed bind rule booelan types.


Enum Constant Summary
AND_BOOLEAN_TYPE
          The enumeration type when the bind rule has specified boolean type of "AND".
NOT_BOOLEAN_TYPE
          The enumeration type when the bind rule has specified boolean type of "NOT".
OR_BOOLEAN_TYPE
          The enumeration type when the bind rule has specified boolean type of "OR".
 
Method Summary
static EnumBooleanTypes createBindruleOperand(java.lang.String booleanType)
          Create a new enumeration type for the specified boolean type name.
 boolean isBindRuleBooleanOperand(java.lang.String booleanType)
          Checks to see if the boolean type string is equal to the enumeration type name.
static EnumBooleanTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumBooleanTypes[] 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

AND_BOOLEAN_TYPE

public static final EnumBooleanTypes AND_BOOLEAN_TYPE
The enumeration type when the bind rule has specified boolean type of "AND".


OR_BOOLEAN_TYPE

public static final EnumBooleanTypes OR_BOOLEAN_TYPE
The enumeration type when the bind rule has specified boolean type of "OR".


NOT_BOOLEAN_TYPE

public static final EnumBooleanTypes NOT_BOOLEAN_TYPE
The enumeration type when the bind rule has specified boolean type of "NOT".

Method Detail

values

public static EnumBooleanTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EnumBooleanTypes c : EnumBooleanTypes.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EnumBooleanTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isBindRuleBooleanOperand

public boolean isBindRuleBooleanOperand(java.lang.String booleanType)
Checks to see if the boolean type string is equal to the enumeration type name.

Parameters:
booleanType - The type name to check equality for.
Returns:
True if the keyword is equal to the specified name.

createBindruleOperand

public static EnumBooleanTypes createBindruleOperand(java.lang.String booleanType)
Create a new enumeration type for the specified boolean type name.

Parameters:
booleanType - The name of the enumeration to create.
Returns:
A new enumeration type for the name or null if the name is not valid.