|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.oxm.jaxb.JaxbUtils
public abstract class JaxbUtils
Generic utility methods for working with JAXB. Mainly for internal use within the framework.
Field Summary | |
---|---|
static int |
JAXB_1
|
static int |
JAXB_2
|
Constructor Summary | |
---|---|
JaxbUtils()
|
Method Summary | |
---|---|
static XmlMappingException |
convertJaxbException(javax.xml.bind.JAXBException ex)
Converts the given JAXBException to an appropriate exception from the
org.springframework.oxm hierarchy. |
static int |
getJaxbVersion()
Gets the major JAXB version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JAXB_1
public static final int JAXB_2
Constructor Detail |
---|
public JaxbUtils()
Method Detail |
---|
public static int getJaxbVersion()
(getJaxbVersion() <= JAXB_2)
.
JAXB_1
,
JAXB_2
public static XmlMappingException convertJaxbException(javax.xml.bind.JAXBException ex)
JAXBException
to an appropriate exception from the
org.springframework.oxm
hierarchy.
ex
- JAXBException
that occured
XmlMappingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |