public class ModificationItem extends Object implements Serializable
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 and Description |
---|
ModificationItem(int mod_op,
Attribute attr)
Creates a new instance of ModificationItem.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
getAttribute()
Retrieves the attribute associated with this modification item.
|
int |
getModificationOp()
Retrieves the modification code of this modification item.
|
String |
toString()
Generates the string representation of this modification item,
which consists of the modification operation and its related attribute.
|
public ModificationItem(int mod_op, Attribute attr)
IllegalArgumentException
- If attr is null, or if mod_op is
not one of the ones specified above.mod_op
- Modification to apply. It must be one of:
DirContext.ADD_ATTRIBUTE
DirContext.REPLACE_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTEattr
- The non-null attribute to use for modification.public int getModificationOp()
public Attribute getAttribute()
public String toString()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.