tangentum technologies    
 

Deutsch

   
   
 
    UpperCase (Phonetix)
Phonetix
v0.2

com.tangentum.phonetix
Class UpperCase

java.lang.Object
  |
  +--com.tangentum.phonetix.PhoneticEncoder
        |
        +--com.tangentum.phonetix.UpperCase

public final class UpperCase
extends PhoneticEncoder

Encoder implementing upper-case copy of given words. Therefore no phonetic encoding takes place here.

Author:
Claus Engel
See Also:
Exact, LowerCase

Field Summary
 
Fields inherited from class com.tangentum.phonetix.PhoneticEncoder
EMPTY_KEYS
 
Constructor Summary
UpperCase()
          Constructs an upper-case copier without locale.
UpperCase(java.util.Locale locale)
          Constructs an upper-case copier with locale.
 
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
 

Constructor Detail

UpperCase

public UpperCase(java.util.Locale locale)
Constructs an upper-case copier with locale.

Parameters:
locale - the locale to use while generating upper-case characters.

UpperCase

public UpperCase()
Constructs an upper-case copier without locale.

Method Detail

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.


Phonetix
v0.2

Copyright © 1996-2003 Claus Engel. All Rights Reserved.