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

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> DataReader<T>
createReader(java.lang.Class<T> cls)
           
<T> 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()
           
 Service getService()
           
 javax.xml.namespace.QName getSuggestedName(Service s, TypeMapping tm, OperationInfo op, int param)
           
 java.lang.Class<?>[] getSupportedReaderFormats()
           
 java.lang.Class<?>[] getSupportedWriterFormats()
           
 Type getType(MessagePartInfo part)
           
 TypeMappingRegistry getTypeMappingRegistry()
           
 void initialize(Service s)
          Initialize the service info (i.e.
protected  void initializeMessage(Service s, TypeMapping serviceTM, AbstractMessageContainer container, int partType, java.util.Set<Type> deps)
           
 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 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> DataReader<T> createReader(java.lang.Class<T> cls)

createWriter

public <T> DataWriter<T> createWriter(java.lang.Class<T> cls)

getSupportedReaderFormats

public java.lang.Class<?>[] getSupportedReaderFormats()

getSupportedWriterFormats

public java.lang.Class<?>[] getSupportedWriterFormats()

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()

setTypeMappingRegistry

public void setTypeMappingRegistry(TypeMappingRegistry typeMappingRegistry)

initialize

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


initializeMessage

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

getSuggestedName

public javax.xml.namespace.QName getSuggestedName(Service s,
                                                  TypeMapping tm,
                                                  OperationInfo op,
                                                  int param)

getType

public Type getType(MessagePartInfo part)

getOverrideTypes

public java.util.List getOverrideTypes()

getService

public 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. 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.

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 API

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