org.apache.directory.shared.ldap.trigger
Enum LdapOperation

java.lang.Object
  extended by java.lang.Enum<LdapOperation>
      extended by org.apache.directory.shared.ldap.trigger.LdapOperation
All Implemented Interfaces:
Serializable, Comparable<LdapOperation>

public enum LdapOperation
extends Enum<LdapOperation>

An enumeration that represents change inducing LDAP operations.

Author:
Apache Directory Project

Enum Constant Summary
ADD
           
DELETE
           
MODIFY
           
MODIFYDN
           
MODIFYDN_EXPORT
           
MODIFYDN_IMPORT
           
MODIFYDN_RENAME
           
 
Method Summary
 String getName()
           
 String toString()
           
static LdapOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LdapOperation[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MODIFY

public static final LdapOperation MODIFY

ADD

public static final LdapOperation ADD

DELETE

public static final LdapOperation DELETE

MODIFYDN

public static final LdapOperation MODIFYDN

MODIFYDN_RENAME

public static final LdapOperation MODIFYDN_RENAME

MODIFYDN_EXPORT

public static final LdapOperation MODIFYDN_EXPORT

MODIFYDN_IMPORT

public static final LdapOperation MODIFYDN_IMPORT
Method Detail

values

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

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

valueOf

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

getName

public String getName()
Returns:
the name of this LDAP operation

toString

public String toString()
Overrides:
toString in class Enum<LdapOperation>


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.