Package org.openrefine.wikidata.qa
Class QAWarningStore
java.lang.Object
org.openrefine.wikidata.qa.QAWarningStore
A store for QA warnings which aggregates them by type.
- Author:
- Antonin Delpeuch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarning(QAWarning warning) Stores a warning, aggregating it with any existingReturns the maximum severity of the stored warnings (INFO if empty)intReturns the total number of warningsReturns the list of aggregated warnings, ordered by decreasing severity
-
Constructor Details
-
QAWarningStore
public QAWarningStore()
-
-
Method Details
-
addWarning
Stores a warning, aggregating it with any existing- Parameters:
warning-
-
getWarnings
Returns the list of aggregated warnings, ordered by decreasing severity -
getMaxSeverity
Returns the maximum severity of the stored warnings (INFO if empty) -
getNbWarnings
public int getNbWarnings()Returns the total number of warnings
-