Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.databinding
Interface DataBinding

All Known Implementing Classes:
DataBindingExtension

public interface DataBinding

DataBinding represents a data representation, for example, SDO, JAXB and AXIOM


Method Summary
 String getName()
          The name of a databinding should be case-insensitive and unique
 WrapperHandler getWrapperHandler()
          Provide a WrapperHandler for this databinding
 DataType introspect(Class<?> javaType)
          Introspect a java class or interface to create a DataType model
 DataType introspect(Object value)
          Introspect the data to figure out the corresponding data type
 

Method Detail

getName

String getName()
The name of a databinding should be case-insensitive and unique

Returns:
The name of the databinding

introspect

DataType introspect(Class<?> javaType)
Introspect a java class or interface to create a DataType model

Parameters:
javaType - The java class or interface to be introspected
Returns:
The DataType or null if the java type is not supported by this databinding

introspect

DataType introspect(Object value)
Introspect the data to figure out the corresponding data type

Parameters:
value - The object to be checked
Returns:
The DataType or null if the java type is not supported by this databinding

getWrapperHandler

WrapperHandler getWrapperHandler()
Provide a WrapperHandler for this databinding

Returns:
A wrapper handler which can handle wrapping/wrapping for this databinding

Apache Tuscany SCA Kernel Sub-Project

-