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

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/schema/RFC3672SubtreeSpecificationSyntax.java
@@ -22,13 +22,14 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.schema;
import static org.opends.server.loggers.Debug.debugEnter;
import static org.opends.server.loggers.Debug.debugException;
import static org.opends.server.loggers.debug.DebugLogger.debugCought;
import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
import static org.opends.server.loggers.Error.logError;
import org.opends.server.types.DebugLogLevel;
import static org.opends.server.messages.SchemaMessages.*;
import static org.opends.server.schema.SchemaConstants.*;
@@ -56,11 +57,6 @@
 */
public final class RFC3672SubtreeSpecificationSyntax extends
    AttributeSyntax {
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
    RFC3672SubtreeSpecificationSyntax.class.getName();
  // The default equality matching rule for this syntax.
  private EqualityMatchingRule defaultEqualityMatchingRule;
@@ -136,8 +132,6 @@
   */
  public void initializeSyntax(ConfigEntry configEntry)
      throws ConfigException {
    assert debugEnter(CLASS_NAME, "initializeSyntax", String
        .valueOf(configEntry));
    defaultEqualityMatchingRule = DirectoryServer
        .getEqualityMatchingRule(EMR_OCTET_STRING_OID);
@@ -170,7 +164,6 @@
   * @return The common name for this attribute syntax.
   */
  public String getSyntaxName() {
    assert debugEnter(CLASS_NAME, "getSyntaxName");
    return SYNTAX_RFC3672_SUBTREE_SPECIFICATION_NAME;
  }
@@ -181,7 +174,6 @@
   * @return The OID for this attribute syntax.
   */
  public String getOID() {
    assert debugEnter(CLASS_NAME, "getOID");
    return SYNTAX_RFC3672_SUBTREE_SPECIFICATION_OID;
  }
@@ -192,7 +184,6 @@
   * @return A description for this attribute syntax.
   */
  public String getDescription() {
    assert debugEnter(CLASS_NAME, "getDescription");
    return SYNTAX_RFC3672_SUBTREE_SPECIFICATION_DESCRIPTION;
  }
@@ -207,7 +198,6 @@
   *         default.
   */
  public EqualityMatchingRule getEqualityMatchingRule() {
    assert debugEnter(CLASS_NAME, "getEqualityMatchingRule");
    return defaultEqualityMatchingRule;
  }
@@ -222,7 +212,6 @@
   *         default.
   */
  public OrderingMatchingRule getOrderingMatchingRule() {
    assert debugEnter(CLASS_NAME, "getOrderingMatchingRule");
    return defaultOrderingMatchingRule;
  }
@@ -237,7 +226,6 @@
   *         default.
   */
  public SubstringMatchingRule getSubstringMatchingRule() {
    assert debugEnter(CLASS_NAME, "getSubstringMatchingRule");
    return defaultSubstringMatchingRule;
  }
@@ -252,7 +240,6 @@
   *         default.
   */
  public ApproximateMatchingRule getApproximateMatchingRule() {
    assert debugEnter(CLASS_NAME, "getApproximateMatchingRule");
    // There is no approximate matching rule by default.
    return null;
@@ -272,8 +259,6 @@
   */
  public boolean valueIsAcceptable(ByteString value,
                                   StringBuilder invalidReason) {
    assert debugEnter(CLASS_NAME, "valueIsAcceptable", String
        .valueOf(value), "java.lang.StringBuilder");
    // Use the subtree specification code to make this determination.
    try {
@@ -281,7 +266,10 @@
      return true;
    } catch (DirectoryException e) {
      assert debugException(CLASS_NAME, "valueIsAcceptable", e);
      if (debugEnabled())
      {
        debugCought(DebugLogLevel.ERROR, e);
      }
      invalidReason.append(e.getErrorMessage());
      return false;