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.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Object` | `unmarshal(javax.xml.bind.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(javax.xml.bind.JAXBContext context,
                                         OMElement element,
                                         boolean cache)
                                  throws javax.xml.bind.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:
        `javax.xml.bind.JAXBException` - if an error occurs while unmarshalling

Copyright © The Apache Software Foundation. All Rights Reserved.