|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ar.com.ktulu.dict.strategies.Strategy
|
+--ar.com.ktulu.dict.strategies.SoundexStrategy
Matches words using the Soundex algorithm.
| Constructor Summary | |
SoundexStrategy()
|
|
| Method Summary | |
java.lang.String |
asSQL(java.lang.String word)
Support for SQL. |
java.util.ArrayList |
getMatches(java.lang.String word,
Key[] keys)
Returns an array of results for headwords matching word. |
| Methods inherited from class ar.com.ktulu.dict.strategies.Strategy |
getInfo, getMatches, getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SoundexStrategy()
| Method Detail |
public java.util.ArrayList getMatches(java.lang.String word,
Key[] keys)
Strategyword.
If there are no matches it must return null. And every element of
the vector returned has to be an instance of ar.com.ktulu.dict.Key.
getMatches in class StrategyKeypublic java.lang.String asSQL(java.lang.String word)
Strategyword against any
other word in the dictionary; e.g.: for the strategy "prefix" it
may return "UPPER(WORD) LIKE UPPER(word)||'%'", being
the first word the column name of the table in the database and the
second word the word to be searched.null, then if
getMatches(String, String, Statement) gets called it
will throw UnsupportedException.
asSQL in class Strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||