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>
Contains methods to generate SimpleReport
-
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)
Generates a Bootstrap 3 Simple reportString
generateHtmlBootstrap3Report(String marshalledSimpleReport)
Generates a Bootstrap 3 Simple reportvoid
generateHtmlBootstrap3Report(String marshalledSimpleReport, Result result)
Generates a Bootstrap 3 Simple reportString
generateHtmlReport(XmlSimpleReport simpleReport)
Generates a Bootstrap 4 Simple reportvoid
generateHtmlReport(XmlSimpleReport simpleReport, Result result)
Generates a Bootstrap 4 Simple reportString
generateHtmlReport(String marshalledSimpleReport)
Generates a Bootstrap 4 Simple reportvoid
generateHtmlReport(String marshalledSimpleReport, Result result)
Generates a Bootstrap 4 Simple reportvoid
generatePdfReport(XmlSimpleReport simpleReport, Result result)
Generates a PDF Simple reportvoid
generatePdfReport(String marshalledSimpleReport, Result result)
Generates a PDF Simple reportprotected 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()
Instantiates a newSimpleReportFacade
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
Instantiates a newSimpleReportFacade
- Returns:
SimpleReportFacade
-
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- Parameters:
simpleReport
-XmlSimpleReport
- Returns:
String
- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public void generateHtmlReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 4 Simple report- Parameters:
simpleReport
-XmlSimpleReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleReport) throws IOException, TransformerExceptionGenerates a Bootstrap 4 Simple report- Parameters:
marshalledSimpleReport
-String
marshalled report- Returns:
String
- Throws:
IOException
- if IOException occursTransformerException
- if TransformerException occurs
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 4 Simple report- Parameters:
marshalledSimpleReport
-String
marshalled reportresult
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occurs
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(XmlSimpleReport simpleReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Simple report- Parameters:
simpleReport
-XmlSimpleReport
- Returns:
String
- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Simple report- Parameters:
simpleReport
-XmlSimpleReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(String marshalledSimpleReport) throws IOException, TransformerExceptionGenerates a Bootstrap 3 Simple report- Parameters:
marshalledSimpleReport
-String
marshalled report- Returns:
String
- Throws:
IOException
- if IOException occursTransformerException
- if TransformerException occurs
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(String marshalledSimpleReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 3 Simple report- Parameters:
marshalledSimpleReport
-String
marshalled reportresult
-Result
to 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, JAXBExceptionGenerates a PDF Simple report- Parameters:
simpleReport
-XmlSimpleReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generatePdfReport
public void generatePdfReport(String marshalledSimpleReport, Result result) throws IOException, TransformerExceptionGenerates a PDF Simple report- Parameters:
marshalledSimpleReport
-String
marshalled reportresult
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occurs
-