Enum DuplicateValueBehavior

java.lang.Object
java.lang.Enum<DuplicateValueBehavior>
com.unboundid.ldif.DuplicateValueBehavior
All Implemented Interfaces:
Serializable, Comparable<DuplicateValueBehavior>, java.lang.constant.Constable

This enum defines a set of possible behaviors that may be exhibited by the LDIF reader when encountering entries with duplicate attribute values.
  • Enum Constant Details

    • STRIP

      public static final DuplicateValueBehavior STRIP
      Indicates that duplicate values should be stripped, so that the resulting entry will have only one copy of the value.
    • RETAIN

      public static final DuplicateValueBehavior RETAIN
      Indicates that duplicate values should be retained, so that the resulting entry may have multiple copies of the value. This is illegal and may cause significant problems with attempts to use the resulting entry.
    • REJECT

      public static final DuplicateValueBehavior REJECT
      Indicates that any entry containing duplicate attribute values should be rejected.
  • Method Details

    • values

      public static DuplicateValueBehavior[] 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 DuplicateValueBehavior 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
    • forName

      Retrieves the duplicate value behavior with the specified name.
      Parameters:
      name - The name of the duplicate value behavior to retrieve. It must not be null.
      Returns:
      The requested duplicate value behavior, or null if no such behavior is defined.