|
||||||||||
| 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.SuffixStrategy
Matches words using the work searched for as a suffix of the words in the database.
| Constructor Summary | |
SuffixStrategy()
|
|
| Method Summary | |
protected 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 SuffixStrategy()
| 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 StrategyKeyprotected 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 | |||||||||