Package org.openrefine.wikibase.qa
Class QAWarningStore
- java.lang.Object
-
- org.openrefine.wikibase.qa.QAWarningStore
-
public class QAWarningStore extends Object
A store for QA warnings which aggregates them by type.- Author:
- Antonin Delpeuch
-
-
Constructor Summary
Constructors Constructor Description QAWarningStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWarning(QAWarning warning)
Stores a warning, aggregating it with any existingQAWarning.Severity
getMaxSeverity()
Returns the maximum severity of the stored warnings (INFO if empty)int
getNbWarnings()
Returns the total number of warningsList<QAWarning>
getWarnings()
Returns the list of aggregated warnings, ordered by decreasing severity
-
-
-
Method Detail
-
addWarning
public void addWarning(QAWarning warning)
Stores a warning, aggregating it with any existing- Parameters:
warning
-
-
getWarnings
public List<QAWarning> getWarnings()
Returns the list of aggregated warnings, ordered by decreasing severity
-
getMaxSeverity
public QAWarning.Severity getMaxSeverity()
Returns the maximum severity of the stored warnings (INFO if empty)
-
getNbWarnings
public int getNbWarnings()
Returns the total number of warnings
-
-