org.apache.directory.shared.ldap.entry
Interface Modification

All Superinterfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
All Known Implementing Classes:
ClientModification

public interface Modification
extends java.lang.Cloneable, java.io.Externalizable

An internal interface for a ModificationItem. The name has been chosen so that it does not conflict with @see ModificationItem

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Method Summary
 Modification clone()
          The clone operation
 EntryAttribute getAttribute()
           
 ModificationOperation getOperation()
           
 void setAttribute(EntryAttribute attribute)
          Set the attribute's modification
 void setOperation(int operation)
          Store the modification operation
 void setOperation(ModificationOperation operation)
          Store the modification operation
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

getOperation

ModificationOperation getOperation()
Returns:
the operation

setOperation

void setOperation(int operation)
Store the modification operation

Parameters:
operation - The DirContext value to assign

setOperation

void setOperation(ModificationOperation operation)
Store the modification operation

Parameters:
operation - The ModificationOperation value to assign

getAttribute

EntryAttribute getAttribute()
Returns:
the attribute containing the modifications

setAttribute

void setAttribute(EntryAttribute attribute)
Set the attribute's modification

Parameters:
attribute - The modified attribute

clone

Modification clone()
The clone operation

Returns:
a clone of the current modification


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.