Package org.apache.cxf.databinding
Class AbstractDataBinding
- java.lang.Object
- 
- org.apache.cxf.databinding.AbstractDataBinding
 
- 
- All Implemented Interfaces:
- DataBinding
 - Direct Known Subclasses:
- AbstractInterceptorProvidingDataBinding,- SourceDataBinding
 
 public abstract class AbstractDataBinding extends Object implements DataBinding Supply default implementations, as appropriate, for DataBinding.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanmtomEnabledprotected intmtomThreshold
 - 
Constructor SummaryConstructors Constructor Description AbstractDataBinding()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.ws.commons.schema.XmlSchemaaddSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId)org.apache.ws.commons.schema.XmlSchemaaddSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId, Collection<String> ids)protected static voidcheckNamespaceMap(Map<String,String> namespaceMap)protected BusgetBus()Map<String,String>getContextualNamespaceMap()Map<String,String>getDeclaredNamespaceMappings()Provide explicit mappings to ReflectionServiceFactory.intgetMtomThreshold()Map<String,String>getNamespaceMap()Collection<DOMSource>getSchemas()booleanisMtomEnabled()voidsetBus(Bus bus)This call is used to set the bus.voidsetContextualNamespaceMap(Map<String,String> contextualNamespaceMap)voidsetMtomEnabled(boolean enabled)voidsetMtomThreshold(int threshold)If the binding supports MTOM, set the size threshold for its use.voidsetNamespaceMap(Map<String,String> namespaceMap)Set a map of from URI to prefix.voidsetSchemas(Collection<DOMSource> schemas)protected voidupdateSchemaLocation(Element e)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.cxf.databinding.DataBindingcreateReader, createWriter, getSupportedReaderFormats, getSupportedWriterFormats, initialize
 
- 
 
- 
- 
- 
Method Detail- 
getBusprotected Bus getBus() 
 - 
setBuspublic void setBus(Bus bus) This call is used to set the bus. It should only be called once.- Parameters:
- bus-
 
 - 
getSchemaspublic Collection<DOMSource> getSchemas() 
 - 
setSchemaspublic void setSchemas(Collection<DOMSource> schemas) 
 - 
addSchemaDocumentpublic org.apache.ws.commons.schema.XmlSchema addSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId) 
 - 
addSchemaDocumentpublic org.apache.ws.commons.schema.XmlSchema addSchemaDocument(ServiceInfo serviceInfo, SchemaCollection col, Document d, String systemId, Collection<String> ids) 
 - 
updateSchemaLocationprotected void updateSchemaLocation(Element e) 
 - 
getNamespaceMappublic Map<String,String> getNamespaceMap() - Returns:
- the namespaceMap (URI to prefix). This will be null if no particular namespace map has been set.
 
 - 
setNamespaceMappublic void setNamespaceMap(Map<String,String> namespaceMap) Set a map of from URI to prefix. If possible, the data binding will use these prefixes on the wire.- Parameters:
- namespaceMap- The namespaceMap to set.
 
 - 
setContextualNamespaceMappublic void setContextualNamespaceMap(Map<String,String> contextualNamespaceMap) 
 - 
getDeclaredNamespaceMappingspublic Map<String,String> getDeclaredNamespaceMappings() Provide explicit mappings to ReflectionServiceFactory. Return a set of mappings from namespace to prefix to allow bindings to control the prefixes.- Specified by:
- getDeclaredNamespaceMappingsin interface- DataBinding
- Returns:
- the map, or null if there are none.
 
 - 
setMtomEnabledpublic void setMtomEnabled(boolean enabled) - Specified by:
- setMtomEnabledin interface- DataBinding
 
 - 
isMtomEnabledpublic boolean isMtomEnabled() - Specified by:
- isMtomEnabledin interface- DataBinding
 
 - 
getMtomThresholdpublic int getMtomThreshold() - Specified by:
- getMtomThresholdin interface- DataBinding
 
 - 
setMtomThresholdpublic void setMtomThreshold(int threshold) Description copied from interface:DataBindingIf the binding supports MTOM, set the size threshold for its use. may be overridden by (e.g.) JAXWS configuration.- Specified by:
- setMtomThresholdin interface- DataBinding
 
 
- 
 
-