|
|||||||||||
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.DictionarySequence
Composite dictionary implementing a sequential access strategy. All dictionaries are sequential searched until a match was found.
Constructor Summary | |
DictionarySequence()
|
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 DictionarySequence()
Method Detail |
public 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
translations
in class CompositeDictionary
public boolean containsKey(java.lang.String key)
IDictionary
containsKey
in interface IDictionary
containsKey
in class CompositeDictionary
public java.util.Iterator keys()
IDictionary
keys
in interface IDictionary
keys
in class CompositeDictionary
public java.util.Iterator keys(java.lang.String word)
IDictionary
keys
in interface IDictionary
keys
in class Dictionary
public 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 |