gnu.inet.ldap
Class Modification
public final class Modification
An individual modification of an object's attributes.
static int | ADD - Add the specified values to the attribute, creating the attribute if
necessary.
|
static int | DELETE - Delete the specified values from the given attribute, removing the
entire attribute if no values are listed, or if all current values of
the attribute are listed.
|
static int | REPLACE - Replace all existing values of the given attribute with the new values,
creating the attribute if it did not exist.
|
protected int | operation - The operation specified by this modification.
|
Modification(int operation, String type, Set values) - Constructor.
|
ADD
public static final int ADD
Add the specified values to the attribute, creating the attribute if
necessary.
DELETE
public static final int DELETE
Delete the specified values from the given attribute, removing the
entire attribute if no values are listed, or if all current values of
the attribute are listed.
REPLACE
public static final int REPLACE
Replace all existing values of the given attribute with the new values,
creating the attribute if it did not exist. A replace with no value
deletes the entire attribute if it exists, and is ignored otherwise.
operation
protected final int operation
The operation specified by this modification.
One of: ADD, DELETE, or REPLACE
Modification
public Modification(int operation,
String type,
Set values)
Constructor.
operation
- the operationtype
- the attribute typevalues
- the values to assign
getOperation
public int getOperation()