Package eu.europa.esig.dss.simplereport
Class SimpleReportFacade
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractJaxbFacade<XmlSimpleReport>
eu.europa.esig.dss.simplereport.SimpleReportFacade
public class SimpleReportFacade extends AbstractJaxbFacade<XmlSimpleReport>
-
Constructor Summary
Constructors Constructor Description SimpleReportFacade()
-
Method Summary
Modifier and Type Method Description String
generateHtmlBootstrap3Report(XmlSimpleReport simpleReport)
Generates a Bootstrap 3 Simple reportvoid
generateHtmlBootstrap3Report(XmlSimpleReport simpleReport, Result result)
String
generateHtmlBootstrap3Report(String marshalledSimpleReport)
void
generateHtmlBootstrap3Report(String marshalledSimpleReport, Result result)
String
generateHtmlReport(XmlSimpleReport simpleReport)
Generates a Bootstrap 4 Simple reportvoid
generateHtmlReport(XmlSimpleReport simpleReport, Result result)
String
generateHtmlReport(String marshalledSimpleReport)
void
generateHtmlReport(String marshalledSimpleReport, Result result)
void
generatePdfReport(XmlSimpleReport simpleReport, Result result)
Generates a PDF Simple reportvoid
generatePdfReport(String marshalledSimpleReport, Result result)
protected JAXBContext
getJAXBContext()
This method returns the instance ofJAXBContext
which can handle the JAXB Objectprotected Schema
getSchema()
This method returns an instance ofSchema
with the loaded XML Schema(s).static SimpleReportFacade
newFacade()
protected JAXBElement<XmlSimpleReport>
wrap(XmlSimpleReport simpleReport)
This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
SimpleReportFacade
public SimpleReportFacade()
-
-
Method Details
-
newFacade
-
getJAXBContext
Description copied from class:AbstractJaxbFacade
This method returns the instance ofJAXBContext
which can handle the JAXB Object- Specified by:
getJAXBContext
in classAbstractJaxbFacade<XmlSimpleReport>
- Returns:
- an instance of
JAXBContext
- Throws:
JAXBException
- if an error occurred in the initialization process
-
getSchema
Description copied from class:AbstractJaxbFacade
This method returns an instance ofSchema
with the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchema
in classAbstractJaxbFacade<XmlSimpleReport>
- Returns:
- an instance of
Schema
- Throws:
IOException
- if an I/O error occurred in the initialization processSAXException
- if a SAX error occurred in the initialization process
-
wrap
Description copied from class:AbstractJaxbFacade
This method wraps/envelops the JAXB object with a "root" element- Specified by:
wrap
in classAbstractJaxbFacade<XmlSimpleReport>
- Parameters:
simpleReport
- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateHtmlReport
public String generateHtmlReport(XmlSimpleReport simpleReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 4 Simple report -
generateHtmlReport
public void generateHtmlReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBException -
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleReport) throws IOException, TransformerException- Throws:
IOException
TransformerException
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException- Throws:
IOException
TransformerException
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(XmlSimpleReport simpleReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Simple report -
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBException -
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(String marshalledSimpleReport) throws IOException, TransformerException- Throws:
IOException
TransformerException
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(String marshalledSimpleReport, Result result) throws IOException, TransformerException- Throws:
IOException
TransformerException
-
generatePdfReport
public void generatePdfReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a PDF Simple report -
generatePdfReport
public void generatePdfReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException- Throws:
IOException
TransformerException
-