java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlSimpleReport>
eu.europa.esig.dss.simplereport.SimpleReportFacade
public class SimpleReportFacade
extends eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlSimpleReport>
Contains methods to generate SimpleReport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateHtmlReport(XmlSimpleReport simpleReport) Generates a Bootstrap 4 Simple reportvoidgenerateHtmlReport(XmlSimpleReport simpleReport, Result result) Generates a Bootstrap 4 Simple reportgenerateHtmlReport(String marshalledSimpleReport) Generates a Bootstrap 4 Simple reportvoidgenerateHtmlReport(String marshalledSimpleReport, Result result) Generates a Bootstrap 4 Simple reportvoidgeneratePdfReport(XmlSimpleReport simpleReport, Result result) Generates a PDF Simple reportvoidgeneratePdfReport(String marshalledSimpleReport, Result result) Generates a PDF Simple reportprotected jakarta.xml.bind.JAXBContextprotected Schemastatic SimpleReportFacadeInstantiates a newSimpleReportFacadeprotected jakarta.xml.bind.JAXBElement<XmlSimpleReport> wrap(XmlSimpleReport simpleReport) Methods inherited from class eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
SimpleReportFacade
protected SimpleReportFacade()Default constructor
-
-
Method Details
-
newFacade
Instantiates a newSimpleReportFacade- Returns:
SimpleReportFacade
-
getJAXBContext
protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBException- Specified by:
getJAXBContextin classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlSimpleReport>- Throws:
jakarta.xml.bind.JAXBException
-
getSchema
- Specified by:
getSchemain classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlSimpleReport>- Throws:
IOExceptionSAXException
-
wrap
- Specified by:
wrapin classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlSimpleReport>
-
generateHtmlReport
public String generateHtmlReport(XmlSimpleReport simpleReport) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a Bootstrap 4 Simple report- Parameters:
simpleReport-XmlSimpleReport- Returns:
String- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateHtmlReport
public void generateHtmlReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a Bootstrap 4 Simple report- Parameters:
simpleReport-XmlSimpleReportresult-Resultto write the report into- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleReport) throws IOException, TransformerException Generates a Bootstrap 4 Simple report- Parameters:
marshalledSimpleReport-Stringmarshalled report- Returns:
String- Throws:
IOException- if IOException occursTransformerException- if TransformerException occurs
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException Generates a Bootstrap 4 Simple report- Parameters:
marshalledSimpleReport-Stringmarshalled reportresult-Resultto write the report into- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occurs
-
generatePdfReport
public void generatePdfReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a PDF Simple report- Parameters:
simpleReport-XmlSimpleReportresult-Resultto write the report into- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generatePdfReport
public void generatePdfReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException Generates a PDF Simple report- Parameters:
marshalledSimpleReport-Stringmarshalled reportresult-Resultto write the report into- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occurs
-