Package edu.vt.middleware.ldap
Enum Ldap.AttributeModification
- java.lang.Object
-
- java.lang.Enum<Ldap.AttributeModification>
-
- edu.vt.middleware.ldap.Ldap.AttributeModification
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Ldap.AttributeModification>
- Enclosing class:
- Ldap
public static enum Ldap.AttributeModification extends java.lang.Enum<Ldap.AttributeModification>
Enum to define the type of attribute modification. SeeDirContext
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(java.lang.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 are declared.
-
-
-
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 Ldap.AttributeModification[] 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 (Ldap.AttributeModification c : Ldap.AttributeModification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Ldap.AttributeModification valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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
-
-