|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.ldapjdk.LDAPModificationSet
@NotExtensible @Mutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPModificationSet
This class provides a data structure that represents a set of LDAP
modifications.
This class is primarily intended to be used in the process of updating
applications which use the Netscape Directory SDK for Java to switch to or
coexist with the UnboundID LDAP SDK for Java. For applications not written
using the Netscape Directory SDK for Java, an array or collection of
Modification
objects should be used instead.
Constructor Summary | |
---|---|
LDAPModificationSet()
Creates an empty set of modifications. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDAPModificationSet()
Method Detail |
---|
public void add(int op, LDAPAttribute attr)
op
- The modification type for the modification.attr
- The attribute for the modification.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(java.lang.String name)
name
- The name of the attribute to remove.public int size()
public LDAPModification[] toArray()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |