Enum ModificationOperation

java.lang.Object
java.lang.Enum<ModificationOperation>
org.apache.directory.api.ldap.model.entry.ModificationOperation
All Implemented Interfaces:
Serializable, Comparable<ModificationOperation>

public enum ModificationOperation extends Enum<ModificationOperation>
An enum storing the different modification operation which can be used in a Modification. There is a one to one mapping with the DirContext.ADD_ATTRIBUTE, DirContext.REMOVE_ATTRIBUTE, DirContext.REPLACE_ATTRIBUTE. We have added the INCREMENT operation (RFC 4525)
Author:
Apache Directory Project
  • Enum Constant Details

  • Method Details

    • values

      public static ModificationOperation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ModificationOperation 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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns:
      The integer value associated with the element. This value is equivalent to the one found in DirContext.
    • getOperation

      public static ModificationOperation getOperation(int value)
      Get the ModificationOperation from an int value
      Parameters:
      value - the ModificationOperation int value
      Returns:
      the associated ModifciationOperation instance
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ModificationOperation>
      See Also: