public class JAXBHelper
extends java.lang.Object
Constructor and Description |
---|
JAXBHelper() |
Modifier and Type | Method and Description |
---|---|
static JAXBBinder |
getBinder(Binder jaxbBinder)
Return the EclipseLink implementation of Binder.
|
static JAXBContext |
getJAXBContext(JAXBContext jaxbContext)
Return the EclipseLink implementation of JAXBContext.
|
static JAXBMarshaller |
getMarshaller(Marshaller jaxbMarshaller)
Return the EclipseLink implementation of Marshaller.
|
static JAXBUnmarshaller |
getUnmarshaller(Unmarshaller jaxbUnmarshaller)
Return the EclipseLink implementation of Unmarshaller.
|
static <T> T |
unwrap(Binder jaxbBinder,
java.lang.Class<T> clazz)
Unwraps a given Binder resulting in an EclipseLink JAXBBinder, or the EclipseLink
JAXBBinder's underlying XMLBinder.
|
static <T> T |
unwrap(JAXBContext jaxbContext,
java.lang.Class<T> clazz)
Unwraps a given JAXBContext resulting in an EclipseLink JAXBContext, or the EclipseLink
JAXBContext's underlying XMLContext.
|
static <T> T |
unwrap(Marshaller jaxbMarshaller,
java.lang.Class<T> clazz)
Unwraps a given Marshaller resulting in an EclipseLink JAXBMarshaller, or the EclipseLink
JAXBMarshaller's underlying XMLMarshaller.
|
static <T> T |
unwrap(Unmarshaller jaxbUnmarshaller,
java.lang.Class<T> clazz)
Unwraps a given Unmarshaller resulting in an EclipseLink JAXBUnmarshaller, or the EclipseLink
JAXBUnmarshaller's underlying XMLUnmarshaller.
|
public static JAXBContext getJAXBContext(JAXBContext jaxbContext) throws java.lang.IllegalArgumentException
JAXBContext
. If not, an exception will be
thrown.jaxbContext
- java.lang.IllegalArgumentException
public static JAXBUnmarshaller getUnmarshaller(Unmarshaller jaxbUnmarshaller) throws java.lang.IllegalArgumentException
JAXBUnmarshaller
. If not, an exception
will be thrown.jaxbUnmarshaller
- java.lang.IllegalArgumentException
public static JAXBMarshaller getMarshaller(Marshaller jaxbMarshaller) throws java.lang.IllegalArgumentException
JAXBMarshaller
. If not, an exception will be
thrown.jaxbMarshaller
- java.lang.IllegalArgumentException
public static JAXBBinder getBinder(Binder jaxbBinder) throws java.lang.IllegalArgumentException
JAXBBinder
. If not, an exception will be
thrown.jaxbBinder
- java.lang.IllegalArgumentException
public static <T> T unwrap(JAXBContext jaxbContext, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- jaxbContext
- clazz
- java.lang.IllegalArgumentException
JAXBContext
,
XMLContext
public static <T> T unwrap(Unmarshaller jaxbUnmarshaller, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- jaxbUnmarshaller
- clazz
- java.lang.IllegalArgumentException
JAXBUnmarshaller
,
XMLUnmarshaller
public static <T> T unwrap(Marshaller jaxbMarshaller, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- jaxbMarshaller
- clazz
- java.lang.IllegalArgumentException
JAXBMarshaller
,
XMLMarshaller
public static <T> T unwrap(Binder jaxbBinder, java.lang.Class<T> clazz) throws java.lang.IllegalArgumentException
T
- jaxbBinder
- clazz
- java.lang.IllegalArgumentException
JAXBBinder
,
XMLBinder