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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TreadXML(String xmlContent, Class<T> type)Loads XML into memory and converts to a typevoidvalidateXML(String xmlContent)Validates xml content against resolved schema
-
-
-
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 exceptionSAXException- 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 loadtype- type to convert xml to- Returns:
- parsed XML to type
- Throws:
IOException- content related exceptionSAXException- parsing related execption
-
-