org.apache.directory.api.ldap.extras.controls
Enum SyncModifyDnType

java.lang.Object
  extended by java.lang.Enum<SyncModifyDnType>
      extended by 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
MOVE
           
MOVE_AND_RENAME
           
RENAME
           
 
Method Summary
static SyncModifyDnType getModifyDnType(int value)
          Get the instance from it's interger value
 int 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MOVE

public static final SyncModifyDnType MOVE

RENAME

public static final SyncModifyDnType RENAME

MOVE_AND_RENAME

public static final SyncModifyDnType MOVE_AND_RENAME
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 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.