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 Stringtype-
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 voidbatchIsBeginning()Called before an edit batch is scrutinized.voidbatchIsFinished()Method called once the edit batch has been read entirelybooleanprepareDependencies()Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer.voidscrutinize(ItemEdit edit)Reads the candidate edit and emits warnings in the storevoidscrutinize(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:EditScrutinizerPrepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called beforeEditScrutinizer.batchIsBeginning().- Specified by:
prepareDependenciesin classEditScrutinizer- Returns:
- false if any necessary dependency is missing, true otherwise.
-
batchIsBeginning
public void batchIsBeginning()
Description copied from class:EditScrutinizerCalled before an edit batch is scrutinized.- Overrides:
batchIsBeginningin classEditScrutinizer
-
scrutinize
public void scrutinize(ItemEdit edit)
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
edit- : theItemEditto scrutinize
-
scrutinize
public void scrutinize(MediaInfoEdit edit)
Description copied from class:EditScrutinizerReads the candidate edit and emits warnings in the store- Specified by:
scrutinizein classEditScrutinizer- Parameters:
edit- : theItemEditto scrutinize
-
batchIsFinished
public void batchIsFinished()
Description copied from class:EditScrutinizerMethod called once the edit batch has been read entirely- Overrides:
batchIsFinishedin classEditScrutinizer
-
-