Apache CXF API

org.apache.cxf.aegis.databinding
Class AegisDatabinding

java.lang.Object
  extended by org.apache.cxf.databinding.AbstractDataBinding
      extended by org.apache.cxf.aegis.databinding.AegisDatabinding
All Implemented Interfaces:
DataBinding

public class AegisDatabinding
extends AbstractDataBinding

CXF databinding object for Aegis. By default, this creates an AegisContext object. To customize the behavior of the binding, an application should create its own AegisContext object and pass it to setAegisContext(AegisContext) before any call to initialize(Service). That does not require special arrangements; the service factories do not call {initialize(Service) until after the application passes the data binding into the factory. This class adds root classes to the context based on the SEI and implementation.

See Also:
AegisContext

Field Summary
protected static int FAULT_PARAM
           
protected static int IN_PARAM
           
protected static int OUT_PARAM
           
 
Fields inherited from class org.apache.cxf.databinding.AbstractDataBinding
mtomEnabled, mtomThreshold
 
Constructor Summary
AegisDatabinding()
           
 
Method Summary
<T> DataReader<T>
createReader(Class<T> cls)
          
<T> DataWriter<T>
createWriter(Class<T> cls)
          
 AegisContext getAegisContext()
           
 MessagePartInfo getPartFromClass(Class<?> cls)
           
 Service getService()
           
 QName getSuggestedName(Service s, TypeMapping tm, OperationInfo op, int param)
           
 Class<?>[] getSupportedReaderFormats()
          
 Class<?>[] getSupportedWriterFormats()
          
 AegisType getType(MessagePartInfo part)
           
 AegisType getTypeFromClass(Class<?> cls)
           
 void initialize(Service s)
          Initialize the service info (i.e. Set up the data binding for a service.
protected  void initializeMessage(Service s, TypeMapping serviceTM, AbstractMessageContainer container, int partType, Set<AegisType> deps)
           
protected  void initializeMessageTypes(ServiceInfo s, AbstractMessageContainer container, int partType)
           
 boolean isMtomUseXmime()
           
 void setAegisContext(AegisContext aegisContext)
           
 void setConfiguration(TypeCreationOptions configuration)
           
 void setMtomUseXmime(boolean mtomUseXmime)
           
 void setOverrideTypes(Set<String> types)
           
 
Methods inherited from class org.apache.cxf.databinding.AbstractDataBinding
addSchemaDocument, addSchemaDocument, checkNamespaceMap, getBus, getDeclaredNamespaceMappings, getMtomThreshold, getNamespaceMap, getSchemas, isMtomEnabled, setBus, 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

IN_PARAM

protected static final int IN_PARAM
See Also:
Constant Field Values

OUT_PARAM

protected static final int OUT_PARAM
See Also:
Constant Field Values

FAULT_PARAM

protected static final int FAULT_PARAM
See Also:
Constant Field Values
Constructor Detail

AegisDatabinding

public AegisDatabinding()
Method Detail

createReader

public <T> DataReader<T> createReader(Class<T> cls)


createWriter

public <T> DataWriter<T> createWriter(Class<T> cls)


getSupportedReaderFormats

public Class<?>[] getSupportedReaderFormats()


getSupportedWriterFormats

public Class<?>[] getSupportedWriterFormats()


initialize

public void initialize(Service s)
Initialize the service info (i.e. type & element names, Schemas) with information from the databinding. Set up the data binding for a service.


initializeMessage

protected void initializeMessage(Service s,
                                 TypeMapping serviceTM,
                                 AbstractMessageContainer container,
                                 int partType,
                                 Set<AegisType> deps)

initializeMessageTypes

protected void initializeMessageTypes(ServiceInfo s,
                                      AbstractMessageContainer container,
                                      int partType)

getSuggestedName

public QName getSuggestedName(Service s,
                              TypeMapping tm,
                              OperationInfo op,
                              int param)

getType

public AegisType getType(MessagePartInfo part)

getPartFromClass

public MessagePartInfo getPartFromClass(Class<?> cls)

getTypeFromClass

public AegisType getTypeFromClass(Class<?> cls)

getService

public Service getService()

getAegisContext

public AegisContext getAegisContext()

setAegisContext

public void setAegisContext(AegisContext aegisContext)

setOverrideTypes

public void setOverrideTypes(Set<String> types)

setConfiguration

public void setConfiguration(TypeCreationOptions configuration)

isMtomUseXmime

public boolean isMtomUseXmime()

setMtomUseXmime

public void setMtomUseXmime(boolean mtomUseXmime)

Apache CXF API

Apache CXF