org.lsc.jndi
Enum JndiModificationType

java.lang.Object
  extended by java.lang.Enum<JndiModificationType>
      extended by org.lsc.jndi.JndiModificationType
All Implemented Interfaces:
Serializable, Comparable<JndiModificationType>

public enum JndiModificationType
extends Enum<JndiModificationType>

Enumeration for the modifications type of an directory

Author:
Rémy-Christophe Schermesser

Enum Constant Summary
ADD_ENTRY
          Operation identifier to add entry.
DELETE_ENTRY
          Operation identifier to remove entry.
MODIFY_ENTRY
          Operation identifier to modify entry.
MODRDN_ENTRY
          Operation identifier to modify the dn.
 
Method Summary
 String getDescription()
           
static JndiModificationType getFromDescription(String desc)
          Returns the JndiModificationType from a String
static JndiModificationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JndiModificationType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADD_ENTRY

public static final JndiModificationType ADD_ENTRY
Operation identifier to add entry.


DELETE_ENTRY

public static final JndiModificationType DELETE_ENTRY
Operation identifier to remove entry.


MODIFY_ENTRY

public static final JndiModificationType MODIFY_ENTRY
Operation identifier to modify entry.


MODRDN_ENTRY

public static final JndiModificationType MODRDN_ENTRY
Operation identifier to modify the dn.

Method Detail

values

public static final JndiModificationType[] 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(JndiModificationType c : JndiModificationType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JndiModificationType 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

getDescription

public String getDescription()

getFromDescription

public static JndiModificationType getFromDescription(String desc)
Returns the JndiModificationType from a String

Parameters:
desc - the string
Returns:
The JndiModificationType


Copyright © 2005-2010 LSC project. All Rights Reserved.