Interface JAXBModelParser<T>

  • Type Parameters:
    T - type of JAXB model
    All Known Implementing Classes:
    DefaultJAXBModelParser

    public interface JAXBModelParser<T>
    Parses XML content to a jaxb model
    • Method Detail

      • validateXML

        void validateXML​(String xmlContent)
                  throws IOException,
                         SAXException
        Validates xml content against resolved schema
        Parameters:
        xmlContent - xml content to validate
        Throws:
        IOException - content related exception
        SAXException - validation related execption
      • readXML

        T readXML​(String xmlContent,
                  Class<T> type)
           throws IOException,
                  SAXException
        Loads XML into memory and converts to a type
        Parameters:
        xmlContent - xml content to load
        type - type to convert xml to
        Returns:
        parsed XML to type
        Throws:
        IOException - content related exception
        SAXException - parsing related execption