org.apache.directory.api.ldap.extras.controls
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
MOVE
public static final SyncModifyDnType MOVE
RENAME
public static final SyncModifyDnType RENAME
MOVE_AND_RENAME
public static final SyncModifyDnType MOVE_AND_RENAME
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 name
NullPointerException - 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
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.