Package org.opends.server.util
Enum ChangeOperationType
- java.lang.Object
-
- java.lang.Enum<ChangeOperationType>
-
- org.opends.server.util.ChangeOperationType
-
- All Implemented Interfaces:
Serializable,Comparable<ChangeOperationType>
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum ChangeOperationType extends Enum<ChangeOperationType>
This enumeration defines the set of possible change types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLDIFChangeType()Retrieves the name of the change type as it should appear in LDIF "changetype" records.StringgetType()Retrieves the human-readable name this change type.StringtoString()Retrieves a string representation of this type.static ChangeOperationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChangeOperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final ChangeOperationType ADD
The change type for add operations.
-
DELETE
public static final ChangeOperationType DELETE
The change type for delete operations.
-
MODIFY
public static final ChangeOperationType MODIFY
The change type for modify operations.
-
MODIFY_DN
public static final ChangeOperationType MODIFY_DN
The change type for modify DN operations.
-
-
Method Detail
-
values
public static ChangeOperationType[] 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 (ChangeOperationType c : ChangeOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChangeOperationType 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
-
getType
public String getType()
Retrieves the human-readable name this change type.- Returns:
- The human-readable name for this change type.
-
getLDIFChangeType
public String getLDIFChangeType()
Retrieves the name of the change type as it should appear in LDIF "changetype" records.- Returns:
- The name of the change type as it should appear in LDIF "changetype" records.
-
toString
public String toString()
Retrieves a string representation of this type.- Overrides:
toStringin classEnum<ChangeOperationType>- Returns:
- A string representation of this type.
-
-