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/MatchingRule.java | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/sdk/src/org/opends/sdk/schema/MatchingRule.java b/sdk/src/org/opends/sdk/schema/MatchingRule.java
index e351fdf..301fc52 100644
--- a/sdk/src/org/opends/sdk/schema/MatchingRule.java
+++ b/sdk/src/org/opends/sdk/schema/MatchingRule.java
@@ -36,12 +36,8 @@
import java.util.List;
import java.util.Map;
-import org.opends.sdk.Assertion;
-import org.opends.sdk.ByteSequence;
-import org.opends.sdk.ByteString;
-import org.opends.sdk.DecodeException;
+import org.opends.sdk.*;
-import com.sun.opends.sdk.util.Message;
import com.sun.opends.sdk.util.Validator;
@@ -417,7 +413,7 @@
@Override
- void validate(List<Message> warnings, Schema schema)
+ void validate(List<LocalizableMessage> warnings, Schema schema)
throws SchemaException
{
// Try finding an implementation in the core schema
@@ -433,7 +429,7 @@
if (impl == null)
{
impl = Schema.getDefaultMatchingRule().impl;
- final Message message =
+ final LocalizableMessage message =
WARN_MATCHING_RULE_NOT_IMPLEMENTED.get(oid, Schema
.getDefaultMatchingRule().getOID());
warnings.add(message);
@@ -446,7 +442,7 @@
}
catch (final UnknownSchemaElementException e)
{
- final Message message =
+ final LocalizableMessage message =
ERR_ATTR_SYNTAX_MR_UNKNOWN_SYNTAX.get(getNameOrOID(),
syntaxOID);
throw new SchemaException(message, e);
--
Gitblit v1.10.0