|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttextmaven.dictionaries.BaseDictionary
textmaven.dictionaries.Dictionary
textmaven.dictionaries.CompositeDictionary
textmaven.dictionaries.DictionaryUnion
Composite dictionary implementing a union search strategy, i.e. all dictionaries are searched and included in the result.
| Constructor Summary | |
DictionaryUnion()
|
|
| Method Summary | |
boolean |
containsKey(java.lang.String key)
Checks whether a key is contained in the dictionary. |
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. |
java.util.Iterator |
keysWithPrefix(java.lang.String prefix)
Returns all keys starting with the specified prefix |
java.util.Iterator |
translations(java.lang.String word)
Retrieves available translations for a given word. |
| Methods inherited from class textmaven.dictionaries.CompositeDictionary |
add, add, clone, close, createDictionary, getDictionaries, open, remove, removeAll, translations |
| Methods inherited from class textmaven.dictionaries.Dictionary |
getStemmer, setStemmer |
| Methods inherited from class textmaven.dictionaries.BaseDictionary |
getDescription, getId, getLanguage, setDescription, setId, setLanguage, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface textmaven.dictionaries.IBaseDictionary |
getDescription, getId, getLanguage, setDescription, setId, setLanguage |
| Constructor Detail |
public DictionaryUnion()
| Method Detail |
public java.util.Iterator translations(java.lang.String word)
IDictionaryThe word is retrieved from the dictionary as passed in as parameter. If no translation is found, an empty iterator.
translations in interface IDictionarytranslations in class CompositeDictionarypublic boolean containsKey(java.lang.String key)
IDictionary
containsKey in interface IDictionarycontainsKey in class CompositeDictionarypublic java.util.Iterator keys()
IDictionary
keys in interface IDictionarykeys in class CompositeDictionarypublic java.util.Iterator keys(java.lang.String word)
IDictionary
keys in interface IDictionarykeys in class Dictionarypublic java.util.Iterator keysWithPrefix(java.lang.String prefix)
IDictionary
prefix -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||