Apache CXF API

org.apache.cxf.jaxrs.utils
Class JAXBUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.utils.JAXBUtils

public final class JAXBUtils
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertWithAdapter

public static Object convertWithAdapter(Object obj,
                                        Class<?> adapterClass,
                                        Annotation[] anns)

getValueTypeFromAdapter

public static Class<?> getValueTypeFromAdapter(Class<?> expectedBoundType,
                                               Class<?> defaultClass,
                                               Annotation[] anns)

getAdapter

public static XmlJavaTypeAdapter getAdapter(Class<?> objectClass,
                                            Annotation[] anns)

getTypeFromAdapter

public static Class<?> getTypeFromAdapter(XmlJavaTypeAdapter adapter,
                                          Class<?> theType,
                                          boolean boundType)

useAdapter

public static Object useAdapter(Object obj,
                                XmlJavaTypeAdapter typeAdapter,
                                boolean marshal)

useAdapter

public static Object useAdapter(Object obj,
                                XmlJavaTypeAdapter typeAdapter,
                                boolean marshal,
                                Object defaultValue)

Apache CXF API

Apache CXF