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, outInterceptorsmtomEnabled, 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 |
|---|---|
void |
applyEscapeHandler(boolean escape,
Consumer<Object> consumer) |
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.
|
Object |
getEscapeHandler() |
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.
|
protected String |
getNamespaceToUse(Service service) |
protected boolean |
getQualifiedSchemas() |
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.
|
static boolean |
isInBuiltInSchemas(DOMResult schema) |
boolean |
isUnwrapJAXBElement() |
protected void |
justCheckForJAXBAnnotations(ServiceInfo serviceInfo) |
void |
setConfiguredXmlAdapters(List<XmlAdapter<?,?>> adpters) |
void |
setContext(JAXBContext ctx) |
void |
setContextProperties(Map<String,Object> contextProperties)
Set a map of JAXB context properties.
|
void |
setEscapeHandler(Object handler) |
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, updateSchemaLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptorspublic 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)
protected boolean getQualifiedSchemas()
public JAXBContext getContext()
public final void setContext(JAXBContext ctx)
public Object getEscapeHandler()
public void setEscapeHandler(Object handler)
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)
DataBindinginitialize in interface DataBindingprotected void justCheckForJAXBAnnotations(ServiceInfo serviceInfo)
public 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 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 WrapperHelper createWrapperHelper(Class<?> wrapperType, QName wrapperName, List<String> partNames, List<String> elTypeNames, List<Class<?>> partClasses)
createWrapperHelper in interface WrapperCapableDatabindingpublic static boolean isInBuiltInSchemas(DOMResult schema)
Apache CXF