|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWiktionaryCollection
Models a list of multiple Wiktionary language editions (e.g., the English and the German Wiktionary editions). Using the querying and iteration methods provided by this interface, the information from all attached language editions may be processed at once and their information can be combined.
Method Summary | |
---|---|
void |
addEdition(IWiktionaryEdition edition)
Add the specified Wiktionary language edition to the current collection. |
Iterable<IWiktionaryEdition> |
getEditions()
Returns a list of all Wiktionary langauge editions in this collection. |
IWiktionaryPage |
getPageForId(long id,
ILanguage entryLanguage)
Returns the page of the specified Wiktionary language edition with the given unique id. |
List<IWiktionaryPage> |
getPagesForId(long id)
Returns the pages with the given (edition-specific) unique id. |
List<IWiktionaryPage> |
getPagesForWord(String word)
Returns all pages with the given title. |
List<IWiktionaryPage> |
getPagesForWord(String word,
IWiktionaryPageFilter filter)
Returns all pages with the given title. |
IWiktionarySense |
getSenseForKey(String key,
ILanguage language)
Returns the word sense with the given (edition-specific) unique id. |
void |
removeEdition(IWiktionaryEdition edition)
Removes the specified edition from the collection. |
Methods inherited from interface de.tudarmstadt.ukp.jwktl.api.IWiktionary |
---|
close, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getEntriesForWord, getEntriesForWord, getEntriesForWord, getEntriesForWord, getPagesForWord, getPagesForWord, getSensesForWord, getSensesForWord, getSensesForWord, getSensesForWord, isClosed |
Method Detail |
---|
void addEdition(IWiktionaryEdition edition)
Iterable<IWiktionaryEdition> getEditions()
void removeEdition(IWiktionaryEdition edition)
IWiktionary.close()
method.
List<IWiktionaryPage> getPagesForId(long id)
IllegalStateException
- if the connection has already been closed.
WiktionaryException
- upon database errors.IWiktionaryPage getPageForId(long id, ILanguage entryLanguage)
IllegalStateException
- if the connection has already been closed.
WiktionaryException
- upon database errors.List<IWiktionaryPage> getPagesForWord(String word)
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching.
IllegalStateException
- if the connection has already been closed.
WiktionaryException
- upon database errors.List<IWiktionaryPage> getPagesForWord(String word, IWiktionaryPageFilter filter)
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching. Using the given
IWiktionaryPageFilter
, unwanted pages can be ignored.
IllegalStateException
- if the connection has already been closed.
WiktionaryException
- upon database errors.IWiktionarySense getSenseForKey(String key, ILanguage language)
IllegalStateException
- if the connection has already been closed.
WiktionaryException
- upon database errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |