|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.entry.ServerModification
public class ServerModification
An internal implementation for a ModificationItem. The name has been chosen so that it does not conflict with @see ModificationItem
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ServerModification()
Create a new instance of a ServerModification. |
|
ServerModification(ModificationOperation operation,
EntryAttribute attribute)
Create a new instance of a ServerModification. |
|
ServerModification(SchemaManager schemaManager,
Modification modification)
|
Method Summary | |
---|---|
ServerModification |
clone()
Create a clone instance |
void |
deserialize(java.io.ObjectInput in,
SchemaManager schemaManager)
Deserialize a ServerModification |
boolean |
equals(java.lang.Object that)
|
EntryAttribute |
getAttribute()
|
ModificationOperation |
getOperation()
|
int |
hashCode()
Compute the modification @see Object#hashCode |
void |
readExternal(java.io.ObjectInput in)
|
void |
serialize(java.io.ObjectOutput out)
Serialize a ServerModification. |
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 |
Modification |
toClientModification()
Convert the current ServerModification to a ClientModification instance |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ServerModification()
public ServerModification(ModificationOperation operation, EntryAttribute attribute)
operation
- the Modification operation (one of add, replace or remove)attribute
- the modified attributepublic ServerModification(SchemaManager schemaManager, Modification modification)
Method Detail |
---|
public ModificationOperation getOperation()
getOperation
in interface Modification
public void setOperation(int operation)
setOperation
in interface Modification
operation
- The DirContext value to assignpublic void setOperation(ModificationOperation operation)
setOperation
in interface Modification
operation
- The DirContext value to assignpublic EntryAttribute getAttribute()
getAttribute
in interface Modification
public void setAttribute(EntryAttribute attribute)
setAttribute
in interface Modification
attribute
- The modified attributepublic Modification toClientModification()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
Object.equals(Object)
public ServerModification clone()
clone
in interface Modification
clone
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
We can't use this method for a ServerModification.
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
We can't use this method for a ServerModification.
public void deserialize(java.io.ObjectInput in, SchemaManager schemaManager) throws java.io.IOException, java.lang.ClassNotFoundException, LdapException
in
- The buffer containing the serialized valueatRegistry
- The AttributeType registry
java.io.IOException
- If we weren't able to deserialize the data
java.lang.ClassNotFoundException
- if we weren't able to construct a Modification instance
LdapException
- If we didn't found the AttributeType in the registriespublic void serialize(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |