|
|||||||||||
| 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.XMLDictionary
XML backed dictionary.
| Field Summary |
| Fields inherited from interface textmaven.Globals |
C_ATTR_CLASSNAME, C_DICT_BASE_TYPE, C_DICT_TYPE, C_SERVER_BASE_TYPE, C_STEMMER_BASE_TYPE, C_WRITER_BASE_TYPE, CONFIG_FILE, DEFAULT_SENTENCES, DEFAULT_SEPARATOR, NEW_PARA, T_COL_DICTIONARY, T_COL_HOMONYMID, T_COL_ID, T_COL_LEXKEY, T_COL_TRANSLATION, T_COL_WORDCLASS, VERBOSE |
| Constructor Summary | |
XMLDictionary()
|
|
| Method Summary | |
void |
close()
Performs close operations on the source. |
boolean |
containsKey(java.lang.String key)
Checks whether a key is contained in the dictionary. |
java.lang.String |
getFileName()
Returns the name of the file backing the dictionary. |
java.util.Iterator |
keys()
Returns all keys as specified in dictionary. |
java.util.Iterator |
keysWithPrefix(java.lang.String prefix)
Returns all keys starting with the specified prefix |
void |
open()
Opens connection to datasource |
void |
setFileName(java.lang.String fileName)
|
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. |
void |
write(Translation t)
|
| Methods inherited from class textmaven.dictionaries.Dictionary |
getStemmer, keys, setStemmer |
| 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 |
keys |
| Methods inherited from interface textmaven.dictionaries.IBaseDictionary |
getDescription, getId, getLanguage, setDescription, setId, setLanguage |
| Constructor Detail |
public XMLDictionary()
| 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 Dictionarypublic boolean containsKey(java.lang.String key)
IDictionary
containsKey in interface IDictionarycontainsKey in class Dictionarypublic java.util.Iterator keys()
IDictionary
keys in interface IDictionarykeys in class Dictionarypublic void open()
IBaseDictionary
open in interface IBaseDictionaryopen in class Dictionarypublic void close()
IBaseDictionary
close in interface IBaseDictionaryclose in class Dictionarypublic java.util.Iterator translations()
IDictionary
translations in interface IDictionaryTranslationpublic java.util.Iterator keysWithPrefix(java.lang.String prefix)
IDictionary
keysWithPrefix in interface IDictionaryprefix -
public void write(Translation t)
write in interface IDictionaryWriterpublic void setFileName(java.lang.String fileName)
fileName - The mFileName to set.public java.lang.String getFileName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||