Home » openjdk-7 » javax » naming » directory » [javadoc | source]
javax.naming.directory
public class: ModificationItem [javadoc | source]
java.lang.Object
   javax.naming.directory.ModificationItem

All Implemented Interfaces:
    java$io$Serializable

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:
 public ModificationItem(int mod_op,
    Attribute attr) 
    Creates a new instance of ModificationItem.
    Parameters:
    mod_op - Modification to apply. It must be one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTE
    attr - The non-null attribute to use for modification.
    Throws:
    IllegalArgumentException - If attr is null, or if mod_op is not one of the ones specified above.
    exception: IllegalArgumentException - If attr is null, or if mod_op is not one of the ones specified above.
Method from javax.naming.directory.ModificationItem Summary:
getAttribute,   getModificationOp,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.naming.directory.ModificationItem Detail:
 public Attribute getAttribute() 
    Retrieves the attribute associated with this modification item.
 public int getModificationOp() 
    Retrieves the modification code of this modification item.
 public String toString() 
    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.