| File was renamed from opends/src/server/org/opends/server/tools/dsconfig/ValidationCallback.java |
| | |
| | | * |
| | | * Portions Copyright 2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tools.dsconfig; |
| | | |
| | | import org.opends.server.tools.ClientException; |
| | | package org.opends.server.util.cli; |
| | | |
| | | |
| | | |
| | |
| | | * @param <T> |
| | | * The type of the decoded input. |
| | | */ |
| | | interface ValidationCallback<T> { |
| | | public interface ValidationCallback<T> { |
| | | |
| | | /** |
| | | * Validates and decodes the user-provided input. Implementations |
| | |
| | | * The user input to be validated. |
| | | * @return Returns the decoded input if the input is valid, or |
| | | * <code>null</code> if it is not. |
| | | * @throws ClientException |
| | | * @throws CLIException |
| | | * If an unexpected error occurred which prevented |
| | | * validation. |
| | | */ |
| | | T validate(ConsoleApplication app, String input) throws ClientException; |
| | | T validate(ConsoleApplication app, String input) throws CLIException; |
| | | } |