Class PKIJaxbFacade


public class PKIJaxbFacade extends AbstractJaxbFacade<XmlPki>
This class is used to marshall/unmarshal Pki report
  • Constructor Details

    • PKIJaxbFacade

      protected PKIJaxbFacade()
      Default constructor
  • Method Details

    • newFacade

      public static PKIJaxbFacade newFacade()
      Creates a new instance of PKIJaxbFacade
      Returns:
      PKIJaxbFacade
    • getJAXBContext

      protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBException
      Description copied from class: AbstractJaxbFacade
      This method returns the instance of JAXBContext which can handle the JAXB Object
      Specified by:
      getJAXBContext in class AbstractJaxbFacade<XmlPki>
      Returns:
      an instance of JAXBContext
      Throws:
      jakarta.xml.bind.JAXBException - if an error occurred in the initialization process
    • getSchema

      protected Schema getSchema() throws IOException, SAXException
      Description copied from class: AbstractJaxbFacade
      This method returns an instance of Schema with the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.
      Specified by:
      getSchema in class AbstractJaxbFacade<XmlPki>
      Returns:
      an instance of Schema
      Throws:
      IOException - if an I/O error occurred in the initialization process
      SAXException - if a SAX error occurred in the initialization process
    • wrap

      protected jakarta.xml.bind.JAXBElement<XmlPki> wrap(XmlPki pki)
      Description copied from class: AbstractJaxbFacade
      This method wraps/envelops the JAXB object with a "root" element
      Specified by:
      wrap in class AbstractJaxbFacade<XmlPki>
      Parameters:
      pki - the JAXB object to be enveloped to marshall
      Returns:
      the enveloped JAXB object, ready to be marshalled