|
||||||||||
| 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 attribute
public ServerModification(SchemaManager schemaManager,
Modification modification)
| Method Detail |
|---|
public ModificationOperation getOperation()
getOperation in interface Modificationpublic void setOperation(int operation)
setOperation in interface Modificationoperation - The DirContext value to assignpublic void setOperation(ModificationOperation operation)
setOperation in interface Modificationoperation - The DirContext value to assignpublic EntryAttribute getAttribute()
getAttribute in interface Modificationpublic void setAttribute(EntryAttribute attribute)
setAttribute in interface Modificationattribute - The modified attributepublic Modification toClientModification()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object that)
equals in class java.lang.ObjectObject.equals(Object)public ServerModification clone()
clone in interface Modificationclone in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionWe can't use this method for a ServerModification.
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionWe 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 registries
public void serialize(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||