public class LDIFModifyContent extends LDIFBaseContent
LDIFContent
interface.
To get this object from an LDIFRecord
object,
use the getContent
method and cast the return value as
LDIFModifyContent
.
LDIFRecord.getContent()
,
Serialized FormADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT
Constructor and Description |
---|
LDIFModifyContent()
Constructs an empty
LDIFModifyContent object. |
Modifier and Type | Method and Description |
---|---|
void |
addElement(LDAPModification mod)
Specifies an additional modification that should be made to
the entry.
|
LDAPModification[] |
getModifications()
Retrieves the list of the modifications specified in the content
of the LDIF record.
|
int |
getType()
Returns the content type.
|
java.lang.String |
toString()
Returns the string representation of the content of the LDIF record.
|
getControls, getControlString, setControls
public LDIFModifyContent()
LDIFModifyContent
object.
To specify the modifications to be made to the entry, use
the addElement
method.public int getType()
getContent
method of the LDIFRecord
object to determine the type of content specified in the record.LDIFContent.MODIFICATION_CONTENT
).LDIFRecord.getContent()
public void addElement(LDAPModification mod)
mod
- LDAPModification
object representing
the change to make to the entryLDAPModification
public LDAPModification[] getModifications()
LDAPModification
objects that
represent the modifications specified in the content of the LDIF record.LDAPModification
public java.lang.String toString()
toString
in interface LDIFContent
toString
in class java.lang.Object