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

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/schema/RelativeSubtreeSpecificationSyntax.java
@@ -22,12 +22,13 @@
 * 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 org.opends.server.types.DebugLogLevel;
import static org.opends.server.loggers.Error.logError;
import static org.opends.server.messages.SchemaMessages.*;
import static org.opends.server.schema.SchemaConstants.*;
@@ -56,11 +57,6 @@
 */
public final class RelativeSubtreeSpecificationSyntax extends
    AttributeSyntax {
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
    RelativeSubtreeSpecificationSyntax.class.getName();
  // The default equality matching rule for this syntax.
  private EqualityMatchingRule defaultEqualityMatchingRule;
@@ -137,8 +133,6 @@
   */
  public void initializeSyntax(ConfigEntry configEntry)
      throws ConfigException {
    assert debugEnter(CLASS_NAME, "initializeSyntax", String
        .valueOf(configEntry));
    defaultEqualityMatchingRule = DirectoryServer
        .getEqualityMatchingRule(EMR_OCTET_STRING_OID);
@@ -171,7 +165,6 @@
   * @return The common name for this attribute syntax.
   */
  public String getSyntaxName() {
    assert debugEnter(CLASS_NAME, "getSyntaxName");
    return SYNTAX_RELATIVE_SUBTREE_SPECIFICATION_NAME;
  }
@@ -182,7 +175,6 @@
   * @return The OID for this attribute syntax.
   */
  public String getOID() {
    assert debugEnter(CLASS_NAME, "getOID");
    return SYNTAX_RELATIVE_SUBTREE_SPECIFICATION_OID;
  }
@@ -193,7 +185,6 @@
   * @return A description for this attribute syntax.
   */
  public String getDescription() {
    assert debugEnter(CLASS_NAME, "getDescription");
    return SYNTAX_RELATIVE_SUBTREE_SPECIFICATION_DESCRIPTION;
  }
@@ -208,7 +199,6 @@
   *         default.
   */
  public EqualityMatchingRule getEqualityMatchingRule() {
    assert debugEnter(CLASS_NAME, "getEqualityMatchingRule");
    return defaultEqualityMatchingRule;
  }
@@ -223,7 +213,6 @@
   *         default.
   */
  public OrderingMatchingRule getOrderingMatchingRule() {
    assert debugEnter(CLASS_NAME, "getOrderingMatchingRule");
    return defaultOrderingMatchingRule;
  }
@@ -238,7 +227,6 @@
   *         default.
   */
  public SubstringMatchingRule getSubstringMatchingRule() {
    assert debugEnter(CLASS_NAME, "getSubstringMatchingRule");
    return defaultSubstringMatchingRule;
  }
@@ -253,7 +241,6 @@
   *         default.
   */
  public ApproximateMatchingRule getApproximateMatchingRule() {
    assert debugEnter(CLASS_NAME, "getApproximateMatchingRule");
    // There is no approximate matching rule by default.
    return null;
@@ -273,8 +260,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 {
@@ -282,7 +267,10 @@
      return true;
    } catch (DirectoryException e) {
      assert debugException(CLASS_NAME, "valueIsAcceptable", e);
      if (debugEnabled())
      {
        debugCought(DebugLogLevel.ERROR, e);
      }
      invalidReason.append(e.getErrorMessage());
      return false;