Package netscape.ldap.util
Class LDIFModifyContent
java.lang.Object
netscape.ldap.util.LDIFBaseContent
netscape.ldap.util.LDIFModifyContent
- All Implemented Interfaces:
Serializable
,LDIFContent
An object of this class represents the content of an LDIF record that
specifies modifications to an entry. This class implements the
LDIFContent
interface.
To get this object from an LDIFRecord
object,
use the getContent
method and cast the return value as
LDIFModifyContent
.
- Version:
- 1.0
- See Also:
-
Field Summary
Fields inherited from interface netscape.ldap.util.LDIFContent
ADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Specifies an additional modification that should be made to the entry.Retrieves the list of the modifications specified in the content of the LDIF record.int
getType()
Returns the content type.toString()
Returns the string representation of the content of the LDIF record.Methods inherited from class netscape.ldap.util.LDIFBaseContent
getControls, getControlString, setControls
-
Constructor Details
-
LDIFModifyContent
public LDIFModifyContent()Constructs an emptyLDIFModifyContent
object. To specify the modifications to be made to the entry, use theaddElement
method.
-
-
Method Details
-
getType
public int getType()Returns the content type. You can use this with thegetContent
method of theLDIFRecord
object to determine the type of content specified in the record.- Returns:
- the content type (which is
LDIFContent.MODIFICATION_CONTENT
). - See Also:
-
addElement
Specifies an additional modification that should be made to the entry.- Parameters:
mod
-LDAPModification
object representing the change to make to the entry- See Also:
-
getModifications
Retrieves the list of the modifications specified in the content of the LDIF record.- Returns:
- an array of
LDAPModification
objects that represent the modifications specified in the content of the LDIF record. - See Also:
-
toString
Returns the string representation of the content of the LDIF record.- Specified by:
toString
in interfaceLDIFContent
- Overrides:
toString
in classObject
- Returns:
- the string representation of the content of the LDIF record.
-