netscape.ldap.util
Class LDIFModifyContent
- LDIFContent, java.io.Serializable
public class LDIFModifyContent
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
.
LDIFModifyContent
public LDIFModifyContent()
Constructs an empty LDIFModifyContent
object.
To specify the modifications to be made to the entry, use
the addElement
method.
addElement
public void addElement(LDAPModification mod)
Specifies an additional modification that should be made to
the entry.
mod
- LDAPModification
object representing
the change to make to the entry
getModifications
public LDAPModification[] getModifications()
Retrieves the list of the modifications specified in the content
of the LDIF record.
- an array of
LDAPModification
objects that
represent the modifications specified in the content of the LDIF record.
getType
public int getType()
Returns the content type. You can use this with the
getContent
method of the LDIFRecord
object to determine the type of content specified in the record.
- getType in interface LDIFContent
- the content type (which is
LDIFContent.MODIFICATION_CONTENT
).
toString
public String toString()
Returns the string representation of the content of the LDIF record.
- toString in interface LDIFContent
- the string representation of the content of the LDIF record.