Package eu.europa.esig.dss.diagnostic
Class DiagnosticDataFacade
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractJaxbFacade<XmlDiagnosticData>
eu.europa.esig.dss.diagnostic.DiagnosticDataFacade
public class DiagnosticDataFacade extends AbstractJaxbFacade<XmlDiagnosticData>
-
Constructor Summary
Constructors Constructor Description DiagnosticDataFacade()
-
Method Summary
Modifier and Type Method Description void
generateSVG(XmlDiagnosticData diagnosticDataJaxb, Result result)
Generates a SVG representation of the diagnostic dataprotected 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 DiagnosticDataFacade
newFacade()
protected JAXBElement<XmlDiagnosticData>
wrap(XmlDiagnosticData diagnosticDataJaxb)
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
-
DiagnosticDataFacade
public DiagnosticDataFacade()
-
-
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<XmlDiagnosticData>
- 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<XmlDiagnosticData>
- 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<XmlDiagnosticData>
- Parameters:
diagnosticDataJaxb
- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateSVG
public void generateSVG(XmlDiagnosticData diagnosticDataJaxb, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a SVG representation of the diagnostic data
-