Class ReportItem

  • Direct Known Subclasses:
    CertificateReportItem

    public class ReportItem
    extends java.lang.Object
    Report item to be used for single failure or log message.
    • Field Detail

      • checkName

        private final java.lang.String checkName
      • message

        private final java.lang.String message
      • cause

        private final java.lang.Exception cause
    • Constructor Detail

      • ReportItem

        public ReportItem​(java.lang.String checkName,
                          java.lang.String message,
                          ReportItem.ReportItemStatus status)
        Create ReportItem instance.
        Parameters:
        checkName - String, which represents a check name during which report item occurred
        message - String with the exact report item message
        status - ReportItem.ReportItemStatus report item status that determines validation result
      • ReportItem

        public ReportItem​(java.lang.String checkName,
                          java.lang.String message,
                          java.lang.Exception cause,
                          ReportItem.ReportItemStatus status)
        Create ReportItem instance.
        Parameters:
        checkName - String, which represents a check name during which report item occurred
        message - String with the exact report item message
        cause - Exception, which caused this report item
        status - ReportItem.ReportItemStatus report item status that determines validation result
    • Method Detail

      • getCheckName

        public java.lang.String getCheckName()
        Get the check name related to this report item.
        Returns:
        String check name related to this report item.
      • getMessage

        public java.lang.String getMessage()
        Get the message related to this report item.
        Returns:
        String message related to this report item.
      • getExceptionCause

        public java.lang.Exception getExceptionCause()
        Get the exception, which caused this report item.
        Returns:
        Exception, which cause this report item.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns: