From 1b9f39db0f5450de6c3bb97cec681c342fff5944 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 08 Dec 2009 10:52:42 +0000
Subject: [PATCH] Move Message/MessageBuilder/LocalizableException/LocalizableIllegalArgumentException to public API since other public API elements reference them. Prefix Message/MessageBuilder with Localizable to emphasize that these classes are I18N related and not protocol messages. Keep MessageDescriptor private since users should not need access to it for now.
---
sdk/src/com/sun/opends/sdk/tools/FileBasedArgument.java | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/FileBasedArgument.java b/sdk/src/com/sun/opends/sdk/tools/FileBasedArgument.java
index 1540586..c476bf2 100644
--- a/sdk/src/com/sun/opends/sdk/tools/FileBasedArgument.java
+++ b/sdk/src/com/sun/opends/sdk/tools/FileBasedArgument.java
@@ -36,8 +36,9 @@
import java.io.FileReader;
import java.util.LinkedHashMap;
-import com.sun.opends.sdk.util.Message;
-import com.sun.opends.sdk.util.MessageBuilder;
+import org.opends.sdk.LocalizableMessage;
+import org.opends.sdk.LocalizableMessageBuilder;
+
@@ -85,14 +86,14 @@
* displayed in usage information, or <CODE>null</CODE> if
* this argument does not require a value.
* @param description
- * Message for the description of this argument.
+ * LocalizableMessage for the description of this argument.
* @throws ArgumentException
* If there is a problem with any of the parameters used to
* create this argument.
*/
public FileBasedArgument(String name, Character shortIdentifier,
String longIdentifier, boolean isRequired,
- Message valuePlaceholder, Message description)
+ LocalizableMessage valuePlaceholder, LocalizableMessage description)
throws ArgumentException
{
super(name, shortIdentifier, longIdentifier, isRequired, false,
@@ -135,15 +136,15 @@
* used to override the default value but will be overridden
* by a command-line argument.
* @param description
- * Message for the description of this argument.
+ * LocalizableMessage for the description of this argument.
* @throws ArgumentException
* If there is a problem with any of the parameters used to
* create this argument.
*/
public FileBasedArgument(String name, Character shortIdentifier,
String longIdentifier, boolean isRequired, boolean isMultiValued,
- Message valuePlaceholder, String defaultValue,
- String propertyName, Message description)
+ LocalizableMessage valuePlaceholder, String defaultValue,
+ String propertyName, LocalizableMessage description)
throws ArgumentException
{
super(name, shortIdentifier, longIdentifier, isRequired,
@@ -182,7 +183,7 @@
* <CODE>false</CODE> if it is not.
*/
public boolean valueIsAcceptable(String valueString,
- MessageBuilder invalidReason)
+ LocalizableMessageBuilder invalidReason)
{
// First, make sure that the specified file exists.
File valueFile;
--
Gitblit v1.10.0