public class LDAPModification extends RawModification
Constructor and Description |
---|
LDAPModification(org.forgerock.opendj.ldap.ModificationType modificationType,
RawAttribute attribute)
Creates a new LDAP modification with the provided type and attribute.
|
Modifier and Type | Method and Description |
---|---|
RawAttribute |
getAttribute()
Retrieves the attribute for this modification.
|
org.forgerock.opendj.ldap.ModificationType |
getModificationType()
Retrieves the modification type for this modification.
|
void |
setAttribute(RawAttribute attribute)
Specifies the attribute for this modification.
|
void |
setModificationType(org.forgerock.opendj.ldap.ModificationType modificationType)
Specifies the modification type for this modification.
|
Modification |
toModification()
Creates a new core
Modification object from this LDAP
modification. |
String |
toString()
Retrieves a string representation of this modification.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this modification to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP modification to the
provided buffer.
|
public LDAPModification(org.forgerock.opendj.ldap.ModificationType modificationType, RawAttribute attribute)
modificationType
- The modification type for this modification.attribute
- The attribute for this modification.public org.forgerock.opendj.ldap.ModificationType getModificationType()
getModificationType
in class RawModification
public void setModificationType(org.forgerock.opendj.ldap.ModificationType modificationType)
setModificationType
in class RawModification
modificationType
- The modification type for this modification.public RawAttribute getAttribute()
getAttribute
in class RawModification
public void setAttribute(RawAttribute attribute)
setAttribute
in class RawModification
attribute
- The attribute for this modification.public Modification toModification() throws LDAPException
Modification
object from this LDAP
modification.toModification
in class RawModification
LDAPException
- If a problem occurs while trying to convert the
LDAP attribute to a core Attribute
.public String toString()
toString
in class RawModification
public void toString(StringBuilder buffer)
toString
in class RawModification
buffer
- The buffer to which the information should be appended.public void toString(StringBuilder buffer, int indent)
toString
in class RawModification
buffer
- The buffer to which the information should be appended.indent
- The number of spaces from the margin that the lines should
be indented.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.