| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2012 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap; |
| | |
| | | */ |
| | | AbstractMapEntry(final DN name, |
| | | final Map<AttributeDescription, Attribute> attributes) |
| | | throws NullPointerException |
| | | { |
| | | this.name = name; |
| | | this.attributes = attributes; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public final boolean addAttribute(final Attribute attribute, |
| | | final Collection<ByteString> duplicateValues) throws NullPointerException |
| | | final Collection<ByteString> duplicateValues) |
| | | { |
| | | Validator.ensureNotNull(attribute); |
| | | |
| | |
| | | */ |
| | | public final Attribute getAttribute( |
| | | final AttributeDescription attributeDescription) |
| | | throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(attributeDescription); |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public final boolean removeAttribute(final Attribute attribute, |
| | | final Collection<ByteString> missingValues) throws NullPointerException |
| | | final Collection<ByteString> missingValues) |
| | | { |
| | | Validator.ensureNotNull(attribute); |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public final Entry setName(final DN dn) throws NullPointerException |
| | | public final Entry setName(final DN dn) |
| | | { |
| | | Validator.ensureNotNull(dn); |
| | | this.name = dn; |