mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/schema/MatchingRuleSyntax.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.schema;
@@ -45,7 +45,9 @@
import org.opends.server.types.ErrorLogSeverity;
import org.opends.server.types.ResultCode;
import static org.opends.server.loggers.Debug.*;
import static org.opends.server.loggers.debug.DebugLogger.debugCought;
import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
import org.opends.server.types.DebugLogLevel;
import static org.opends.server.loggers.Error.*;
import static org.opends.server.messages.MessageHandler.*;
import static org.opends.server.messages.SchemaMessages.*;
@@ -62,11 +64,6 @@
public class MatchingRuleSyntax
       extends AttributeSyntax
{
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
       "org.opends.server.schema.MatchingRuleSyntax";
@@ -91,7 +88,6 @@
  {
    super();
    assert debugConstructor(CLASS_NAME);
  }
@@ -109,8 +105,6 @@
  public void initializeSyntax(ConfigEntry configEntry)
         throws ConfigException
  {
    assert debugEnter(CLASS_NAME, "initializeSyntax",
                      String.valueOf(configEntry));
    defaultEqualityMatchingRule =
         DirectoryServer.getEqualityMatchingRule(EMR_CASE_IGNORE_OID);
@@ -149,7 +143,6 @@
   */
  public String getSyntaxName()
  {
    assert debugEnter(CLASS_NAME, "getSyntaxName");
    return SYNTAX_MATCHING_RULE_NAME;
  }
@@ -163,7 +156,6 @@
   */
  public String getOID()
  {
    assert debugEnter(CLASS_NAME, "getOID");
    return SYNTAX_MATCHING_RULE_OID;
  }
@@ -177,7 +169,6 @@
   */
  public String getDescription()
  {
    assert debugEnter(CLASS_NAME, "getDescription");
    return SYNTAX_MATCHING_RULE_DESCRIPTION;
  }
@@ -194,7 +185,6 @@
   */
  public EqualityMatchingRule getEqualityMatchingRule()
  {
    assert debugEnter(CLASS_NAME, "getEqualityMatchingRule");
    return defaultEqualityMatchingRule;
  }
@@ -211,7 +201,6 @@
   */
  public OrderingMatchingRule getOrderingMatchingRule()
  {
    assert debugEnter(CLASS_NAME, "getOrderingMatchingRule");
    return defaultOrderingMatchingRule;
  }
@@ -228,7 +217,6 @@
   */
  public SubstringMatchingRule getSubstringMatchingRule()
  {
    assert debugEnter(CLASS_NAME, "getSubstringMatchingRule");
    return defaultSubstringMatchingRule;
  }
@@ -245,7 +233,6 @@
   */
  public ApproximateMatchingRule getApproximateMatchingRule()
  {
    assert debugEnter(CLASS_NAME, "getApproximateMatchingRule");
    // There is no approximate matching rule by default.
    return null;
@@ -268,8 +255,6 @@
  public boolean valueIsAcceptable(ByteString value,
                                   StringBuilder invalidReason)
  {
    assert debugEnter(CLASS_NAME, "valueIsAcceptable", String.valueOf(value),
                      "java.lang.StringBuilder");
    // Get string representations of the provided value using the provided form
@@ -439,7 +424,10 @@
      }
      catch (DirectoryException de)
      {
        assert debugException(CLASS_NAME, "valueIsAcceptable", de);
        if (debugEnabled())
        {
          debugCought(DebugLogLevel.ERROR, de);
        }
        invalidReason.append(de.getErrorMessage());
        return false;
@@ -477,7 +465,10 @@
          }
          catch (DirectoryException de)
          {
            assert debugException(CLASS_NAME, "valueIsAcceptable", de);
            if (debugEnabled())
            {
              debugCought(DebugLogLevel.ERROR, de);
            }
            invalidReason.append(de.getErrorMessage());
            return false;
@@ -497,7 +488,10 @@
          }
          catch (DirectoryException de)
          {
            assert debugException(CLASS_NAME, "valueIsAcceptable", de);
            if (debugEnabled())
            {
              debugCought(DebugLogLevel.ERROR, de);
            }
            invalidReason.append(de.getErrorMessage());
            return false;
@@ -531,7 +525,10 @@
              }
              catch (DirectoryException de)
              {
                assert debugException(CLASS_NAME, "valueIsAcceptable", de);
                if (debugEnabled())
                {
                  debugCought(DebugLogLevel.ERROR, de);
                }
                invalidReason.append(de.getErrorMessage());
                return false;
@@ -561,7 +558,10 @@
        }
        catch (DirectoryException de)
        {
          assert debugException(CLASS_NAME, "valueIsAcceptable", de);
          if (debugEnabled())
          {
            debugCought(DebugLogLevel.ERROR, de);
          }
          invalidReason.append(de.getErrorMessage());
          return false;
@@ -584,7 +584,10 @@
        }
        catch (DirectoryException de)
        {
          assert debugException(CLASS_NAME, "valueIsAcceptable", de);
          if (debugEnabled())
          {
            debugCought(DebugLogLevel.ERROR, de);
          }
          invalidReason.append(de.getErrorMessage());
          return false;
@@ -619,7 +622,10 @@
        }
        catch (DirectoryException de)
        {
          assert debugException(CLASS_NAME, "valueIsAcceptable", de);
          if (debugEnabled())
          {
            debugCought(DebugLogLevel.ERROR, de);
          }
          invalidReason.append(de.getErrorMessage());
          return false;
@@ -665,8 +671,6 @@
                                   int startPos)
          throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "readTokenName", String.valueOf(valueStr),
                      "java.lang.StringBuilder", String.valueOf(startPos));
    // Skip over any spaces at the beginning of the value.
@@ -728,8 +732,6 @@
                                      StringBuilder valueBuffer, int startPos)
          throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "readQuotedString", String.valueOf(valueStr),
                      "java.lang.StringBuilder", String.valueOf(startPos));
    // Skip over any spaces at the beginning of the value.
@@ -819,9 +821,6 @@
                                      StringBuilder lowerBuffer, int startPos)
          throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "readQuotedString", String.valueOf(valueStr),
                      String.valueOf(lowerStr), "java.lang.StringBuilder",
                      "java.lang.StringBuilder", String.valueOf(startPos));
    // Skip over any spaces at the beginning of the value.
@@ -905,8 +904,6 @@
                              int startPos)
          throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "readWOID", String.valueOf(lowerStr),
                      "java.lang.StringBuilder", String.valueOf(startPos));
@@ -1063,10 +1060,6 @@
                          CopyOnWriteArrayList<String> valueList, int startPos)
          throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "readExtraParameterValues",
                      String.valueOf(valueStr),
                      "java.util.concurrent.CopyOnWriteArrayList<String>",
                      String.valueOf(startPos));
    // Skip over any leading spaces.