public class JAXBHelper extends 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,
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,
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,
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,
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 IllegalArgumentException
JAXBContext
. If not, an exception will be
thrown.jaxbContext
- IllegalArgumentException
public static JAXBUnmarshaller getUnmarshaller(Unmarshaller jaxbUnmarshaller) throws IllegalArgumentException
JAXBUnmarshaller
. If not, an exception
will be thrown.jaxbUnmarshaller
- IllegalArgumentException
public static JAXBMarshaller getMarshaller(Marshaller jaxbMarshaller) throws IllegalArgumentException
JAXBMarshaller
. If not, an exception will be
thrown.jaxbMarshaller
- IllegalArgumentException
public static JAXBBinder getBinder(Binder jaxbBinder) throws IllegalArgumentException
JAXBBinder
. If not, an exception will be
thrown.jaxbBinder
- IllegalArgumentException
public static <T> T unwrap(JAXBContext jaxbContext, Class<T> clazz) throws IllegalArgumentException
T
- jaxbContext
- clazz
- IllegalArgumentException
JAXBContext
,
XMLContext
public static <T> T unwrap(Unmarshaller jaxbUnmarshaller, Class<T> clazz) throws IllegalArgumentException
T
- jaxbUnmarshaller
- clazz
- IllegalArgumentException
JAXBUnmarshaller
,
XMLUnmarshaller
public static <T> T unwrap(Marshaller jaxbMarshaller, Class<T> clazz) throws IllegalArgumentException
T
- jaxbMarshaller
- clazz
- IllegalArgumentException
JAXBMarshaller
,
XMLMarshaller
public static <T> T unwrap(Binder jaxbBinder, Class<T> clazz) throws IllegalArgumentException
T
- jaxbBinder
- clazz
- IllegalArgumentException
JAXBBinder
,
XMLBinder
Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.