public enum LDAPModificationType extends Enum<LDAPModificationType>
The following modification type values are defined:
ADD
-- add values listed to the modification attribute, creating the attribute
if necessary.DELETE
-- delete values listed from the modification attribute. If no values
are listed, or if all current values of the attribute are listed, the entire attribute
will be removed.REPLACE
-- replace all existing values of the modification attribute with the
new values listed, creating the attribute if it did not already exist. A replace with
no value will delete the entire attribute if it exists, and will be ignored if the
attribute does not exist.INCREMENT
-- increment the value of the specified attribute. The target entry
must have exactly one value for the specified attribute and it must be an integer. The
modification must include exactly one value, and it must be an integer which specifies
the amount by which the existing value is to be incremented (or decremented, if the
provided value is negative).Enum Constant and Description |
---|
ADD
Add values listed to the modification attribute, creating the attribute if necessary.
|
DELETE
Delete values listed from the modification attribute.
|
INCREMENT
Increment the value of the specified attribute.
|
REPLACE
Replace all existing values of the modification attribute with the new values listed,
creating the attribute if it did not already exist.
|
Modifier and Type | Method and Description |
---|---|
int |
intValue()
Returns the integer value for this modification type.
|
static LDAPModificationType |
valueOf(int intValue)
Returns the modification type with the specified integer value.
|
static LDAPModificationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LDAPModificationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LDAPModificationType ADD
public static final LDAPModificationType DELETE
public static final LDAPModificationType REPLACE
public static final LDAPModificationType INCREMENT
public static LDAPModificationType[] values()
for (LDAPModificationType c : LDAPModificationType.values()) System.out.println(c);
public static LDAPModificationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LDAPModificationType valueOf(int intValue)
intValue
- the integer value for which to get the matching modification type.IllegalArgumentException
- if the specified value does not match any of the
predefined modification types.public int intValue()