org.egothor.parser.filter
Class Phonetics

java.lang.Object
  extended by org.egothor.core.Filter
      extended by org.egothor.parser.filter.Phonetics
All Implemented Interfaces:
Sequence<Token>

public final class Phonetics
extends Filter

Author:
Leo Galambos

Field Summary
static int DDUP
          Description of the Field
 DoubleMetaphone dm
          Description of the Field
static int MPH
          Description of the Field
static int NONE
          Description of the Field
 Nysiis ny
          Description of the Field
static int NYSIIS
          Description of the Field
 
Fields inherited from class org.egothor.core.Filter
prev
 
Constructor Summary
Phonetics(Sequence<Token> arg0)
          Constructor for the Phonetics object.
 
Method Summary
 Token next()
          Return the next token.
 void setType(int type)
          Set the type of this phonetics filter.
 
Methods inherited from class org.egothor.core.Filter
action, getPrevTokenizer, setPrevTokenizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Description of the Field

See Also:
Constant Field Values

MPH

public static final int MPH
Description of the Field

See Also:
Constant Field Values

NYSIIS

public static final int NYSIIS
Description of the Field

See Also:
Constant Field Values

DDUP

public static final int DDUP
Description of the Field

See Also:
Constant Field Values

dm

public DoubleMetaphone dm
Description of the Field


ny

public Nysiis ny
Description of the Field

Constructor Detail

Phonetics

public Phonetics(Sequence<Token> arg0)
Constructor for the Phonetics object. Calling this constructor merely instantiates an object of the superclass.

TO-DO dm and ny attributes should be static.

Parameters:
arg0 - Description of the Parameter
Method Detail

setType

public void setType(int type)
Set the type of this phonetics filter.

Parameters:
type - The new type value
See Also:
NONE, MPH, NYSIIS, DDUP

next

public Token next()
Return the next token.

Specified by:
next in interface Sequence<Token>
Overrides:
next in class Filter
Returns:
the next token
See Also:
org.egothor.core.Tokenizer#next()