| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | * Portions copyright 2011-2012 ForgeRock AS |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap; |
| | |
| | | * If {@code factory} was {@code null}. |
| | | */ |
| | | public final DecodeOptions setAttributeFactory(final AttributeFactory factory) |
| | | throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(factory); |
| | | this.attributeFactory = factory; |
| | |
| | | * If {@code factory} was {@code null}. |
| | | */ |
| | | public final DecodeOptions setEntryFactory(final EntryFactory factory) |
| | | throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(factory); |
| | | this.entryFactory = factory; |
| | |
| | | * If {@code schema} was {@code null}. |
| | | */ |
| | | public final DecodeOptions setSchema(final Schema schema) |
| | | throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(schema); |
| | | this.schemaResolver = new FixedSchemaResolver(schema); |
| | |
| | | * If {@code resolver} was {@code null}. |
| | | */ |
| | | public final DecodeOptions setSchemaResolver(final SchemaResolver resolver) |
| | | throws NullPointerException |
| | | { |
| | | Validator.ensureNotNull(resolver); |
| | | this.schemaResolver = resolver; |