|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a data dictionary.
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()
Returns all translations available in the dictionary. |
java.util.Iterator |
translations(java.lang.String word)
Retrieves available translations for a given word. |
Methods inherited from interface textmaven.dictionaries.IBaseDictionary |
close, getDescription, getId, getLanguage, open, setDescription, setId, setLanguage |
Method Detail |
public java.util.Iterator translations(java.lang.String word)
The word is retrieved from the dictionary as passed in as parameter. If no translation is found, an empty iterator.
word
- word to retrieve
Translation
public java.util.Iterator translations()
translations
in interface IDictionarySource
Translation
public boolean containsKey(java.lang.String key)
key
- word to lookup
public java.util.Iterator keys()
public java.util.Iterator keys(java.lang.String word)
word
- word to be used for lookup
public java.util.Iterator keysWithPrefix(java.lang.String prefix)
prefix
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |