| |
|
| java.lang.Object org.springframework.oxm.jaxb.JaxbUtils
JaxbUtils | abstract public class JaxbUtils (Code) | | Generic utility methods for working with JAXB. Mainly for internal use within the framework.
author: Arjen Poutsma since: 1.0.0 |
Field Summary | |
final public static int | JAXB_1 | final public static int | JAXB_2 |
JAXB_1 | final public static int JAXB_1(Code) | | |
JAXB_2 | final public static int JAXB_2(Code) | | |
convertJaxbException | public static XmlMappingException convertJaxbException(JAXBException ex)(Code) | | Converts the given JAXBException to an appropriate exception from the
org.springframework.oxm hierarchy.
Parameters: ex - JAXBException that occured the corresponding XmlMappingException |
getJaxbVersion | public static int getJaxbVersion()(Code) | | Gets the major JAXB version. This means we can do things like if (getJaxbVersion() <= JAXB_2) .
a code comparable to the JAXP_XX codes in this class See Also: JaxbUtils.JAXB_1 See Also: JaxbUtils.JAXB_2 |
|
|
|