Class QAWarningStore

java.lang.Object
org.openrefine.wikidata.qa.QAWarningStore

public class QAWarningStore extends Object
A store for QA warnings which aggregates them by type.
Author:
Antonin Delpeuch
  • Constructor Details

    • QAWarningStore

      public QAWarningStore()
  • Method Details

    • 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