org.opends.server.util
Enum ChangeOperationType

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

@PublicAPI(stability=UNCOMMITTED,
           mayInstantiate=false,
           mayExtend=false,
           mayInvoke=true)
public enum ChangeOperationType
extends java.lang.Enum<ChangeOperationType>

This enumeration defines the days of the week.


Enum Constant Summary
ADD
          The change type for add operations.
DELETE
          The change type for delete operations.
MODIFY
          The change type for modify operations.
MODIFY_DN
          The change type for modify DN operations.
 
Method Summary
 java.lang.String getLDIFChangeType()
          Retrieves the name of the change type as it should appear in LDIF "changetype" records.
 java.lang.String getType()
          Retrieves the human-readable name this change type.
 java.lang.String toString()
          Retrieves a string representation of this type.
static ChangeOperationType valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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

getType

public java.lang.String getType()
Retrieves the human-readable name this change type.

Returns:
The human-readable name for this change type.

getLDIFChangeType

public java.lang.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 java.lang.String toString()
Retrieves a string representation of this type.

Overrides:
toString in class java.lang.Enum<ChangeOperationType>
Returns:
A string representation of this type.