Package org.openrefine.wikibase.qa
Class EditInspector
- java.lang.Object
-
- org.openrefine.wikibase.qa.EditInspector
-
public class EditInspector extends Object
Runs a collection of edit scrutinizers on an edit batch.- Author:
- Antonin Delpeuch
-
-
Constructor Summary
Constructors Constructor Description EditInspector(QAWarningStore warningStore, Manifest manifest, boolean slowMode)
Builds an edit inspector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inspect(List<EntityEdit> editBatch, WikibaseSchema schema)
Inspect a batch of edits with the registered scrutinizersvoid
register(EditScrutinizer scrutinizer)
Adds a new scrutinizer to the inspector.
-
-
-
Constructor Detail
-
EditInspector
public EditInspector(QAWarningStore warningStore, Manifest manifest, boolean slowMode)
Builds an edit inspector.- Parameters:
warningStore
- the store in which to push any warnings generatedmanifest
- the configuration of the Wikibase instance to run onslowMode
- whether expensive checks should be run as well
-
-
Method Detail
-
register
public void register(EditScrutinizer scrutinizer)
Adds a new scrutinizer to the inspector. If any necessary dependency is missing, the scrutinizer will not be added.- Parameters:
scrutinizer
-
-
inspect
public void inspect(List<EntityEdit> editBatch, WikibaseSchema schema) throws ExecutionException
Inspect a batch of edits with the registered scrutinizers- Parameters:
editBatch
-- Throws:
ExecutionException
-
-