Class WiktionaryIndexMixin
java.lang.Object
org.getalp.dbnary.cli.mixins.WiktionaryIndexMixin
- All Implemented Interfaces:
WiktionaryPageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Pathprotected Fileprotected booleanprotected Stringprotected WiktionaryIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getFullXmlForPage(String key) getTextOfPage(String key) protected voidsetDumpFile(Path dump) voidsetLanguage(String language) Lets the owning command supply the language edition of the dump, needed to reach the corresponding wiktionary API when--fill-missing-pagesis set.
-
Field Details
-
wi
-
dump
-
dumpFile
-
language
-
fillMissingPages
protected boolean fillMissingPages
-
-
Constructor Details
-
WiktionaryIndexMixin
public WiktionaryIndexMixin()
-
-
Method Details
-
setDumpFile
-
setLanguage
Lets the owning command supply the language edition of the dump, needed to reach the corresponding wiktionary API when--fill-missing-pagesis set. Must be called (if at all) before the first page lookup. -
getDumpFile
-
getTextOfPageWithRedirects
- Specified by:
getTextOfPageWithRedirectsin interfaceWiktionaryPageSource
-
getTextOfPage
- Specified by:
getTextOfPagein interfaceWiktionaryPageSource
-
getFullXmlForPage
- Specified by:
getFullXmlForPagein interfaceWiktionaryPageSource
-
close
public void close()
-