Examples of UnmarshallerAdapter


Examples of org.apache.axiom.util.jaxb.UnmarshallerAdapter

     * @return the JAXB object
     * @throws JAXBException
     *             if an error occurs while unmarshalling
     */
    public static Object unmarshal(JAXBContext context, OMElement element, boolean cache) throws JAXBException {
        UnmarshallerAdapter adapter = org.apache.axiom.util.jaxb.JAXBUtils.getUnmarshallerAdapter(
                element.getXMLStreamReader(cache));
        Unmarshaller unmarshaller = context.createUnmarshaller();
        unmarshaller.setAttachmentUnmarshaller(adapter.getAttachmentUnmarshaller());
        return unmarshaller.unmarshal(adapter.getReader());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.