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/MultiChoiceArgument.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/sdk/src/com/sun/opends/sdk/tools/MultiChoiceArgument.java b/sdk/src/com/sun/opends/sdk/tools/MultiChoiceArgument.java
index 781ac3a..2a573b3 100644
--- a/sdk/src/com/sun/opends/sdk/tools/MultiChoiceArgument.java
+++ b/sdk/src/com/sun/opends/sdk/tools/MultiChoiceArgument.java
@@ -32,8 +32,9 @@
 
 import java.util.Collection;
 
-import com.sun.opends.sdk.util.Message;
-import com.sun.opends.sdk.util.MessageBuilder;
+import org.opends.sdk.LocalizableMessage;
+import org.opends.sdk.LocalizableMessageBuilder;
+
 
 
 
@@ -83,15 +84,15 @@
    *          Indicates whether the set of allowed values should be
    *          treated in a case-sensitive manner.
    * @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 MultiChoiceArgument(String name, Character shortIdentifier,
       String longIdentifier, boolean isRequired, boolean needsValue,
-      Message valuePlaceholder, Collection<T> allowedValues,
-      boolean caseSensitive, Message description)
+      LocalizableMessage valuePlaceholder, Collection<T> allowedValues,
+      boolean caseSensitive, LocalizableMessage description)
       throws ArgumentException
   {
     super(name, shortIdentifier, longIdentifier, isRequired, false,
@@ -145,17 +146,17 @@
    *          Indicates whether the set of allowed values should be
    *          treated in a case-sensitive manner.
    * @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 MultiChoiceArgument(String name, Character shortIdentifier,
       String longIdentifier, boolean isRequired, boolean isMultiValued,
-      boolean needsValue, Message valuePlaceholder,
+      boolean needsValue, LocalizableMessage valuePlaceholder,
       String defaultValue, String propertyName,
       Collection<T> allowedValues, boolean caseSensitive,
-      Message description) throws ArgumentException
+      LocalizableMessage description) throws ArgumentException
   {
     super(name, shortIdentifier, longIdentifier, isRequired,
         isMultiValued, needsValue, valuePlaceholder, defaultValue,
@@ -207,7 +208,7 @@
    *         <CODE>false</CODE> if it is not.
    */
   public boolean valueIsAcceptable(String valueString,
-      MessageBuilder invalidReason)
+      LocalizableMessageBuilder invalidReason)
   {
     for (T o : allowedValues)
     {

--
Gitblit v1.10.0