mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
29.40.2007 eaa23f4b7af97c108ecffa40c86c32e723a90594
opends/src/server/org/opends/server/util/cli/ValidationCallback.java
File was renamed from opends/src/server/org/opends/server/tools/dsconfig/ValidationCallback.java
@@ -24,9 +24,7 @@
 *
 *      Portions Copyright 2007 Sun Microsystems, Inc.
 */
package org.opends.server.tools.dsconfig;
import org.opends.server.tools.ClientException;
package org.opends.server.util.cli;
@@ -36,7 +34,7 @@
 * @param <T>
 *          The type of the decoded input.
 */
interface ValidationCallback<T> {
public interface ValidationCallback<T> {
  /**
   * Validates and decodes the user-provided input. Implementations
@@ -51,9 +49,9 @@
   *          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;
}