*/
public Element toDsml( Element root )
{
Element element = super.toDsml( root );
ModifyDnRequest request = ( ModifyDnRequest ) getDecorated();
// Dn
if ( request.getName() != null )
{
element.addAttribute( "dn", request.getName().getName() );
}
// NewRDN
if ( request.getNewRdn() != null )
{
element.addAttribute( "newrdn", request.getNewRdn().getName() );
}
// DeleteOldRDN
element.addAttribute( "deleteoldrdn", ( request.getDeleteOldRdn() ? "true" : "false" ) );
// NewSuperior
if ( request.getNewRdn() != null )
{
element.addAttribute( "newSuperior", request.getNewSuperior().getName() );
}
return element;
}