public class LDIFModDNContent extends LDIFBaseContent
LDIFContent
interface.
To get this object from an LDIFRecord
object,
use the getContent
method and cast the return value as
LDIFModDNContent
.
LDIFRecord.getContent()
,
Serialized FormADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT
Constructor and Description |
---|
LDIFModDNContent()
Constructs an empty
LDIFModDNContent object. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDeleteOldRDN()
Determines if the content of the LDIF record specifies that
the old RDN should be removed as an attribute in the entry.
|
java.lang.String |
getNewParent()
Returns the entry's new parent DN, if specified in the content
of the LDIF record.
|
java.lang.String |
getRDN()
Returns the new RDN specified in the content of the LDIF record.
|
int |
getType()
Returns the content type.
|
void |
setDeleteOldRDN(boolean bool)
Sets whether or not the old RDN should be removed as an
attribute in the entry.
|
void |
setNewParent(java.lang.String parent)
Sets the new parent DN that should be assigned to the entry.
|
void |
setRDN(java.lang.String rdn)
Sets the new RDN that should be assigned to the entry.
|
java.lang.String |
toString()
Returns string representation of the content of the LDIF record.
|
getControls, getControlString, setControls
public LDIFModDNContent()
LDIFModDNContent
object.
To specify the modifications to be made to the entry, use
the setRDN
, setNewParent
,
and setDeleteOldRDN
methods.public int getType()
getContent
method of the LDIFRecord
object to determine the type of content specified in the record.LDIFContent.MODDN_CONTENT
).LDIFRecord.getContent()
public void setRDN(java.lang.String rdn)
rdn
- the new RDNgetRDN()
public java.lang.String getRDN()
setRDN(java.lang.String)
public void setNewParent(java.lang.String parent)
parent
- the new parent DN for the entrygetNewParent()
public java.lang.String getNewParent()
setNewParent(java.lang.String)
public void setDeleteOldRDN(boolean bool)
bool
- if true
, remove the attribute representing
the RDN. If false
, leave the attribute in the entry.getDeleteOldRDN()
public boolean getDeleteOldRDN()
true
if the change specifies that the
the attribute representing the RDN should be removed,
false
if the change specifies that the attribute
should be left in the entry.setDeleteOldRDN(boolean)
public java.lang.String toString()
toString
in interface LDIFContent
toString
in class java.lang.Object