All Packages Class Hierarchy This Package Previous Next Index
Class java.naming.directory.ModificationItem
java.lang.Object
|
+----java.naming.directory.ModificationItem
- 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.
-
ModificationItem(int, Attribute)
- Creates a new instance of ModificationItem.
-
getAttribute()
- Retrieves the attribute associated with this modification item.
-
getModificationOp()
- Retrieves the modification code of this modification item.
-
toString()
- Generates the string representation of this modification item,
which consists of the modification operation and its related attribute.
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:
DSContext.ADD_ATTRIBUTE
DSContext.REPLACE_ATTRIBUTE
DSContext.DELETE_ATTRIBUTE
- attr - Attribute to use for modification.
getModificationOp
public int getModificationOp()
- Retrieves the modification code of this modification item.
- Returns:
- The modification code. It is one of:
DSContext.ADD_ATTRIBUTE
DSContext.REPLACE_ATTRIBUTE
DSContext.DELETE_ATTRIBUTE
getAttribute
public Attribute getAttribute()
- Retrieves the attribute associated with this modification item.
- Returns:
- The attribute to use for the modification.
toString
public String toString()
- Generates the string representation of this modification item,
which consists of the modification operation and its related attribute.
- Returns:
- the string representation of this modification item.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index