org.opends.server.authorization.dseecompat
Enum EnumTargetOperator

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

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

This class provides an enumeration of the valid ACI target operators.


Enum Constant Summary
EQUALITY
          This enumeration is returned when the target operator is "=".
NOT_EQUALITY
          This enumeration is returned when the target operator is "!=".
 
Method Summary
static EnumTargetOperator createOperator(java.lang.String op)
          Creates an enumeration of the specified operator type name.
 boolean isOperator(java.lang.String op)
          Checks if the provided operator name is equal to the enumeration.
static EnumTargetOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumTargetOperator[] 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

EQUALITY

public static final EnumTargetOperator EQUALITY
This enumeration is returned when the target operator is "=".


NOT_EQUALITY

public static final EnumTargetOperator NOT_EQUALITY
This enumeration is returned when the target operator is "!=".

Method Detail

values

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

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

valueOf

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

isOperator

public boolean isOperator(java.lang.String op)
Checks if the provided operator name is equal to the enumeration.

Parameters:
op - The operator name to check for.
Returns:
True if the operator name is equal to the enumeration.

createOperator

public static EnumTargetOperator createOperator(java.lang.String op)
Creates an enumeration of the specified operator type name.

Parameters:
op - The operator type name to create.
Returns:
Return an enumeration of the operator type name or null if the name is invalid.