| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.codec.language.MatchRatingApproachEncoder
public class MatchRatingApproachEncoder
Match Rating Approach Phonetic Algorithm Developed by Western Airlines in 1977. This class is immutable and thread-safe.
| Constructor Summary | |
|---|---|
MatchRatingApproachEncoder()
 | 
|
| Method Summary | |
|---|---|
 Object | 
encode(Object pObject)
Encodes an Object using the Match Rating Approach algo.  | 
 String | 
encode(String name)
Encodes a String using the Match Rating Approach (MRA) algorithm.  | 
 boolean | 
isEncodeEquals(String name1,
                             String name2)
Determines if two names are homophonous via Match Rating Approach (MRA) algorithm.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MatchRatingApproachEncoder()
| Method Detail | 
|---|
public final Object encode(Object pObject)
                    throws EncoderException
encode in interface EncoderpObject - Object to encode
EncoderException - if the parameter supplied is not of type java.lang.Stringpublic final String encode(String name)
encode in interface StringEncodername - String object to encode
public boolean isEncodeEquals(String name1,
                              String name2)
encode(String).
name1 - First of the 2 strings (names) to comparename2 - Second of the 2 names to compare
true if the encodings are identical false otherwise.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||