@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 RawModification |
create(org.forgerock.opendj.ldap.ModificationType modificationType,
RawAttribute attribute)
Creates a new raw modification with the provided type and
attribute.
|
static RawModification |
create(org.forgerock.opendj.ldap.ModificationType modificationType,
String attributeType)
Creates a new raw modification with the provided type and
attribute.
|
static RawModification |
create(org.forgerock.opendj.ldap.ModificationType modificationType,
String attributeType,
ArrayList<org.forgerock.opendj.ldap.ByteString> attributeValues)
Creates a new raw modification with the provided type and
attribute.
|
static RawModification |
create(org.forgerock.opendj.ldap.ModificationType modificationType,
String attributeType,
org.forgerock.opendj.ldap.ByteString attributeValue)
Creates a new raw modification with the provided type and
attribute.
|
static RawModification |
create(org.forgerock.opendj.ldap.ModificationType modificationType,
String attributeType,
String attributeValue)
Creates a new raw modification with the provided type and
attribute.
|
static LDAPModification |
decode(org.forgerock.opendj.io.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 org.forgerock.opendj.ldap.ModificationType |
getModificationType()
Retrieves the modification type for this modification.
|
abstract void |
setAttribute(RawAttribute attribute)
Specifies the attribute for this modification.
|
abstract void |
setModificationType(org.forgerock.opendj.ldap.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(org.forgerock.opendj.io.Asn1Writer stream)
Writes this modification to an ASN.1 stream.
|
public RawModification()
public static RawModification create(org.forgerock.opendj.ldap.ModificationType modificationType, RawAttribute attribute)
modificationType
- The modification type for this
modification.attribute
- The attribute for this modification.public static RawModification create(org.forgerock.opendj.ldap.ModificationType modificationType, String attributeType)
modificationType
- The modification type for this
modification.attributeType
- The name of the attribute type for this
modification.public static RawModification create(org.forgerock.opendj.ldap.ModificationType modificationType, String attributeType, String attributeValue)
modificationType
- The modification type for this
modification.attributeType
- The name of the attribute type for this
modification.attributeValue
- The attribute value for this
modification.public static RawModification create(org.forgerock.opendj.ldap.ModificationType modificationType, String attributeType, org.forgerock.opendj.ldap.ByteString attributeValue)
modificationType
- The modification type for this
modification.attributeType
- The name of the attribute type for this
modification.attributeValue
- The attribute value for this
modification.public static RawModification create(org.forgerock.opendj.ldap.ModificationType modificationType, String attributeType, ArrayList<org.forgerock.opendj.ldap.ByteString> attributeValues)
modificationType
- The modification type for this
modification.attributeType
- The name of the attribute type for this
modification.attributeValues
- The set of attribute values for this
modification.public abstract org.forgerock.opendj.ldap.ModificationType getModificationType()
public abstract void setModificationType(org.forgerock.opendj.ldap.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(org.forgerock.opendj.io.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(org.forgerock.opendj.io.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 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-2017 ForgeRock AS. All Rights Reserved.