Package com.unboundid.ldif
Enum DuplicateValueBehavior
- All Implemented Interfaces:
Serializable,Comparable<DuplicateValueBehavior>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum DuplicateValueBehavior
extends Enum<DuplicateValueBehavior>
This enum defines a set of possible behaviors that may be exhibited by the
LDIF reader when encountering entries with duplicate attribute values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that any entry containing duplicate attribute values should be rejected.Indicates that duplicate values should be retained, so that the resulting entry may have multiple copies of the value.Indicates that duplicate values should be stripped, so that the resulting entry will have only one copy of the value. -
Method Summary
Modifier and TypeMethodDescriptionstatic DuplicateValueBehaviorRetrieves the duplicate value behavior with the specified name.static DuplicateValueBehaviorReturns the enum constant of this type with the specified name.static DuplicateValueBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STRIP
Indicates that duplicate values should be stripped, so that the resulting entry will have only one copy of the value. -
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
Indicates that any entry containing duplicate attribute values should be rejected.
-
-
Method Details
-
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
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
-
forName
Retrieves the duplicate value behavior with the specified name.- Parameters:
name- The name of the duplicate value behavior to retrieve. It must not benull.- Returns:
- The requested duplicate value behavior, or
nullif no such behavior is defined.
-