Class DaitchMokotoffSoundex.Rule

java.lang.Object
org.apache.commons.codec.language.DaitchMokotoffSoundex.Rule
Enclosing class:
DaitchMokotoffSoundex

private static final class DaitchMokotoffSoundex.Rule extends Object
Inner class for storing rules.
  • Field Details

    • pattern

      private final String pattern
    • replacementAtStart

      private final String[] replacementAtStart
    • replacementBeforeVowel

      private final String[] replacementBeforeVowel
    • replacementDefault

      private final String[] replacementDefault
  • Constructor Details

    • Rule

      protected Rule(String pattern, String replacementAtStart, String replacementBeforeVowel, String replacementDefault)
  • Method Details

    • getPatternLength

      public int getPatternLength()
    • getReplacements

      public String[] getReplacements(String context, boolean atStart)
    • isVowel

      private boolean isVowel(char ch)
    • matches

      public boolean matches(String context)
    • toString

      public String toString()
      Overrides:
      toString in class Object