This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.naming.directory
class ModificationItem

java.lang.Object extended by javax.naming.directory.ModificationItem
All Implemented Interfaces:
Serializable

public class ModificationItem
extends Object
implements 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 Summary
ModificationItem(int mod_op, Attribute attr)

          Creates a new instance of ModificationItem.
 
Method Summary
 Attribute

          Retrieves the attribute associated with this modification item.
 int

          Retrieves the modification code of this modification item.
 String

          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, toString, wait, wait, wait
 

Constructor Detail

ModificationItem

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.
Method Detail

getAttribute

public Attribute getAttribute()
Retrieves the attribute associated with this modification item.

Returns:
The non-null attribute to use for the modification.

getModificationOp

public int getModificationOp()
Retrieves the modification code of this modification item.

Returns:
The modification code. It is one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTE

toString

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.

Overrides:
toString in class Object
Returns:
The non-null string representation of this modification item.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.