Apache CXF API

org.apache.cxf.xmlbeans
Class XmlBeansDataBinding

java.lang.Object
  extended by org.apache.cxf.databinding.AbstractDataBinding
      extended by org.apache.cxf.xmlbeans.XmlBeansDataBinding
All Implemented Interfaces:
DataBinding, WrapperCapableDatabinding

public class XmlBeansDataBinding
extends AbstractDataBinding
implements WrapperCapableDatabinding


Field Summary
static String XMLBEANS_NAMESPACE_HACK
           
 
Fields inherited from class org.apache.cxf.databinding.AbstractDataBinding
mtomEnabled, mtomThreshold
 
Constructor Summary
XmlBeansDataBinding()
           
 
Method Summary
<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)
           
 Map<String,String> getDeclaredNamespaceMappings()
          XmlBeans has no declared namespace prefixes.
 Class<?>[] getSupportedReaderFormats()
           
 Class<?>[] getSupportedWriterFormats()
           
 void initialize(Service service)
          Initialize the service info (i.e.
 
Methods inherited from class org.apache.cxf.databinding.AbstractDataBinding
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getContextualNamespaceMap, 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
 

Field Detail

XMLBEANS_NAMESPACE_HACK

public static final String XMLBEANS_NAMESPACE_HACK
Constructor Detail

XmlBeansDataBinding

public XmlBeansDataBinding()
Method Detail

createWriter

public <T> DataWriter<T> createWriter(Class<T> c)
Specified by:
createWriter in interface DataBinding

createReader

public <T> DataReader<T> createReader(Class<T> c)
Specified by:
createReader in interface DataBinding

getDeclaredNamespaceMappings

public Map<String,String> getDeclaredNamespaceMappings()
XmlBeans has no declared namespace prefixes. Provide explicit mappings to ReflectionServiceFactory. Return a set of mappings from namespace to prefix to allow bindings to control the prefixes.

Specified by:
getDeclaredNamespaceMappings in interface DataBinding
Overrides:
getDeclaredNamespaceMappings in class AbstractDataBinding
Returns:
the map, or null if there are none.

getSupportedReaderFormats

public Class<?>[] getSupportedReaderFormats()
Specified by:
getSupportedReaderFormats in interface DataBinding

getSupportedWriterFormats

public Class<?>[] getSupportedWriterFormats()
Specified by:
getSupportedWriterFormats in interface DataBinding

initialize

public void initialize(Service service)
Description copied from interface: DataBinding
Initialize the service info (i.e. type & element names, Schemas) with information from the databinding.

Specified by:
initialize in interface DataBinding

createWrapperHelper

public WrapperHelper createWrapperHelper(Class<?> wrapperType,
                                         QName wrapperName,
                                         List<String> partNames,
                                         List<String> elTypeNames,
                                         List<Class<?>> partClasses)
Specified by:
createWrapperHelper in interface WrapperCapableDatabinding

Apache CXF API

Apache CXF