org.apache.directory.api.ldap.model.entry
Enum ModificationOperation
java.lang.Object
java.lang.Enum<ModificationOperation>
org.apache.directory.api.ldap.model.entry.ModificationOperation
- All Implemented Interfaces:
- Serializable, Comparable<ModificationOperation>
public enum ModificationOperation
- extends Enum<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
- Author:
- Apache Directory Project
ADD_ATTRIBUTE
public static final ModificationOperation ADD_ATTRIBUTE
REMOVE_ATTRIBUTE
public static final ModificationOperation REMOVE_ATTRIBUTE
REPLACE_ATTRIBUTE
public static final ModificationOperation REPLACE_ATTRIBUTE
values
public static ModificationOperation[] 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 (ModificationOperation c : ModificationOperation.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ModificationOperation 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
getValue
public int getValue()
- Returns:
- The integer value associated with the element. This value
is equivalent to the one found in DirContext.
getOperation
public static ModificationOperation getOperation(int value)
- Get the ModificationOperation from an int value
- Parameters:
value - the ModificationOperation int value
- Returns:
- the associated ModifciationOperation instance
toString
public String toString()
- Overrides:
toString in class Enum<ModificationOperation>
- See Also:
Object.toString()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.