org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorDumpProcessingOutputAction, JsonSerializationAction, RdfSerializationAction, SchemaUsageAnalyzerpublic interface DumpProcessingAction
extends org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor
EntityDocumentDumpProcessor. Additional methods provide a generic
interface for setting options and other auxiliary information that the action
might require.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getActionName() |
Returns the name of the action.
|
java.lang.String |
getDefaultActionName() |
Returns the default name for an action.
|
java.lang.String |
getReport() |
Returns a report message containing information about the files which
were generated.
|
boolean |
isReady() |
Returns true if the action is ready to process a dump.
|
boolean |
needsSites() |
Returns true if processing requires a
Sites object to be set. |
void |
setActionName(java.lang.String name) |
Sets the name of the action.
|
void |
setDumpInformation(java.lang.String project,
java.lang.String dateStamp) |
Provides the action with general information about the dump that is to be
processed.
|
boolean |
setOption(java.lang.String option,
java.lang.String value) |
Sets the options of the specified name to the given value.
|
void |
setSites(org.wikidata.wdtk.datamodel.interfaces.Sites sites) |
Sets the sites information to the given value.
|
boolean |
useStdOut() |
Returns true if this action will write results (not log messages) to
stdout.
|
boolean needsSites()
Sites object to be set.
This is the case for some operations that process site links.boolean isReady()
If this method is called on an action that is not ready, the action should print helpful information on the missing configuration to stdout as a side effect.
void setSites(org.wikidata.wdtk.datamodel.interfaces.Sites sites)
needsSites() is used to find out if this is actually needed.sites - the sites information for the data that will be processedboolean setOption(java.lang.String option,
java.lang.String value)
option - name of the option to be setvalue - the new value of the optionboolean useStdOut()
void setDumpInformation(java.lang.String project,
java.lang.String dateStamp)
project - the name of the project that the dump is fromdateStamp - the datestamp (YYYYMMDD) for the dumpjava.lang.String getReport()
void setActionName(java.lang.String name)
name - java.lang.String getActionName()
java.lang.String getDefaultActionName()
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage