public final class JAXBUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeUnmarshaller(Unmarshaller u) |
static Object |
convertWithAdapter(Object obj,
Class<?> adapterClass,
Annotation[] anns) |
static JAXBContext |
createJaxbContext(Set<Class<?>> classes,
Class<?>[] extraClass,
Map<String,Object> contextProperties) |
static XmlJavaTypeAdapter |
getAdapter(Class<?> objectClass,
Annotation[] anns) |
static Class<?> |
getTypeFromAdapter(XmlJavaTypeAdapter adapter,
Class<?> theType,
boolean boundType) |
static Class<?> |
getValueTypeFromAdapter(Class<?> expectedBoundType,
Class<?> defaultClass,
Annotation[] anns) |
static Object |
useAdapter(Object obj,
XmlJavaTypeAdapter typeAdapter,
boolean marshal) |
static Object |
useAdapter(Object obj,
XmlJavaTypeAdapter typeAdapter,
boolean marshal,
Object defaultValue) |
public static JAXBContext createJaxbContext(Set<Class<?>> classes, Class<?>[] extraClass, Map<String,Object> contextProperties)
public static void closeUnmarshaller(Unmarshaller u)
public static Object convertWithAdapter(Object obj, Class<?> adapterClass, Annotation[] anns)
public static Class<?> getValueTypeFromAdapter(Class<?> expectedBoundType, Class<?> defaultClass, Annotation[] anns)
public static XmlJavaTypeAdapter getAdapter(Class<?> objectClass, Annotation[] anns)
public static Class<?> getTypeFromAdapter(XmlJavaTypeAdapter adapter, Class<?> theType, boolean boundType)
public static Object useAdapter(Object obj, XmlJavaTypeAdapter typeAdapter, boolean marshal)
public static Object useAdapter(Object obj, XmlJavaTypeAdapter typeAdapter, boolean marshal, Object defaultValue)
Apache CXF