public class JAXBDataBinding extends AbstractInterceptorProvidingDataBinding implements WrapperCapableDatabinding, 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 |
inFaultInterceptors, inInterceptors, outFaultInterceptors, outInterceptors
mtomEnabled, mtomThreshold
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) |
JAXBContextCache.CachedContextAndSchemas |
createJAXBContextAndSchemas(Set<Class<?>> classes,
String defaultNs) |
<T> DataReader<T> |
createReader(Class<T> c) |
WrapperHelper |
createWrapperHelper(Class<?> wrapperType,
QName wrapperName,
List<String> partNames,
List<String> elTypeNames,
List<Class<?>> partClasses) |
<T> 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(Service service)
Initialize the service info (i.e.
|
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, getOutInterceptors
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getContextualNamespaceMap, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, setContextualNamespaceMap, setMtomEnabled, setMtomThreshold, setNamespaceMap, setSchemas, updateSchemaLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors
public 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
JAXBException
public JAXBDataBinding(boolean qualified, Map<String,Object> props) throws JAXBException
JAXBException
public JAXBDataBinding(JAXBContext context)
public JAXBContext getContext()
public final void setContext(JAXBContext ctx)
public <T> DataWriter<T> createWriter(Class<T> c)
createWriter
in interface DataBinding
public Class<?>[] getSupportedWriterFormats()
getSupportedWriterFormats
in interface DataBinding
public <T> DataReader<T> createReader(Class<T> c)
createReader
in interface DataBinding
public Class<?>[] getSupportedReaderFormats()
getSupportedReaderFormats
in interface DataBinding
public void initialize(Service service)
DataBinding
initialize
in interface DataBinding
public 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
JAXBException
public 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 WrapperHelper createWrapperHelper(Class<?> wrapperType, QName wrapperName, List<String> partNames, List<String> elTypeNames, List<Class<?>> partClasses)
createWrapperHelper
in interface WrapperCapableDatabinding
Apache CXF