Package org.forgerock.opendj.ldap
Class Modification
java.lang.Object
org.forgerock.opendj.ldap.Modification
A modification to be performed on an entry during a Modify operation.
-
Constructor Summary
ConstructorsConstructorDescriptionModification(ModificationType modificationType, Attribute attribute) Creates a new modification having the provided modification type and attribute values to be updated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute containing the values to be modified.Returns the type of modification to be performed.toString()
-
Constructor Details
-
Modification
Creates a new modification having the provided modification type and attribute values to be updated. Note that while the returnedModificationis immutable, the underlying attribute may not be. The following code ensures that the returnedModificationis fully immutable:Modification change = new Modification(modificationType, Attributes .unmodifiableAttribute(attribute));- Parameters:
modificationType- The type of modification to be performed.attribute- The the attribute containing the values to be modified.
-
-
Method Details
-
getAttribute
Returns the attribute containing the values to be modified.- Returns:
- The the attribute containing the values to be modified.
-
getModificationType
Returns the type of modification to be performed.- Returns:
- The type of modification to be performed.
-
toString
-