org.apache.cxf.aegis.databinding
Class AegisDatabinding

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

public class AegisDatabinding
extends org.apache.cxf.databinding.source.AbstractDataBinding
implements org.apache.cxf.databinding.DataBinding

Handles DataBinding functions for Aegis.

NOTE: There is an assumed 1:1 mapping between an AegisDatabinding and a Service!


Field Summary
static java.lang.String CURRENT_MESSAGE_PART
           
static java.lang.String ENCODING_URI_KEY
           
protected static int FAULT_PARAM
           
protected static int IN_PARAM
           
protected static int OUT_PARAM
           
static java.lang.String OVERRIDE_TYPES_KEY
           
static java.lang.String READ_XSI_TYPE_KEY
           
static java.lang.String TYPE_MAPPING_KEY
           
static java.lang.String WRITE_XSI_TYPE_KEY
           
 
Constructor Summary
AegisDatabinding()
           
 
Method Summary
<T> org.apache.cxf.databinding.DataReader<T>
createReader(java.lang.Class<T> cls)
           
<T> org.apache.cxf.databinding.DataWriter<T>
createWriter(java.lang.Class<T> cls)
           
 Configuration getConfiguration()
          Return the type mapping configuration associated with this databinding object.
 java.util.Map<java.lang.String,java.lang.String> getDeclaredNamespaceMappings()
          Provide explicit mappings to ReflectionServiceFactory.
 java.util.Map<java.lang.String,java.lang.String> getNamespaceMap()
           
 java.util.List getOverrideTypes()
           
 org.apache.cxf.service.Service getService()
           
 javax.xml.namespace.QName getSuggestedName(org.apache.cxf.service.Service s, TypeMapping tm, org.apache.cxf.service.model.OperationInfo op, int param)
           
 java.lang.Class<?>[] getSupportedReaderFormats()
           
 java.lang.Class<?>[] getSupportedWriterFormats()
           
 Type getType(org.apache.cxf.service.model.MessagePartInfo part)
           
 TypeMappingRegistry getTypeMappingRegistry()
           
 void initialize(org.apache.cxf.service.Service s)
           
protected  void initializeMessage(org.apache.cxf.service.Service s, TypeMapping serviceTM, org.apache.cxf.service.model.AbstractMessageContainer container, int partType, java.util.Set<Type> deps)
           
protected  void initializeMessageTypes(org.apache.cxf.service.model.ServiceInfo s, org.apache.cxf.service.model.AbstractMessageContainer container, int partType)
           
 void setConfiguration(Configuration configuration)
          Set the configuration for this databinding object.
 void setNamespaceMap(java.util.Map<java.lang.String,java.lang.String> namespaceMap)
           
 void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)
           
 
Methods inherited from class org.apache.cxf.databinding.source.AbstractDataBinding
addSchemaDocument, getSchemas, setSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_MESSAGE_PART

public static final java.lang.String CURRENT_MESSAGE_PART
See Also:
Constant Field Values

TYPE_MAPPING_KEY

public static final java.lang.String TYPE_MAPPING_KEY
See Also:
Constant Field Values

ENCODING_URI_KEY

public static final java.lang.String ENCODING_URI_KEY
See Also:
Constant Field Values

WRITE_XSI_TYPE_KEY

public static final java.lang.String WRITE_XSI_TYPE_KEY
See Also:
Constant Field Values

OVERRIDE_TYPES_KEY

public static final java.lang.String OVERRIDE_TYPES_KEY
See Also:
Constant Field Values

READ_XSI_TYPE_KEY

public static final java.lang.String READ_XSI_TYPE_KEY
See Also:
Constant Field Values

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> org.apache.cxf.databinding.DataReader<T> createReader(java.lang.Class<T> cls)
Specified by:
createReader in interface org.apache.cxf.databinding.DataBinding

createWriter

public <T> org.apache.cxf.databinding.DataWriter<T> createWriter(java.lang.Class<T> cls)
Specified by:
createWriter in interface org.apache.cxf.databinding.DataBinding

getSupportedReaderFormats

public java.lang.Class<?>[] getSupportedReaderFormats()
Specified by:
getSupportedReaderFormats in interface org.apache.cxf.databinding.DataBinding

getSupportedWriterFormats

public java.lang.Class<?>[] getSupportedWriterFormats()
Specified by:
getSupportedWriterFormats in interface org.apache.cxf.databinding.DataBinding

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()

setTypeMappingRegistry

public void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)

initialize

public void initialize(org.apache.cxf.service.Service s)
Specified by:
initialize in interface org.apache.cxf.databinding.DataBinding

initializeMessage

protected void initializeMessage(org.apache.cxf.service.Service s,
                                 TypeMapping serviceTM,
                                 org.apache.cxf.service.model.AbstractMessageContainer container,
                                 int partType,
                                 java.util.Set<Type> deps)

initializeMessageTypes

protected void initializeMessageTypes(org.apache.cxf.service.model.ServiceInfo s,
                                      org.apache.cxf.service.model.AbstractMessageContainer container,
                                      int partType)

getSuggestedName

public javax.xml.namespace.QName getSuggestedName(org.apache.cxf.service.Service s,
                                                  TypeMapping tm,
                                                  org.apache.cxf.service.model.OperationInfo op,
                                                  int param)

getType

public Type getType(org.apache.cxf.service.model.MessagePartInfo part)

getOverrideTypes

public java.util.List getOverrideTypes()

getService

public org.apache.cxf.service.Service getService()

getNamespaceMap

public java.util.Map<java.lang.String,java.lang.String> getNamespaceMap()
Returns:
Returns the namespaceMap.

setNamespaceMap

public void setNamespaceMap(java.util.Map<java.lang.String,java.lang.String> namespaceMap)
Parameters:
namespaceMap - The namespaceMap to set.

getDeclaredNamespaceMappings

public java.util.Map<java.lang.String,java.lang.String> getDeclaredNamespaceMappings()
Provide explicit mappings to ReflectionServiceFactory.

Specified by:
getDeclaredNamespaceMappings in interface org.apache.cxf.databinding.DataBinding

getConfiguration

public Configuration getConfiguration()
Return the type mapping configuration associated with this databinding object. The configuration is retrieved from the type mapping registry.

Returns:
Returns the configuration.

setConfiguration

public void setConfiguration(Configuration configuration)
Set the configuration for this databinding object.

Parameters:
configuration - The configuration to set.


Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.