Enum EnumTargetOperator
- java.lang.Object
-
- java.lang.Enum<EnumTargetOperator>
-
- org.opends.server.authorization.dseecompat.EnumTargetOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<EnumTargetOperator>
public enum EnumTargetOperator extends Enum<EnumTargetOperator>
This class provides an enumeration of the valid ACI target operators.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALITY
This enumeration is returned when the target operator is "=".NOT_EQUALITY
This enumeration is returned when the target operator is "!=".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumTargetOperator
createOperator(String op)
Creates an enumeration of the specified operator type name.boolean
isOperator(String op)
Checks if the provided operator name is equal to the enumeration.static EnumTargetOperator
valueOf(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.
-
-
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isOperator
public boolean isOperator(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(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.
-
-