Class AbstractReports

java.lang.Object
eu.europa.esig.dss.validation.reports.AbstractReports
Direct Known Subclasses:
CertificateReports, Reports

public abstract class AbstractReports extends Object
This class is a container for all reports generated by the validation process: diagnostic data, detailed report and simple report.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Checks if the XML of reports shall be validated
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractReports(eu.europa.esig.dss.diagnostic.jaxb.XmlDiagnosticData diagnosticDataJaxb, eu.europa.esig.dss.detailedreport.jaxb.XmlDetailedReport detailedReport)
    This is the default constructor to instantiate this container.
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.detailedreport.DetailedReport
    This method returns the wrapper to manipulate the JAXB DetailedReport
    eu.europa.esig.dss.detailedreport.jaxb.XmlDetailedReport
    This method returns the JAXB DetailedReport
    eu.europa.esig.dss.diagnostic.DiagnosticData
    This method returns the reference to the diagnostic data object generated during the validation process.
    eu.europa.esig.dss.diagnostic.jaxb.XmlDiagnosticData
    This method returns the JAXB DiagnosticData
    This method returns the XML representation of the JAXB DetailedReport String
    This method returns the XML representation of the JAXB DiagnosticData String
    abstract String
    This method returns an XML representation of the JAXB SimpleReport String
    void
    For debug purpose.
    void
    setValidateXml(boolean validateXml)
    Set if the XML shall be validated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • validateXml

      protected boolean validateXml
      Checks if the XML of reports shall be validated
  • Constructor Details

    • AbstractReports

      protected AbstractReports(eu.europa.esig.dss.diagnostic.jaxb.XmlDiagnosticData diagnosticDataJaxb, eu.europa.esig.dss.detailedreport.jaxb.XmlDetailedReport detailedReport)
      This is the default constructor to instantiate this container.
      Parameters:
      diagnosticDataJaxb - the JAXB XmlDiagnosticData
      detailedReport - the JAXB XmlDetailedReport
  • Method Details

    • setValidateXml

      public void setValidateXml(boolean validateXml)
      Set if the XML shall be validated
      Parameters:
      validateXml - if the XML reports shall be validated
    • getDiagnosticData

      public eu.europa.esig.dss.diagnostic.DiagnosticData getDiagnosticData()
      This method returns the reference to the diagnostic data object generated during the validation process.
      Returns:
      the wrapper DiagnosticData
    • getDetailedReport

      public eu.europa.esig.dss.detailedreport.DetailedReport getDetailedReport()
      This method returns the wrapper to manipulate the JAXB DetailedReport
      Returns:
      the wrapper DetailedReport
    • getDiagnosticDataJaxb

      public eu.europa.esig.dss.diagnostic.jaxb.XmlDiagnosticData getDiagnosticDataJaxb()
      This method returns the JAXB DiagnosticData
      Returns:
      the JAXB XmlDiagnosticData
    • getDetailedReportJaxb

      public eu.europa.esig.dss.detailedreport.jaxb.XmlDetailedReport getDetailedReportJaxb()
      This method returns the JAXB DetailedReport
      Returns:
      the JAXB XmlDetailedReport
    • getXmlSimpleReport

      public abstract String getXmlSimpleReport()
      This method returns an XML representation of the JAXB SimpleReport String
      Returns:
      a String with the XML content of the JAXB SimpleReport
    • getXmlDiagnosticData

      public String getXmlDiagnosticData()
      This method returns the XML representation of the JAXB DiagnosticData String
      Returns:
      a String with the XML content of the JAXB XmlDiagnosticData
      Throws:
      DSSReportException - - in case of marshalling error
    • getXmlDetailedReport

      public String getXmlDetailedReport() throws DSSReportException
      This method returns the XML representation of the JAXB DetailedReport String
      Returns:
      a String with the XML content of the JAXB XmlDetailedReport
      Throws:
      DSSReportException - - in case of marshalling error
    • print

      public void print()
      For debug purpose.