Exact (Phonetix)
com.tangentum.phonetix
Class Exact
java.lang.Object
|
+--com.tangentum.phonetix.PhoneticEncoder
|
+--com.tangentum.phonetix.Exact
- public final class Exact
- extends PhoneticEncoder
Encoder implementing exact copy of given words. Therefore
no phonetic encoding takes place here.
- Author:
- Claus Engel
- See Also:
LowerCase,
UpperCase
|
Constructor Summary |
Exact()
Constructs an exact copier. |
|
Method Summary |
java.lang.String |
generateKey(java.lang.String word)
Returns the encoding of the given word. |
java.lang.String[] |
generateKeys(java.lang.String word)
Returns the encoding of the given word. |
static void |
main(java.lang.String[] argv)
Test of algorithm with default constructed encoder.
|
java.lang.String |
toString()
Returns a String identifying the algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Exact
public Exact()
- Constructs an exact copier.
generateKeys
public java.lang.String[] generateKeys(java.lang.String word)
- Returns the encoding of the given word.
- Specified by:
generateKeys in class PhoneticEncoder
- Parameters:
word - the word to encode.
- Returns:
- an array with the encoding of the word.
This is never
null.
generateKey
public java.lang.String generateKey(java.lang.String word)
- Returns the encoding of the given word.
- Specified by:
generateKey in class PhoneticEncoder
- Parameters:
word - the word to encode.
- Returns:
- the encoding of the word. This is never
null.
toString
public java.lang.String toString()
- Returns a String identifying the algorithm.
- Overrides:
toString in class java.lang.Object
main
public static void main(java.lang.String[] argv)
- Test of algorithm with default constructed encoder.
The encoded arguments are printed to System.out.
Copyright © 1996-2003 Claus Engel. All Rights Reserved.
|