org.apache.axiom.om.util.jaxb
Class JAXBUtils
java.lang.Object
org.apache.axiom.om.util.jaxb.JAXBUtils
public final class JAXBUtils
- extends Object
Contains utility methods that integrate JAXB with Axiom.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unmarshal
public static Object unmarshal(JAXBContext context,
OMElement element,
boolean cache)
throws JAXBException
- Unmarshal the given element.
- Parameters:
context
- the JAXB contextelement
- the element to unmarshalcache
- true
if the element must be preserved; false
if it may
be consumed during unmarshalling
- Returns:
- the JAXB object
- Throws:
JAXBException
- if an error occurs while unmarshalling
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.