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

neil_a_wilson
01.18.2007 a49dee3f75d6e2548e9114d9495655dd56f06973
opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java
@@ -98,7 +98,6 @@
  public void initializeMatchingRule(ConfigEntry configEntry)
         throws ConfigException, InitializationException
  {
    // No initialization is required.
  }
@@ -112,7 +111,6 @@
   */
  public String getName()
  {
    return AMR_DOUBLE_METAPHONE_NAME;
  }
@@ -125,7 +123,6 @@
   */
  public String getOID()
  {
    return AMR_DOUBLE_METAPHONE_OID;
  }
@@ -139,7 +136,6 @@
   */
  public String getDescription()
  {
    // There is no standard description for this matching rule.
    return AMR_DOUBLE_METAPHONE_DESCRIPTION;
  }
@@ -154,7 +150,6 @@
   */
  public String getSyntaxOID()
  {
    // Approximate matching is really only appropriate for DirectoryString
    // values.
    return SYNTAX_DIRECTORY_STRING_OID;
@@ -176,7 +171,6 @@
  public ByteString normalizeValue(ByteString value)
         throws DirectoryException
  {
    String valueString = value.stringValue();
    int length = valueString.length();
    if (length == 0)
@@ -1177,7 +1171,6 @@
   */
  public boolean approximatelyMatch(ByteString value1, ByteString value2)
  {
    // If the values have been normalized, then we just need to compare their
    // byte arrays.
    return Arrays.equals(value1.value(), value2.value());
@@ -1202,7 +1195,6 @@
  private boolean hasSubstring(String value, int start,
                               String substring)
  {
    try
    {
      // This can happen since a lot of the rules "look behind" and
@@ -1252,7 +1244,6 @@
   */
  private boolean isVowel(char c)
  {
    switch (c)
    {
      case 'A':
@@ -1280,7 +1271,6 @@
   */
  private boolean isSlavoGermanic(String s)
  {
    return (s.contains("W") || s.contains("K") || s.contains("CZ") ||
            s.contains("WITZ"));
  }
@@ -1298,7 +1288,6 @@
   */
  private boolean isGermanic(String s)
  {
    return (s.startsWith("VAN ") || s.startsWith("VON ") ||
            s.startsWith("SCH"));
  }