org.apache.directory.shared.ldap.codec.search.controls
Class ChangeType

java.lang.Object
  extended byorg.apache.directory.shared.ldap.codec.search.controls.ChangeType

public class ChangeType
extends java.lang.Object

Enumeration type for entry changes associates with the persistent search control and the entry change control. Used for the following ASN1 enumeration:

   changeType ENUMERATED 
   {
       add             (1),
       delete          (2),
       modify          (4),
       modDN           (8)
   }
 

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Field Summary
static ChangeType ADD
           
static int ADD_VALUE
           
static ChangeType DELETE
           
static int DELETE_VALUE
           
static ChangeType MODDN
           
static int MODDN_VALUE
           
static ChangeType MODIFY
           
static int MODIFY_VALUE
           
 
Method Summary
static ChangeType getChangeType(int value)
          Gets the changeType enumeration type for an integer value.
 int getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD_VALUE

public static final int ADD_VALUE
See Also:
Constant Field Values

DELETE_VALUE

public static final int DELETE_VALUE
See Also:
Constant Field Values

MODIFY_VALUE

public static final int MODIFY_VALUE
See Also:
Constant Field Values

MODDN_VALUE

public static final int MODDN_VALUE
See Also:
Constant Field Values

ADD

public static final ChangeType ADD

DELETE

public static final ChangeType DELETE

MODIFY

public static final ChangeType MODIFY

MODDN

public static final ChangeType MODDN
Method Detail

getValue

public int getValue()

toString

public java.lang.String toString()

getChangeType

public static ChangeType getChangeType(int value)
Gets the changeType enumeration type for an integer value.

Parameters:
value - the value to get the enumeration for
Returns:
the enueration type for the value if the value is valid
Throws:
java.lang.IllegalArgumentException - if the value is undefined


Copyright © 2003-2006 . All Rights Reserved.