org.apache.directory.shared.ldap.entry.client
Class ClientModification

java.lang.Object
  extended by org.apache.directory.shared.ldap.entry.client.ClientModification
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Modification

public class ClientModification
extends java.lang.Object
implements Modification

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

Version:
$Rev$, $Date$
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
ClientModification()
          Creates a new instance of ClientModification.
ClientModification(int operation, EntryAttribute attribute)
          Creates a new instance of ClientModification.
ClientModification(ModificationOperation operation, EntryAttribute attribute)
          Creates a new instance of ClientModification.
 
Method Summary
 ClientModification clone()
          Clone a modification
 boolean equals(java.lang.Object o)
           
 EntryAttribute getAttribute()
           
 ModificationOperation getOperation()
           
 int hashCode()
          Compute the modification @see Object#hashCode
 void readExternal(java.io.ObjectInput in)
           
 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
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientModification

public ClientModification(ModificationOperation operation,
                          EntryAttribute attribute)
Creates a new instance of ClientModification.

Parameters:
operation - The modification operation
attribute - The asociated attribute

ClientModification

public ClientModification()
Creates a new instance of ClientModification.


ClientModification

public ClientModification(int operation,
                          EntryAttribute attribute)
Creates a new instance of ClientModification.

Parameters:
operation - The modification operation
attribute - The asociated attribute
Method Detail

getOperation

public ModificationOperation getOperation()
Specified by:
getOperation in interface Modification
Returns:
the operation

setOperation

public void setOperation(int operation)
Store the modification operation

Specified by:
setOperation in interface Modification
Parameters:
operation - The DirContext value to assign

setOperation

public void setOperation(ModificationOperation operation)
Store the modification operation

Specified by:
setOperation in interface Modification
Parameters:
operation - The DirContext value to assign

getAttribute

public EntryAttribute getAttribute()
Specified by:
getAttribute in interface Modification
Returns:
the attribute containing the modifications

setAttribute

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

Specified by:
setAttribute in interface Modification
Parameters:
attribute - The modified attribute

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Returns:
true if both values are equal
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Compute the modification @see Object#hashCode

Overrides:
hashCode in class java.lang.Object
Returns:
the instance's hash code

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
Externalizable.readExternal(ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException
See Also:
Externalizable.writeExternal(ObjectOutput)

clone

public ClientModification clone()
Clone a modification

Specified by:
clone in interface Modification
Overrides:
clone in class java.lang.Object
Returns:
a copied instance of the current modification

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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