Interface ValidationReportItem


public interface ValidationReportItem
Represents an element of a validation report.

A validation item holds a user message, has a severity (usually an error) and has a subject that specifies with which entity (or entities) the message is associated.

See Also:
  • Method Details

    • getMessage

      UserMessage getMessage()
      Returns a user-friendly message.
    • getSubject

      Returns the object that is associated with this item, null if no subject is associated with this item.
      See Also:
    • getSubjectForAdaptation

      ValidationReportItemSubjectForAdaptation getSubjectForAdaptation()
      Returns the dataset or record object associated with this item, null if this item is not associated with a node in an dataset or record.
      See Also:
    • getSubjectForTable

      Returns the table object associated with this item, null if this item is not associated with a table.
      See Also:
    • getSeverity

      Severity getSeverity()
      Returns the severity of this item, which is the severity of the user message.
      See Also:
    • isFatal

      boolean isFatal()
      Returns true if this item is a "fatal error".
    • isError

      boolean isError()
      Returns true if this item is an error.
    • isWarning

      boolean isWarning()
      Returns true if this item is a warning.
    • isInfo

      boolean isInfo()
      Returns true if this item is an informational message.
    • isOfSeverity

      boolean isOfSeverity(Severity aSeverity)
      Returns true if this item is of the specified severity.
    • isValidationMessageThresholdItem

      boolean isValidationMessageThresholdItem()
      Returns true if this item is related to the maximum number of validation messages to consider per constraint when performing a validation. That is, if true this item indicates that the maximum number of validation messages has been reached by a constraint.
      Since:
      5.9.0
      See Also: