org.apache.directory.shared.ldap.entry
Enum ModificationOperation
java.lang.Object
java.lang.Enum<ModificationOperation>
org.apache.directory.shared.ldap.entry.ModificationOperation
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ModificationOperation>
public enum ModificationOperation
- extends java.lang.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
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 final ModificationOperation[] values()
- Returns an array containing the constants of this enum type, in
the order they're 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're declared
valueOf
public static ModificationOperation valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<ModificationOperation>
- See Also:
Object.toString()
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.