Class NoEditsMadeScrutinizer
- java.lang.Object
-
- org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
-
- org.openrefine.wikibase.qa.scrutinizers.NoEditsMadeScrutinizer
-
public class NoEditsMadeScrutinizer extends EditScrutinizer
-
-
Field Summary
Fields Modifier and Type Field Description static String
type
-
Fields inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
_fetcher, _store, connection, enableSlowChecks, manifest
-
-
Constructor Summary
Constructors Constructor Description NoEditsMadeScrutinizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchIsBeginning()
Called before an edit batch is scrutinized.void
batchIsFinished()
Method called once the edit batch has been read entirelyboolean
prepareDependencies()
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.void
scrutinize(ItemEdit edit)
Reads the candidate edit and emits warnings in the storevoid
scrutinize(MediaInfoEdit edit)
Reads the candidate edit and emits warnings in the store-
Methods inherited from class org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer
addIssue, addIssue, critical, findValues, getConstraintsRelatedId, important, info, infoNotFacetable, scrutinize, setApiConnection, setEnableSlowChecks, setFetcher, setManifest, setStore, warning
-
-
-
-
Field Detail
-
type
public static final String type
- See Also:
- Constant Field Values
-
-
Method Detail
-
prepareDependencies
public boolean prepareDependencies()
Description copied from class:EditScrutinizer
Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning()
.- Specified by:
prepareDependencies
in classEditScrutinizer
- Returns:
- false if any necessary dependency is missing, true otherwise.
-
batchIsBeginning
public void batchIsBeginning()
Description copied from class:EditScrutinizer
Called before an edit batch is scrutinized.- Overrides:
batchIsBeginning
in classEditScrutinizer
-
scrutinize
public void scrutinize(ItemEdit edit)
Description copied from class:EditScrutinizer
Reads the candidate edit and emits warnings in the store- Specified by:
scrutinize
in classEditScrutinizer
- Parameters:
edit
- : theItemEdit
to scrutinize
-
scrutinize
public void scrutinize(MediaInfoEdit edit)
Description copied from class:EditScrutinizer
Reads the candidate edit and emits warnings in the store- Specified by:
scrutinize
in classEditScrutinizer
- Parameters:
edit
- : theItemEdit
to scrutinize
-
batchIsFinished
public void batchIsFinished()
Description copied from class:EditScrutinizer
Method called once the edit batch has been read entirely- Overrides:
batchIsFinished
in classEditScrutinizer
-
-