From eaa23f4b7af97c108ecffa40c86c32e723a90594 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 29 Aug 2007 14:40:34 +0000
Subject: [PATCH] Fix issue 1831: dsconfig interactive mode.
---
opends/src/server/org/opends/server/util/cli/ValidationCallback.java | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/ValidationCallback.java b/opends/src/server/org/opends/server/util/cli/ValidationCallback.java
similarity index 88%
rename from opends/src/server/org/opends/server/tools/dsconfig/ValidationCallback.java
rename to opends/src/server/org/opends/server/util/cli/ValidationCallback.java
index a8f7750..cefe601 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/ValidationCallback.java
+++ b/opends/src/server/org/opends/server/util/cli/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;
}
--
Gitblit v1.10.0