org.opends.server.authorization.dseecompat
Enum EnumBindRuleType

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

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

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


Enum Constant Summary
EQUAL_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of "=".
GREATER_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of >".
GREATER_OR_EQUAL_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of ">=".
LESS_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of "<".
LESS_OR_EQUAL_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of "<=".
NOT_EQUAL_BINDRULE_TYPE
          The enumeration type when the bind rule has specified type of "!=".
 
Method Summary
static EnumBindRuleType createBindruleOperand(java.lang.String type)
          Create a new enumeration type for the specified type name.
 boolean isBindRuleType(java.lang.String type)
          Checks to see if the type string is equal to the enumeration type name.
static EnumBindRuleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumBindRuleType[] 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

EQUAL_BINDRULE_TYPE

public static final EnumBindRuleType EQUAL_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of "=".


NOT_EQUAL_BINDRULE_TYPE

public static final EnumBindRuleType NOT_EQUAL_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of "!=".


LESS_BINDRULE_TYPE

public static final EnumBindRuleType LESS_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of "<".


LESS_OR_EQUAL_BINDRULE_TYPE

public static final EnumBindRuleType LESS_OR_EQUAL_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of "<=".


GREATER_BINDRULE_TYPE

public static final EnumBindRuleType GREATER_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of >".


GREATER_OR_EQUAL_BINDRULE_TYPE

public static final EnumBindRuleType GREATER_OR_EQUAL_BINDRULE_TYPE
The enumeration type when the bind rule has specified type of ">=".

Method Detail

values

public static EnumBindRuleType[] 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 (EnumBindRuleType c : EnumBindRuleType.values())
    System.out.println(c);

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

valueOf

public static EnumBindRuleType 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

isBindRuleType

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

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

createBindruleOperand

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

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