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

Jean-Noel Rouvignac
24.11.2015 8d21db36015f8560d9cd2bcee9817f2c0a07a386
opendj-server-legacy/src/main/java/org/opends/server/schema/DirectoryStringSyntax.java
@@ -56,22 +56,22 @@
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  // The default approximate matching rule for this syntax.
  /** The default approximate matching rule for this syntax. */
  private MatchingRule defaultApproximateMatchingRule;
  // Indicates whether we will allow zero-length values.
  /** Indicates whether we will allow zero-length values. */
  private boolean allowZeroLengthValues;
  // The reference to the configuration for this directory string syntax.
  /** The reference to the configuration for this directory string syntax. */
  private DirectoryStringAttributeSyntaxCfg currentConfig;
  // The default equality matching rule for this syntax.
  /** The default equality matching rule for this syntax. */
  private MatchingRule defaultEqualityMatchingRule;
  // The default ordering matching rule for this syntax.
  /** The default ordering matching rule for this syntax. */
  private MatchingRule defaultOrderingMatchingRule;
  // The default substring matching rule for this syntax.
  /** The default substring matching rule for this syntax. */
  private MatchingRule defaultSubstringMatchingRule;
@@ -86,11 +86,7 @@
    super();
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public void initializeSyntax(DirectoryStringAttributeSyntaxCfg configuration)
         throws ConfigException
@@ -142,8 +138,6 @@
    allowZeroLengthValues = currentConfig.isAllowZeroLengthValues();
  }
  /**
   * Performs any finalization that may be necessary for this attribute syntax.
   */
@@ -153,8 +147,6 @@
    currentConfig.removeDirectoryStringChangeListener(this);
  }
  /**
   * Retrieves the common name for this attribute syntax.
   *
@@ -166,8 +158,6 @@
    return SYNTAX_DIRECTORY_STRING_NAME;
  }
  /**
   * Retrieves the OID for this attribute syntax.
   *
@@ -179,8 +169,6 @@
    return SYNTAX_DIRECTORY_STRING_OID;
  }
  /**
   * Retrieves a description for this attribute syntax.
   *
@@ -192,8 +180,6 @@
    return SYNTAX_DIRECTORY_STRING_DESCRIPTION;
  }
  /**
   * Retrieves the default equality matching rule that will be used for
   * attributes with this syntax.
@@ -208,8 +194,6 @@
    return defaultEqualityMatchingRule;
  }
  /**
   * Retrieves the default ordering matching rule that will be used for
   * attributes with this syntax.
@@ -224,8 +208,6 @@
    return defaultOrderingMatchingRule;
  }
  /**
   * Retrieves the default substring matching rule that will be used for
   * attributes with this syntax.
@@ -240,8 +222,6 @@
    return defaultSubstringMatchingRule;
  }
  /**
   * Retrieves the default approximate matching rule that will be used for
   * attributes with this syntax.
@@ -256,8 +236,6 @@
    return defaultApproximateMatchingRule;
  }
  /**
   * Indicates whether the provided value is acceptable for use in an attribute
   * with this syntax.  If it is not, then the reason may be appended to the
@@ -286,8 +264,6 @@
    }
  }
  /**
   * Indicates whether zero-length values will be allowed.  This is technically
   * forbidden by the LDAP specification, but it was allowed in earlier versions
@@ -303,11 +279,7 @@
    return allowZeroLengthValues;
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public boolean isConfigurationChangeAcceptable(
                      DirectoryStringAttributeSyntaxCfg configuration,
@@ -317,11 +289,7 @@
    return true;
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public ConfigChangeResult applyConfigurationChange(
              DirectoryStringAttributeSyntaxCfg configuration)
@@ -332,22 +300,14 @@
    return new ConfigChangeResult();
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public boolean isBEREncodingRequired()
  {
    return false;
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public boolean isHumanReadable()
  {