Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


oracle.oud.types
Enum ModificationType

java.lang.Object
  extended by java.lang.Enum<ModificationType>
      extended by oracle.oud.types.ModificationType

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ModificationType>

public enum ModificationType
extends java.lang.Enum<ModificationType>

A Modify operation change type as defined in RFC 4511 section 4.6 is used to specify the type of modification being performed on an attribute.

See Also:
RFC 4511 - Lightweight Directory Access Protocol (LDAP): The Protocol , RFC 4525 - Lightweight Directory Access Protocol (LDAP) Modify-Increment Extension

Enum Constant Summary
ADD
          Add the values listed in the modification to the attribute, creating the attribute if necessary.
DELETE
          Delete the values listed in the modification from the attribute.
INCREMENT
          Increment all existing values of the attribute by the amount specified in the modification value.
REPLACE
          Replace all existing values of the attribute with the new values listed in the modification, creating the attribute if it did not already exist.

 

Method Summary
 java.lang.String getLDIFName()
          Retrieves the name of this modification type as it should appear in LDIF records.
 int intValue()
          Returns the integer value of this modification change type as defined in RFC 4511 section 4.6.
 java.lang.String toString()
          Returns the string representation of this modification change type.
static ModificationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ModificationType[] 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

ADD

public static final ModificationType ADD
Add the values listed in the modification to the attribute, creating the attribute if necessary.

DELETE

public static final ModificationType DELETE
Delete the values listed in the modification from the attribute. If no values are listed, or if all current values of the attribute are listed, the entire attribute is removed.

REPLACE

public static final ModificationType REPLACE
Replace all existing values of the attribute with the new values listed in the modification, creating the attribute if it did not already exist. A replace with no listed values will delete the entire attribute if it exists, and it is ignored if the attribute does not exist.

INCREMENT

public static final ModificationType INCREMENT
Increment all existing values of the attribute by the amount specified in the modification value.

Method Detail

values

public static ModificationType[] 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 (ModificationType c : ModificationType.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ModificationType 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 name
java.lang.NullPointerException - if the argument is null

intValue

public int intValue()
Returns the integer value of this modification change type as defined in RFC 4511 section 4.6.
Returns:
The integer value of this modification change type.

getLDIFName

public java.lang.String getLDIFName()
Retrieves the name of this modification type as it should appear in LDIF records.
Returns:
The name of this modification type as it should appear in LDIF records.

toString

public java.lang.String toString()
Returns the string representation of this modification change type.
Overrides:
toString in class java.lang.Enum<ModificationType>
Returns:
The string representation of this modification change type.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.