|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.itrails.impl.dictionaries.AbstractMultiLangDictionary
public abstract class AbstractMultiLangDictionary
| Constructor Summary | |
|---|---|
AbstractMultiLangDictionary()
|
|
| Method Summary | |
|---|---|
void |
close()
closes the dictionary |
void |
createDictionary(java.lang.String dataFile)
crates a dictionary objects |
abstract void |
createDictionary(java.lang.String dataFile,
java.lang.String indexFile)
crates a dictionary objects, also performs the indexing |
PullOperator<java.lang.String> |
languages()
|
PullOperator<java.lang.String> |
lookUp(java.lang.String word)
Looks up the word in the dictionary |
PullOperator<java.lang.String> |
lookUp(java.lang.String word,
java.lang.String fromLanguage,
java.lang.String toLanguage)
|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMultiLangDictionary()
| Method Detail |
|---|
public void close()
Dictionary
close in interface Dictionary
public abstract void createDictionary(java.lang.String dataFile,
java.lang.String indexFile)
Dictionary
createDictionary in interface DictionarydataFile - -- the file that contains the word list that can be parsed by the dictinaryindexFile - -- the file where the indexes are to be createdpublic void createDictionary(java.lang.String dataFile)
Dictionary
createDictionary in interface DictionarydataFile - -- the file that contains the word list that can be parsed by the dictinarypublic PullOperator<java.lang.String> lookUp(java.lang.String word)
Dictionary
lookUp in interface Dictionaryword - -- the word to lookup for
public PullOperator<java.lang.String> lookUp(java.lang.String word,
java.lang.String fromLanguage,
java.lang.String toLanguage)
lookUp in interface Dictionaryword - -- the word to lookup forfromLanguage - -- the language of the wordtoLanguage - -- the language to be translated to
public PullOperator<java.lang.String> languages()
languages in interface Dictionarypublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||