Enum SyncModifyDnType
- java.lang.Object
-
- java.lang.Enum<SyncModifyDnType>
-
- org.apache.directory.api.ldap.extras.controls.SyncModifyDnType
-
- All Implemented Interfaces:
Serializable
,Comparable<SyncModifyDnType>
public enum SyncModifyDnType extends Enum<SyncModifyDnType>
The type of MODDN modification. One of MOVE, RENAME or MOVE_AND_RENAME- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOVE
A Move operationMOVE_AND_RENAME
A Move and Rename operationRENAME
A Rename operation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncModifyDnType
getModifyDnType(int value)
Get the instance from it's interger valueint
getValue()
static SyncModifyDnType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SyncModifyDnType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVE
public static final SyncModifyDnType MOVE
A Move operation
-
RENAME
public static final SyncModifyDnType RENAME
A Rename operation
-
MOVE_AND_RENAME
public static final SyncModifyDnType MOVE_AND_RENAME
A Move and Rename operation
-
-
Method Detail
-
values
public static SyncModifyDnType[] 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 (SyncModifyDnType c : SyncModifyDnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyncModifyDnType 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 nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
- Returns:
- The value associated with the current element.
-
getModifyDnType
public static SyncModifyDnType getModifyDnType(int value)
Get the instance from it's interger value- Parameters:
value
- The value we are looking for- Returns:
- The associated value
-
-