|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.databinding.AbstractDataBinding
org.apache.cxf.databinding.AbstractInterceptorProvidingDataBinding
org.apache.cxf.jaxb.JAXBDataBinding
public class JAXBDataBinding
| Field Summary | |
|---|---|
static String |
JAXB_SCAN_PACKAGES
|
static String |
MTOM_THRESHOLD
|
static String |
SCHEMA_RESOURCE
|
static String |
UNWRAP_JAXB_ELEMENT
|
static String |
USE_JAXB_BRIDGE
|
| Fields inherited from class org.apache.cxf.databinding.AbstractInterceptorProvidingDataBinding |
|---|
inFaultInterceptors, inInterceptors, outFaultInterceptors, outInterceptors |
| Fields inherited from class org.apache.cxf.databinding.AbstractDataBinding |
|---|
mtomEnabled, mtomThreshold |
| Constructor Summary | |
|---|---|
JAXBDataBinding()
|
|
JAXBDataBinding(boolean q)
|
|
JAXBDataBinding(boolean qualified,
Map<String,Object> props)
|
|
JAXBDataBinding(Class<?>... classes)
|
|
JAXBDataBinding(JAXBContext context)
|
|
| Method Summary | ||
|---|---|---|
JAXBContext |
createJAXBContext(Set<Class<?>> classes)
|
|
JAXBContext |
createJAXBContext(Set<Class<?>> classes,
String defaultNs)
|
|
JAXBContextCache.CachedContextAndSchemas |
createJAXBContextAndSchemas(Set<Class<?>> classes,
String defaultNs)
|
|
|
createReader(Class<T> c)
|
|
WrapperHelper |
createWrapperHelper(Class<?> wrapperType,
QName wrapperName,
List<String> partNames,
List<String> elTypeNames,
List<Class<?>> partClasses)
|
|
|
createWriter(Class<T> c)
|
|
JAXBContext |
getContext()
|
|
Set<Class<?>> |
getContextClasses()
|
|
Map<String,Object> |
getContextProperties()
Return a map of properties. |
|
Class<?>[] |
getExtraClass()
|
|
Marshaller.Listener |
getMarshallerListener()
Returns the Marshaller.Listener that will be registered on the Marshallers |
|
Map<String,Object> |
getMarshallerProperties()
Return a map of properties. |
|
Class<?>[] |
getSupportedReaderFormats()
|
|
Class<?>[] |
getSupportedWriterFormats()
|
|
Unmarshaller.Listener |
getUnmarshallerListener()
Returns the Unmarshaller.Listener that will be registered on the Unmarshallers |
|
Map<String,Object> |
getUnmarshallerProperties()
Return a map of properties. |
|
ValidationEventHandler |
getValidationEventHandler()
|
|
void |
initialize(Service service)
Initialize the service info (i.e. |
|
boolean |
isUnwrapJAXBElement()
|
|
void |
setContext(JAXBContext ctx)
|
|
void |
setContextProperties(Map<String,Object> contextProperties)
Set a map of JAXB context properties. |
|
void |
setExtraClass(Class<?>[] userExtraClass)
|
|
void |
setMarshallerListener(Marshaller.Listener marshallerListener)
Sets the Marshaller.Listener that will be registered on the Marshallers |
|
void |
setMarshallerProperties(Map<String,Object> marshallerProperties)
Set a map of JAXB marshaller properties. |
|
void |
setUnmarshallerListener(Unmarshaller.Listener unmarshallerListener)
Sets the Unmarshaller.Listener that will be registered on the Unmarshallers |
|
void |
setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)
Set a map of JAXB unmarshaller properties. |
|
void |
setUnwrapJAXBElement(boolean unwrapJAXBElement)
|
|
void |
setValidationEventHandler(ValidationEventHandler validationEventHandler)
|
|
| Methods inherited from class org.apache.cxf.databinding.AbstractInterceptorProvidingDataBinding |
|---|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors |
| Methods inherited from class org.apache.cxf.databinding.AbstractDataBinding |
|---|
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getContextualNamespaceMap, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, setContextualNamespaceMap, setMtomEnabled, setMtomThreshold, setNamespaceMap, setSchemas, updateSchemaLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cxf.interceptor.InterceptorProvider |
|---|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors |
| Field Detail |
|---|
public static final String SCHEMA_RESOURCE
public static final String MTOM_THRESHOLD
public static final String UNWRAP_JAXB_ELEMENT
public static final String USE_JAXB_BRIDGE
public static final String JAXB_SCAN_PACKAGES
| Constructor Detail |
|---|
public JAXBDataBinding()
public JAXBDataBinding(boolean q)
public JAXBDataBinding(Class<?>... classes)
throws JAXBException
JAXBException
public JAXBDataBinding(boolean qualified,
Map<String,Object> props)
throws JAXBException
JAXBExceptionpublic JAXBDataBinding(JAXBContext context)
| Method Detail |
|---|
public JAXBContext getContext()
public final void setContext(JAXBContext ctx)
public <T> DataWriter<T> createWriter(Class<T> c)
createWriter in interface DataBindingpublic Class<?>[] getSupportedWriterFormats()
getSupportedWriterFormats in interface DataBindingpublic <T> DataReader<T> createReader(Class<T> c)
createReader in interface DataBindingpublic Class<?>[] getSupportedReaderFormats()
getSupportedReaderFormats in interface DataBindingpublic void initialize(Service service)
DataBinding
initialize in interface DataBindingpublic void setExtraClass(Class<?>[] userExtraClass)
public Class<?>[] getExtraClass()
public JAXBContext createJAXBContext(Set<Class<?>> classes)
throws JAXBException
JAXBException
public JAXBContext createJAXBContext(Set<Class<?>> classes,
String defaultNs)
throws JAXBException
JAXBException
public JAXBContextCache.CachedContextAndSchemas createJAXBContextAndSchemas(Set<Class<?>> classes,
String defaultNs)
throws JAXBException
JAXBExceptionpublic Set<Class<?>> getContextClasses()
public Map<String,Object> getContextProperties()
public void setContextProperties(Map<String,Object> contextProperties)
contextProperties - map of properties.public Map<String,Object> getMarshallerProperties()
public void setMarshallerProperties(Map<String,Object> marshallerProperties)
marshallerProperties - map of properties.public Map<String,Object> getUnmarshallerProperties()
public void setUnmarshallerProperties(Map<String,Object> unmarshallerProperties)
unmarshallerProperties - map of properties.public Unmarshaller.Listener getUnmarshallerListener()
public void setUnmarshallerListener(Unmarshaller.Listener unmarshallerListener)
unmarshallerListener - public Marshaller.Listener getMarshallerListener()
public void setMarshallerListener(Marshaller.Listener marshallerListener)
marshallerListener - public ValidationEventHandler getValidationEventHandler()
public void setValidationEventHandler(ValidationEventHandler validationEventHandler)
public boolean isUnwrapJAXBElement()
public void setUnwrapJAXBElement(boolean unwrapJAXBElement)
public WrapperHelper createWrapperHelper(Class<?> wrapperType,
QName wrapperName,
List<String> partNames,
List<String> elTypeNames,
List<Class<?>> partClasses)
createWrapperHelper in interface WrapperCapableDatabinding
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||