From b7b304994dd037ced0df2d5d04c1aa4d41c6bb72 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Wed, 17 Dec 2008 19:25:45 +0000
Subject: [PATCH] Integerated first part of the Fix for Issue# 262:Plugin for Collation/Internationalization
---
opends/src/server/org/opends/server/schema/KeywordEqualityMatchingRule.java | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/opends/src/server/org/opends/server/schema/KeywordEqualityMatchingRule.java b/opends/src/server/org/opends/server/schema/KeywordEqualityMatchingRule.java
index 8ce65d9..90e0825 100644
--- a/opends/src/server/org/opends/server/schema/KeywordEqualityMatchingRule.java
+++ b/opends/src/server/org/opends/server/schema/KeywordEqualityMatchingRule.java
@@ -28,12 +28,9 @@
-import org.opends.server.admin.std.server.EqualityMatchingRuleCfg;
-import org.opends.server.config.ConfigException;
-import org.opends.server.types.InitializationException;
-
+import java.util.Collection;
+import java.util.Collections;
import static org.opends.server.schema.SchemaConstants.*;
-import static org.opends.server.util.StaticUtils.*;
@@ -42,7 +39,7 @@
* document defines "keyword" as implementation-specific, but in this case we
* will interpret it in the same way as "word" for the wordMatch rule.
*/
-public class KeywordEqualityMatchingRule
+class KeywordEqualityMatchingRule
extends WordEqualityMatchingRule
{
/**
@@ -58,10 +55,9 @@
/**
* {@inheritDoc}
*/
- public void initializeMatchingRule(EqualityMatchingRuleCfg configuration)
- throws ConfigException, InitializationException
+ public Collection<String> getAllNames()
{
- // No initialization is required.
+ return Collections.singleton(getName());
}
@@ -72,6 +68,7 @@
* @return The common name for this matching rule, or <CODE>null</CODE> if
* it does not have a name.
*/
+ @Override
public String getName()
{
return EMR_KEYWORD_NAME;
@@ -84,6 +81,7 @@
*
* @return The OID for this matching rule.
*/
+ @Override
public String getOID()
{
return EMR_KEYWORD_OID;
--
Gitblit v1.10.0