Enum Ldap.AttributeModification

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Ldap.AttributeModification>
    Enclosing class:
    Ldap

    public static enum Ldap.AttributeModification
    extends java.lang.Enum<Ldap.AttributeModification>
    Enum to define the type of attribute modification. See DirContext.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADD
      add an attribute.
      REMOVE
      remove an attribute.
      REPLACE
      replace an attribute.
    • Method Detail

      • values

        public static Ldap.AttributeModification[] 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 (Ldap.AttributeModification c : Ldap.AttributeModification.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Ldap.AttributeModification 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
      • modOp

        public int modOp()
        Returns the modification operation integer.
        Returns:
        int
      • parseModificationOperation

        public static Ldap.AttributeModification parseModificationOperation​(int i)
        Method to convert a JNDI constant value to an enum. Returns null if the supplied constant does not match a valid value.
        Parameters:
        i - modification operation
        Returns:
        attribute modification