| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | * |
| | | * @return The modification type for this modification. |
| | | */ |
| | | @Override |
| | | public ModificationType getModificationType() |
| | | { |
| | | return modificationType; |
| | |
| | | * |
| | | * @param modificationType The modification type for this modification. |
| | | */ |
| | | @Override |
| | | public void setModificationType(ModificationType modificationType) |
| | | { |
| | | this.modificationType = modificationType; |
| | |
| | | * |
| | | * @return The attribute for this modification. |
| | | */ |
| | | @Override |
| | | public RawAttribute getAttribute() |
| | | { |
| | | return attribute; |
| | |
| | | * |
| | | * @param attribute The attribute for this modification. |
| | | */ |
| | | @Override |
| | | public void setAttribute(RawAttribute attribute) |
| | | { |
| | | this.attribute = attribute; |
| | |
| | | * @throws LDAPException If a problem occurs while trying to convert the |
| | | * LDAP attribute to a core <CODE>Attribute</CODE>. |
| | | */ |
| | | @Override |
| | | public Modification toModification() |
| | | throws LDAPException |
| | | { |
| | |
| | | * |
| | | * @return A string representation of this modification. |
| | | */ |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * |
| | | * @param buffer The buffer to which the information should be appended. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("LDAPModification(type=").append(modificationType); |
| | |
| | | * @param indent The number of spaces from the margin that the lines should |
| | | * be indented. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | StringBuilder indentBuf = new StringBuilder(indent); |