Interface Modification
- All Superinterfaces:
Cloneable, Externalizable, Serializable
- All Known Implementing Classes:
DefaultModification
An internal interface for a ModificationItem. The name has been
chosen so that it does not conflict with @see ModificationItem
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(AttributeType attributeType) Apply the AttributeType to the Modificationclone()The clone operationvoidsetAttribute(Attribute attribute) Set the attribute's modificationvoidsetOperation(int operation) Store the modification operationvoidsetOperation(ModificationOperation operation) Store the modification operationMethods inherited from interface Externalizable
readExternal, writeExternal
-
Method Details
-
getOperation
ModificationOperation getOperation()- Returns:
- the operation
-
setOperation
void setOperation(int operation) Store the modification operation- Parameters:
operation- The DirContext value to assign
-
setOperation
Store the modification operation- Parameters:
operation- The ModificationOperation value to assign
-
getAttribute
Attribute getAttribute()- Returns:
- the attribute containing the modifications
-
setAttribute
Set the attribute's modification- Parameters:
attribute- The modified attribute
-
clone
-
apply
Apply the AttributeType to the Modification- Parameters:
attributeType- the injected AttributeType- Throws:
LdapInvalidAttributeValueException- If the Modification is invalid
-