|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextmaven.dictionaries.BaseDictionary
textmaven.dictionaries.Dictionary
Constructor Summary | |
Dictionary()
|
Method Summary | |
abstract void |
close()
Performs close operations on the source. |
abstract boolean |
containsKey(java.lang.String key)
Checks whether a key is contained in the dictionary. |
protected IStemmer |
getStemmer()
|
abstract java.util.Iterator |
keys()
Returns all keys as specified in dictionary. |
java.util.Iterator |
keys(java.lang.String word)
Returns the keys which would be looked up when accessing the dictionary with the specified word. |
abstract void |
open()
Opens connection to datasource |
void |
setStemmer(IStemmer stemmer)
Sets stemmer to be used for lookup operations. |
abstract java.util.Iterator |
translations(java.lang.String word)
Retrieves available translations for a given word. |
Methods inherited from class textmaven.dictionaries.BaseDictionary |
getDescription, getId, getLanguage, setDescription, setId, setLanguage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface textmaven.dictionaries.IDictionary |
keysWithPrefix, translations |
Methods inherited from interface textmaven.dictionaries.IBaseDictionary |
getDescription, getId, getLanguage, setDescription, setId, setLanguage |
Constructor Detail |
public Dictionary()
Method Detail |
public abstract java.util.Iterator translations(java.lang.String word)
IDictionary
The word is retrieved from the dictionary as passed in as parameter. If no translation is found, an empty iterator.
translations
in interface IDictionary
word
- word to retrieve
Translation
public abstract boolean containsKey(java.lang.String key)
IDictionary
containsKey
in interface IDictionary
key
- word to lookup
public abstract java.util.Iterator keys()
IDictionary
keys
in interface IDictionary
public abstract void open()
IBaseDictionary
open
in interface IBaseDictionary
public abstract void close()
IBaseDictionary
close
in interface IBaseDictionary
public java.util.Iterator keys(java.lang.String word)
IDictionary
keys
in interface IDictionary
word
- word to be used for lookup
public void setStemmer(IStemmer stemmer)
stemmer
- stemmer to be usedprotected IStemmer getStemmer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |