Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.naming.directory.ModificationItem
public class ModificationItem
This class represents a modification item. It consists of a modification code and an attribute on which to operate.
A ModificationItem instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ModificationItem instance should lock the object.
| Constructor Summary | |
|---|---|
ModificationItem(int mod_op,
Attribute attr)
Creates a new instance of ModificationItem. |
|
| Method Summary | |
|---|---|
Attribute |
getAttribute()
Retrieves the attribute associated with this modification item. |
int |
getModificationOp()
Retrieves the modification code of this modification item. |
String |
toString()
Generates the string representation of this modification item, which consists of the modification operation and its related attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModificationItem(int mod_op,
Attribute attr)
mod_op - Modification to apply. It must be one of:
DirContext.ADD_ATTRIBUTE
DirContext.REPLACE_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTEattr - The non-null attribute to use for modification.
IllegalArgumentException - If attr is null, or if mod_op is
not one of the ones specified above.| Method Detail |
|---|
public int getModificationOp()
public Attribute getAttribute()
public String toString()
toString in class Object
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.