org.apache.axiom.om.util.jaxb
Class JAXBUtils

java.lang.Object
  extended by org.apache.axiom.om.util.jaxb.JAXBUtils

public final class JAXBUtils
extends Object

Contains utility methods that integrate JAXB with Axiom.


Method Summary
static Object unmarshal(JAXBContext context, OMElement element, boolean cache)
          Unmarshal the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

unmarshal

public static Object unmarshal(JAXBContext context,
                               OMElement element,
                               boolean cache)
                        throws JAXBException
Unmarshal the given element.

Parameters:
context - the JAXB context
element - the element to unmarshal
cache - 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.