|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.util.DumpInfo
public class DumpInfo
Default implementation of the IDumpInfo
interface.
Field Summary | |
---|---|
protected File |
dumpFile
|
protected ILanguage |
dumpLanguage
|
protected Set<String> |
namespaces
|
protected IWiktionaryDumpParser |
parser
|
protected int |
processedPages
|
Constructor Summary | |
---|---|
DumpInfo(File dumpFile,
IWiktionaryDumpParser parser)
Instanciate the dump info object for the given dump file and parser object. |
Method Summary | |
---|---|
void |
addNamespace(String namespace)
Add the given namespace to the list of namespaces defined for this dump file. |
File |
getDumpFile()
Returns the current Wiktionary XML dump file, which is being parsed. |
ILanguage |
getDumpLanguage()
Returns the language of the Wiktionary edition this dump file belongs to. |
Set<String> |
getNamespaces()
Returns a set containing all namespaces registered in the siteinfo header of the XML dump file. |
IWiktionaryDumpParser |
getParser()
Returns the Wiktionary dump parser instance that maintains this dump info object. |
int |
getProcessedPages()
Returns the number of pages in the dump file that have been processed. |
boolean |
hasNamespace(String namespace)
Returns true if the specified namespace has been
defined within the siteinfo header of the XML dump file. |
void |
incrementProcessedPages()
Increment the number of processed pages by one. |
void |
reset()
Reset the dump information, such the number of processed pages. |
void |
setDumpLanguage(ILanguage dumpLanguage)
Assign the specified dump language. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File dumpFile
protected ILanguage dumpLanguage
protected Set<String> namespaces
protected int processedPages
protected IWiktionaryDumpParser parser
Constructor Detail |
---|
public DumpInfo(File dumpFile, IWiktionaryDumpParser parser)
Method Detail |
---|
public void reset()
IDumpInfo
reset
in interface IDumpInfo
public File getDumpFile()
IDumpInfo
getDumpFile
in interface IDumpInfo
public ILanguage getDumpLanguage()
IDumpInfo
getDumpLanguage
in interface IDumpInfo
public void setDumpLanguage(ILanguage dumpLanguage)
public Set<String> getNamespaces()
IDumpInfo
getNamespaces
in interface IDumpInfo
public boolean hasNamespace(String namespace)
IDumpInfo
true
if the specified namespace has been
defined within the siteinfo header of the XML dump file.
hasNamespace
in interface IDumpInfo
public void addNamespace(String namespace)
public int getProcessedPages()
IDumpInfo
getProcessedPages
in interface IDumpInfo
public void incrementProcessedPages()
public IWiktionaryDumpParser getParser()
IDumpInfo
getParser
in interface IDumpInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |