edu.vt.middleware.ldap
Enum Ldap.AttributeModification

java.lang.Object
  extended by java.lang.Enum<Ldap.AttributeModification>
      extended by edu.vt.middleware.ldap.Ldap.AttributeModification
All Implemented Interfaces:
Serializable, Comparable<Ldap.AttributeModification>
Enclosing class:
Ldap

public static enum Ldap.AttributeModification
extends Enum<Ldap.AttributeModification>

Enum to define the type of attribute modification. See DirContext.


Enum Constant Summary
ADD
          add an attribute.
REMOVE
          remove an attribute.
REPLACE
          replace an attribute.
 
Method Summary
 int modOp()
          Returns the modification operation integer.
static Ldap.AttributeModification parseModificationOperation(int i)
          Method to convert a JNDI constant value to an enum.
static Ldap.AttributeModification valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Ldap.AttributeModification[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADD

public static final Ldap.AttributeModification ADD
add an attribute.


REPLACE

public static final Ldap.AttributeModification REPLACE
replace an attribute.


REMOVE

public static final Ldap.AttributeModification REMOVE
remove an attribute.

Method Detail

values

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

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

valueOf

public static Ldap.AttributeModification 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

modOp

public int modOp()
Returns the modification operation integer.

Returns:
int

parseModificationOperation

public static Ldap.AttributeModification parseModificationOperation(int i)
Method to convert a JNDI constant value to an enum. Returns null if the supplied constant does not match a valid value.

Parameters:
i - modification operation
Returns:
attribute modification


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.