@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public abstract class RawModification extends Object
Constructor and Description |
---|
RawModification() |
Modifier and Type | Method and Description |
---|---|
static LDAPModification |
decode(Asn1Reader reader)
Decodes the elements from the provided ASN.1 reader as an LDAP modification.
|
abstract RawAttribute |
getAttribute()
Retrieves the attribute for this modification.
|
abstract ModificationType |
getModificationType()
Retrieves the modification type for this modification.
|
abstract void |
setAttribute(RawAttribute attribute)
Specifies the attribute for this modification.
|
abstract void |
setModificationType(ModificationType modificationType)
Specifies the modification type for this modification.
|
abstract Modification |
toModification()
Creates a new core
Modification object from this raw modification. |
String |
toString()
Retrieves a string representation of this modification.
|
abstract void |
toString(StringBuilder buffer)
Appends a string representation of this modification to the provided buffer.
|
abstract void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP modification to the provided buffer.
|
void |
write(Asn1Writer stream)
Writes this modification to an ASN.1 stream.
|
public abstract ModificationType getModificationType()
public abstract void setModificationType(ModificationType modificationType)
modificationType
- The modification type for this modification.public abstract RawAttribute getAttribute()
public abstract void setAttribute(RawAttribute attribute)
attribute
- The attribute for this modification.public void write(Asn1Writer stream) throws IOException
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public static LDAPModification decode(Asn1Reader reader) throws LdapException
reader
- The ASN.1 reader.LdapException
- If a problem occurs while attempting to decode the provided ASN.1 element as a raw modification.public abstract Modification toModification() throws LdapException
Modification
object from this raw modification.LdapException
- If a problem occurs while trying to convert the raw modification to a core Modification
.public String toString()
public abstract void toString(StringBuilder buffer)
buffer
- The buffer to which the information should be appended.public abstract void toString(StringBuilder buffer, int indent)
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-2018 ForgeRock AS.