Пример #1
0
 private T unmarshal(XMLStreamReader xmlStreamReader)
     throws JAXBException, XMLStreamException, TransformerException {
   JaxbHelper jaxbHelper = JaxbHelper.get(clazz);
   Object obj = unmarshal(xmlStreamReader, jaxbHelper);
   return CastUtils.checkedCast(obj, clazz);
 }
Пример #2
0
 public T deserializeXml(String modelData) throws JAXBException {
   return CastUtils.as(getJaxbHelper().unmarshal(modelData), getJavaClass());
 }