Package 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 Deprecated Methods Modifier and Type Method Description static Object
unmarshal(JAXBContext context, OMElement element, boolean cache)
Deprecated.static Object
unmarshal(OMContainer container, JAXBContext context, UnmarshallerConfigurator configurator, boolean preserve)
Unmarshall the information item using JAXB.static <T> JAXBElement<T>
unmarshal(OMContainer container, JAXBContext context, UnmarshallerConfigurator configurator, Class<T> declaredType, boolean preserve)
Unmarshall the information item using JAXB.
-
-
-
Method Detail
-
unmarshal
public static Object unmarshal(JAXBContext context, OMElement element, boolean cache) throws JAXBException
Deprecated.- Throws:
JAXBException
-
unmarshal
public static Object unmarshal(OMContainer container, JAXBContext context, UnmarshallerConfigurator configurator, boolean preserve) throws JAXBException
Unmarshall the information item using JAXB.- Parameters:
container
- the document or element to unmarshallcontext
- the JAXB contextconfigurator
- custom unmarshaller settings to apply; may benull
preserve
- specifies whether the content of the information item should be preserved- Returns:
- the unmarshalled object
- Throws:
JAXBException
- if an error occurred while unmarshalling
-
unmarshal
public static <T> JAXBElement<T> unmarshal(OMContainer container, JAXBContext context, UnmarshallerConfigurator configurator, Class<T> declaredType, boolean preserve) throws JAXBException
Unmarshall the information item using JAXB.- Parameters:
container
- the document or element to unmarshallcontext
- the JAXB contextconfigurator
- custom unmarshaller settings to apply; may benull
declaredType
- a JAXB mapped class to hold the XML data.preserve
- specifies whether the content of the information item should be preserved- Returns:
- the unmarshalled object
- Throws:
JAXBException
- if an error occurred while unmarshalling
-
-