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, Annotation[] anns)
           
static javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter getAdapter(Class<?> objectClass, Annotation[] anns)
           
static Class<?> getTypeFromAdapter(javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapter, Class<?> theType, boolean boundType)
           
static Class<?> getValueTypeFromAdapter(Class<?> expectedBoundType, Class<?> defaultClass, Annotation[] anns)
           
static Object useAdapter(Object obj, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter typeAdapter, boolean marshal)
           
static Object useAdapter(Object obj, javax.xml.bind.annotation.adapters.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,
                                        Annotation[] anns)

getValueTypeFromAdapter

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

getAdapter

public static javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter getAdapter(Class<?> objectClass,
                                                                               Annotation[] anns)

getTypeFromAdapter

public static Class<?> getTypeFromAdapter(javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapter,
                                          Class<?> theType,
                                          boolean boundType)

useAdapter

public static Object useAdapter(Object obj,
                                javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter typeAdapter,
                                boolean marshal)

useAdapter

public static Object useAdapter(Object obj,
                                javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter typeAdapter,
                                boolean marshal,
                                Object defaultValue)

Apache CXF API

Apache CXF