Class LDAPModification
java.lang.Object
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPModification
- All Implemented Interfaces:
Serializable
@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class LDAPModification
extends Object
implements Serializable
This class provides a data structure that represents an LDAP modification.
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, the
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, the
Modification class
should be used instead.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe modification type that indicates that one or more values should be added to the target attribute.static final intThe modification type that indicates that one or more values should be removed from the target attribute.static final intThe modification type that indicates that one or more values should be replaced in target attribute. -
Constructor Summary
ConstructorsConstructorDescriptionLDAPModification(int op, LDAPAttribute attr) Creates a new LDAP modification with the provided information.LDAPModification(Modification modification) Creates a new LDAP modification from the providedModificationobject. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the attribute to include in this modification.intgetOp()Retrieves the modification type for this LDAP modification.Retrieves aModificationobject that is the equivalent of this LDAP modification.toString()Retrieves a string representation of this LDAP modification.
-
Field Details
-
ADD
The modification type that indicates that one or more values should be added to the target attribute.- See Also:
-
DELETE
The modification type that indicates that one or more values should be removed from the target attribute.- See Also:
-
REPLACE
The modification type that indicates that one or more values should be replaced in target attribute.- See Also:
-
-
Constructor Details
-
LDAPModification
Creates a new LDAP modification with the provided information.- Parameters:
op- The type of modification to perform.attr- The attribute to use for the modification.
-
LDAPModification
Creates a new LDAP modification from the providedModificationobject.- Parameters:
modification- TheModificationobject to use to create this LDAP modification.
-
-
Method Details
-
getOp
Retrieves the modification type for this LDAP modification.- Returns:
- The modification type for this LDAP modification.
-
getAttribute
Retrieves the attribute to include in this modification.- Returns:
- The attribute to include in this modification.
-
toModification
Retrieves aModificationobject that is the equivalent of this LDAP modification.- Returns:
- A
Modificationobject that is the equivalent of this LDAP modification.
-
toString
Retrieves a string representation of this LDAP modification.
-