| java.lang.Object javax.naming.directory.ModificationItem
ModificationItem | public class ModificationItem implements Serializable(Code) | | This class is a combination of a modification code and attribute.
It is used by exception reporting (see
AttributeModificationException for an example).
The class is not thread-safe.
|
Constructor Summary | |
public | ModificationItem(int operation, Attribute attribute) Constructs a ModificationItem instance with all
parameters. |
ModificationItem | public ModificationItem(int operation, Attribute attribute)(Code) | | Constructs a ModificationItem instance with all
parameters.
Parameters: operation - an operation code chosen fromDirContext.ADD_ATTRIBUTE ,DirContext.REPLACE_ATTRIBUTE ,DirContext.REMOVE_ATTRIBUTE Parameters: attribute - the Attribute or value that is the source ofthe modification |
getAttribute | public Attribute getAttribute()(Code) | | Gets the Attribute or value that is the source of the
modification.
the Attribute or value that is the source of themodification |
getModificationOp | public int getModificationOp()(Code) | | Gets the operation code.
an operation code chosen from DirContext.ADD_ATTRIBUTE ,DirContext.REPLACE_ATTRIBUTE , DirContext.REMOVE_ATTRIBUTE |
toString | public String toString()(Code) | | Returns string representations of this ModificationItem
instance.
a concatenation of string values for the operation and theattribute |
|
|