public class JAXBDataBinding
extends org.apache.cxf.databinding.AbstractInterceptorProvidingDataBinding
implements org.apache.cxf.databinding.WrapperCapableDatabinding, org.apache.cxf.interceptor.InterceptorProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
JAXB_SCAN_PACKAGES |
static String |
MTOM_THRESHOLD |
static String |
READER_VALIDATION_EVENT_HANDLER |
static String |
SCHEMA_RESOURCE |
static String |
SET_VALIDATION_EVENT_HANDLER |
static String |
UNWRAP_JAXB_ELEMENT |
static String |
USE_JAXB_BRIDGE |
static String |
VALIDATION_EVENT_HANDLER |
static String |
WRITER_VALIDATION_EVENT_HANDLER |
| Constructor and Description |
|---|
JAXBDataBinding() |
JAXBDataBinding(boolean q) |
JAXBDataBinding(boolean qualified,
Map<String,Object> props) |
JAXBDataBinding(Class<?>... classes) |
JAXBDataBinding(JAXBContext context) |
| Modifier and Type | Method and Description |
|---|---|
JAXBContext |
createJAXBContext(Set<Class<?>> classes) |
JAXBContext |
createJAXBContext(Set<Class<?>> classes,
String defaultNs) |
org.apache.cxf.common.jaxb.JAXBContextCache.CachedContextAndSchemas |
createJAXBContextAndSchemas(Set<Class<?>> classes,
String defaultNs) |
<T> org.apache.cxf.databinding.DataReader<T> |
createReader(Class<T> c) |
org.apache.cxf.databinding.WrapperHelper |
createWrapperHelper(Class<?> wrapperType,
QName wrapperName,
List<String> partNames,
List<String> elTypeNames,
List<Class<?>> partClasses) |
<T> org.apache.cxf.databinding.DataWriter<T> |
createWriter(Class<T> c) |
List<XmlAdapter<?,?>> |
getConfiguredXmlAdapters() |
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(org.apache.cxf.service.Service service) |
boolean |
isUnwrapJAXBElement() |
void |
setConfiguredXmlAdapters(List<XmlAdapter<?,?>> adpters) |
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) |
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptorsaddSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getContextualNamespaceMap, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, setContextualNamespaceMap, setMtomEnabled, setMtomThreshold, setNamespaceMap, setSchemas, updateSchemaLocationpublic static final String READER_VALIDATION_EVENT_HANDLER
public static final String VALIDATION_EVENT_HANDLER
public static final String SET_VALIDATION_EVENT_HANDLER
public static final String WRITER_VALIDATION_EVENT_HANDLER
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
public JAXBDataBinding()
public JAXBDataBinding(boolean q)
public JAXBDataBinding(Class<?>... classes) throws JAXBException
JAXBExceptionpublic JAXBDataBinding(boolean qualified,
Map<String,Object> props)
throws JAXBException
JAXBExceptionpublic JAXBDataBinding(JAXBContext context)
public JAXBContext getContext()
public final void setContext(JAXBContext ctx)
public <T> org.apache.cxf.databinding.DataWriter<T> createWriter(Class<T> c)
createWriter in interface org.apache.cxf.databinding.DataBindingpublic Class<?>[] getSupportedWriterFormats()
getSupportedWriterFormats in interface org.apache.cxf.databinding.DataBindingpublic <T> org.apache.cxf.databinding.DataReader<T> createReader(Class<T> c)
createReader in interface org.apache.cxf.databinding.DataBindingpublic Class<?>[] getSupportedReaderFormats()
getSupportedReaderFormats in interface org.apache.cxf.databinding.DataBindingpublic void initialize(org.apache.cxf.service.Service service)
initialize in interface org.apache.cxf.databinding.DataBindingpublic void setExtraClass(Class<?>[] userExtraClass)
public Class<?>[] getExtraClass()
public JAXBContext createJAXBContext(Set<Class<?>> classes) throws JAXBException
JAXBExceptionpublic JAXBContext createJAXBContext(Set<Class<?>> classes, String defaultNs) throws JAXBException
JAXBExceptionpublic org.apache.cxf.common.jaxb.JAXBContextCache.CachedContextAndSchemas createJAXBContextAndSchemas(Set<Class<?>> classes, String defaultNs) throws JAXBException
JAXBExceptionpublic Map<String,Object> getContextProperties()
public void setContextProperties(Map<String,Object> contextProperties)
contextProperties - map of properties.public List<XmlAdapter<?,?>> getConfiguredXmlAdapters()
public void setConfiguredXmlAdapters(List<XmlAdapter<?,?>> adpters)
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 org.apache.cxf.databinding.WrapperHelper createWrapperHelper(Class<?> wrapperType, QName wrapperName, List<String> partNames, List<String> elTypeNames, List<Class<?>> partClasses)
createWrapperHelper in interface org.apache.cxf.databinding.WrapperCapableDatabindingApache CXF