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.
| Modifier and Type | Field and Description |
|---|---|
| private Attribute | attr
Contains the attribute identifying the attribute and/or its value to be applied for the modification. |
| private int | mod_op
Contains an integer identify the modification to be performed. |
| private static final long | serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability |
| Access | Constructor and Description |
|---|---|
| public | ModificationItem(int
Modification to apply. It must be one of:
DirContext.ADD_ATTRIBUTE
DirContext.REPLACE_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTE mod_op, Attribute The non-null attribute to use for modification. attr)Creates a new instance of ModificationItem. |
| Modifier and Type | Method and Description |
|---|---|
| public Attribute | Returns: The non-null attribute to use for the modification.Retrieves the attribute associated with this modification item. |
| public int | Returns: The modification code. It is one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTERetrieves the modification code of this modification item. |
| public String | Returns: The non-null string representation of this modification item.Overrides java. Generates the string representation of this modification item, which consists of the modification operation and its related attribute. |
| attr | back to summary |
|---|---|
| private Attribute attr Contains the attribute identifying the attribute and/or its value to be applied for the modification. | |
| mod_op | back to summary |
|---|---|
| private int mod_op Contains an integer identify the modification to be performed. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| ModificationItem | back to summary |
|---|---|
| public ModificationItem(int mod_op, Attribute attr) Creates a new instance of ModificationItem.
| |
| getAttribute | back to summary |
|---|---|
| public Attribute getAttribute() Retrieves the attribute associated with this modification item.
| |
| getModificationOp | back to summary |
|---|---|
| public int getModificationOp() Retrieves the modification code of this modification item.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Generates the string representation of this modification item, which consists of the modification operation and its related attribute. The string representation is meant for debugging and not to be interpreted programmatically.
| |