T - type of jaxb modelpublic class DefaultJAXBModelParser<T> extends Object implements JAXBModelParser<T>
JAXBContext| Constructor and Description |
|---|
DefaultJAXBModelParser(BeanContainer beanContainer) |
| Modifier and Type | Method and Description |
|---|---|
T |
readXML(String xmlContent,
Class<T> type)
Loads XML into memory and converts to a type
|
void |
validateXML(String xmlContent)
Validates xml content against resolved schema
|
public DefaultJAXBModelParser(BeanContainer beanContainer)
public void validateXML(String xmlContent) throws IOException, SAXException
validateXML in interface JAXBModelParser<T>xmlContent - xml content to validateIOException - content related exceptionSAXException - validation related execptionpublic T readXML(String xmlContent, Class<T> type) throws SAXException
readXML in interface JAXBModelParser<T>xmlContent - xml content to loadtype - type to convert xml toSAXException - parsing related execptionCopyright © 2005–2021 dozer. All rights reserved.