Package org.forgerock.opendj.ldap
Class Modification
- java.lang.Object
-
- org.forgerock.opendj.ldap.Modification
-
public final class Modification extends Object
A modification to be performed on an entry during a Modify operation.
-
-
Constructor Summary
Constructors Constructor Description Modification(ModificationType modificationType, Attribute attribute)Creates a new modification having the provided modification type and attribute values to be updated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributegetAttribute()Returns the attribute containing the values to be modified.ModificationTypegetModificationType()Returns the type of modification to be performed.StringtoString()
-
-
-
Constructor Detail
-
Modification
public Modification(ModificationType modificationType, Attribute attribute)
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 Detail
-
getAttribute
public Attribute getAttribute()
Returns the attribute containing the values to be modified.- Returns:
- The the attribute containing the values to be modified.
-
getModificationType
public ModificationType getModificationType()
Returns the type of modification to be performed.- Returns:
- The type of modification to be performed.
-
-