Enum ModificationOperation
java.lang.Object
java.lang.Enum<ModificationOperation>
org.apache.directory.api.ldap.model.entry.ModificationOperation
- All Implemented Interfaces:
Serializable, Comparable<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 Summary
Enum ConstantsEnum ConstantDescriptionAdded attribute valueIncrement operation, RFC 4525Removed attribute valueReplaced attribute value -
Method Summary
Modifier and TypeMethodDescriptionstatic ModificationOperationgetOperation(int value) Get the ModificationOperation from an int valueintgetValue()toString()static ModificationOperationReturns the enum constant of this type with the specified name.static ModificationOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADD_ATTRIBUTE
Added attribute value -
REMOVE_ATTRIBUTE
Removed attribute value -
REPLACE_ATTRIBUTE
Replaced attribute value -
INCREMENT_ATTRIBUTE
Increment operation, RFC 4525
-
-
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
-
getValue
public int getValue()- Returns:
- The integer value associated with the element. This value is equivalent to the one found in DirContext.
-
getOperation
Get the ModificationOperation from an int value- Parameters:
value- the ModificationOperation int value- Returns:
- the associated ModifciationOperation instance
-
toString
- Overrides:
toStringin classEnum<ModificationOperation>- See Also:
-