public final class JAXBUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertWithAdapter(Object obj,
Class<?> adapterClass,
Annotation[] anns) |
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 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