From e5783d9d5e678cb4b8d69d98162c26d2858bbe33 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 25 Jan 2007 01:59:52 +0000
Subject: [PATCH] Make a number of updates to schema processing, all of which fall under the umbrella of issue #1163.  The individual issues addressed include:

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaTestMatchingRule.java |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaTestMatchingRule.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaTestMatchingRule.java
index 14f5b57..16a3da6 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaTestMatchingRule.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/SchemaTestMatchingRule.java
@@ -47,6 +47,9 @@
 public class SchemaTestMatchingRule
        extends EqualityMatchingRule
 {
+  // Indicates whether this matching rule should be considered OBSOLETE.
+  private boolean isObsolete;
+
   // The matching rule that will do all the real work behind the scenes.
   private CaseIgnoreEqualityMatchingRule caseIgnoreMatchingRule;
 
@@ -76,6 +79,32 @@
 
     caseIgnoreMatchingRule = new CaseIgnoreEqualityMatchingRule();
     caseIgnoreMatchingRule.initializeMatchingRule(null);
+    isObsolete = false;
+  }
+
+
+
+  /**
+   * Creates a new instance of this matching rule with the provided information.
+   *
+   * @param  name        The name to use for this matching rule.
+   * @param  oid         The OID to use for this matching rule.
+   * @param  isObsolete  Indicates whether this matching rule should be marked
+   *                     OBSOLETE.
+   *
+   * @throws  Exception  If an unexpected problem occurs.
+   */
+  public SchemaTestMatchingRule(String name, String oid, boolean isObsolete)
+         throws Exception
+  {
+    super();
+
+    this.name       = name;
+    this.oid        = oid;
+    this.isObsolete = isObsolete;
+
+    caseIgnoreMatchingRule = new CaseIgnoreEqualityMatchingRule();
+    caseIgnoreMatchingRule.initializeMatchingRule(null);
   }
 
 
@@ -154,6 +183,16 @@
 
 
   /**
+   * {@inheritDoc}
+   */
+  public boolean isObsolete()
+  {
+    return isObsolete;
+  }
+
+
+
+  /**
    * Retrieves the normalized form of the provided value, which is best suited
    * for efficiently performing matching operations on that value.
    *

--
Gitblit v1.10.0