|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.directory.ModificationItem
org.apache.directory.shared.ldap.message.ModificationItemImpl
public class ModificationItemImpl
A specific version of this class, which do a transformation of a BasicAttribute to a AttributeImpl when created. This is necessary because BasicAttribute clone method do not do a deep clone, which is _bad_. AttributeImpl do a deep copy when cloning, which is _good_.
| Constructor Summary | |
|---|---|
ModificationItemImpl(int modificationOp,
javax.naming.directory.Attribute attribute)
Create a modificationItemImpl |
|
ModificationItemImpl(javax.naming.directory.ModificationItem modification)
Create a modificationItemImpl from a modificationItem |
|
ModificationItemImpl(ModificationItemImpl modification)
Create a modificationItemImpl from another one. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
javax.naming.directory.Attribute |
getAttribute()
Retrieves the attribute associated with this modification item. |
int |
getModificationOp()
|
int |
hashCode()
|
boolean |
isServerModified()
Tells if this modification has been created by the server or not |
void |
setServerModified()
Set the serverModified item |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModificationItemImpl(int modificationOp,
javax.naming.directory.Attribute attribute)
modificationOp - The modification operation : on of :
- DirContext.ADD_ATTRIBUTE
- DirContext.REPLACE_ATTRIBUTE
- DirContext.REMOVE_ATTRIBUTEattribte - The attribute to add, modify or removepublic ModificationItemImpl(javax.naming.directory.ModificationItem modification)
modificationOp - The modification operation : on of :
- DirContext.ADD_ATTRIBUTE
- DirContext.REPLACE_ATTRIBUTE
- DirContext.REMOVE_ATTRIBUTEattribte - The attribute to add, modify or removepublic ModificationItemImpl(ModificationItemImpl modification)
modification - item to be copied.| Method Detail |
|---|
public int getModificationOp()
getModificationOp in class javax.naming.directory.ModificationItempublic javax.naming.directory.Attribute getAttribute()
getAttribute in class javax.naming.directory.ModificationItem
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionObject.clone()public boolean isServerModified()
true if the server has created this modifictionItempublic void setServerModified()
serverModified - public java.lang.String toString()
toString in class javax.naming.directory.ModificationItemObject.toString()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||