@NotExtensible @Mutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPModificationSet extends java.lang.Object implements java.io.Serializable
Modification objects should be used instead.| Constructor | Description |
|---|---|
LDAPModificationSet() |
Creates an empty set of modifications.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int op,
LDAPAttribute attr) |
Adds a modification to this modification set.
|
LDAPModification |
elementAt(int index) |
Retrieves the LDAP modification at the specified position in this
modification set.
|
void |
remove(java.lang.String name) |
Removes the first LDAP modification in this set targeting the specified
attribute.
|
void |
removeElementAt(int index) |
Removes the LDAP modification at the specified position in this
modification set.
|
int |
size() |
Retrieves the number of modifications in this modification set.
|
LDAPModification[] |
toArray() |
Retrieves the contents of this set as an array of LDAP modifications.
|
java.lang.String |
toString() |
Retrieves a string representation of this modification set.
|
public LDAPModificationSet()
public void add(int op, @NotNull LDAPAttribute attr)
op - The modification type for the modification.attr - The attribute for the modification.@NotNull public LDAPModification elementAt(int index) throws java.lang.IndexOutOfBoundsException
index - The position of the LDAP modification to retrieve.java.lang.IndexOutOfBoundsException - If the provided index is invalid.public void removeElementAt(int index) throws java.lang.IndexOutOfBoundsException
index - The position of the LDAP modification to remove.java.lang.IndexOutOfBoundsException - If the provided index is invalid.public void remove(@NotNull java.lang.String name)
name - The name of the attribute to remove.public int size()
@NotNull public LDAPModification[] toArray()