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 booleanvalidateXml
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractReports(XmlDiagnosticData diagnosticDataJaxb, XmlDetailedReport detailedReport)This is the default constructor to instantiate this container.
-
Method Summary
Modifier and Type Method Description DetailedReportgetDetailedReport()This method returns the wrapper to manipulate the JAXB DetailedReportXmlDetailedReportgetDetailedReportJaxb()This method returns the JAXB DetailedReportDiagnosticDatagetDiagnosticData()This method returns the reference to the diagnostic data object generated during the validation process.XmlDiagnosticDatagetDiagnosticDataJaxb()This method returns the JAXB DiagnosticDataStringgetXmlDetailedReport()This method returns the XML representation of the JAXB DetailedReport StringStringgetXmlDiagnosticData()This method returns the XML representation of the JAXB DiagnosticData Stringabstract StringgetXmlSimpleReport()voidprint()For debug purpose.voidsetValidateXml(boolean validateXml)
-
-
-
Constructor Detail
-
AbstractReports
protected AbstractReports(XmlDiagnosticData diagnosticDataJaxb, XmlDetailedReport detailedReport)
This is the default constructor to instantiate this container.- Parameters:
diagnosticDataJaxb- the JAXBXmlDiagnosticDatadetailedReport- the JAXBXmlDetailedReport
-
-
Method Detail
-
setValidateXml
public void setValidateXml(boolean validateXml)
-
getDiagnosticData
public DiagnosticData getDiagnosticData()
This method returns the reference to the diagnostic data object generated during the validation process.- Returns:
- the wrapper
DiagnosticData
-
getDetailedReport
public DetailedReport getDetailedReport()
This method returns the wrapper to manipulate the JAXB DetailedReport- Returns:
- the wrapper
DetailedReport
-
getDiagnosticDataJaxb
public XmlDiagnosticData getDiagnosticDataJaxb()
This method returns the JAXB DiagnosticData- Returns:
- the JAXB
XmlDiagnosticData
-
getDetailedReportJaxb
public XmlDetailedReport getDetailedReportJaxb()
This method returns the JAXB DetailedReport- Returns:
- the JAXB
XmlDetailedReport
-
getXmlSimpleReport
public abstract String getXmlSimpleReport()
-
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.
-
-