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/org/opends/sdk/schema/NameForm.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/sdk/src/org/opends/sdk/schema/NameForm.java b/sdk/src/org/opends/sdk/schema/NameForm.java
index 4e55133..30d73ef 100644
--- a/sdk/src/org/opends/sdk/schema/NameForm.java
+++ b/sdk/src/org/opends/sdk/schema/NameForm.java
@@ -33,7 +33,8 @@
 
 import java.util.*;
 
-import com.sun.opends.sdk.util.Message;
+import org.opends.sdk.LocalizableMessage;
+
 import com.sun.opends.sdk.util.Validator;
 
 
@@ -375,7 +376,7 @@
 
 
   @Override
-  void validate(List<Message> warnings, Schema schema)
+  void validate(List<LocalizableMessage> warnings, Schema schema)
       throws SchemaException
   {
     try
@@ -384,7 +385,7 @@
     }
     catch (final UnknownSchemaElementException e)
     {
-      final Message message =
+      final LocalizableMessage message =
           ERR_ATTR_SYNTAX_NAME_FORM_UNKNOWN_STRUCTURAL_CLASS.get(oid,
               structuralClassOID);
       throw new SchemaException(message, e);
@@ -393,7 +394,7 @@
     {
       // This is bad because the associated structural class type is not
       // structural.
-      final Message message =
+      final LocalizableMessage message =
           ERR_ATTR_SYNTAX_NAME_FORM_STRUCTURAL_CLASS_NOT_STRUCTURAL
               .get(oid, structuralClass.getOID(), structuralClass
                   .getNameOrOID(), String.valueOf(structuralClass
@@ -414,7 +415,7 @@
       {
         // This isn't good because it means that the name form requires
         // an attribute type that we don't know anything about.
-        final Message message =
+        final LocalizableMessage message =
             ERR_ATTR_SYNTAX_NAME_FORM_UNKNOWN_REQUIRED_ATTR.get(
                 this.oid, oid);
         throw new SchemaException(message, e);
@@ -437,7 +438,7 @@
           // This isn't good because it means that the name form
           // requires an attribute type that we don't know anything
           // about.
-          final Message message =
+          final LocalizableMessage message =
               ERR_ATTR_SYNTAX_NAME_FORM_UNKNOWN_OPTIONAL_ATTR.get(
                   this.oid, oid);
           throw new SchemaException(message, e);

--
Gitblit v1.10.0