2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.databinding
Interface DataBinding

All Known Implementing Classes:
AxiomDataBinding, BaseDataBinding, CallableReferenceDataBinding, DOMDataBinding, ExternalizableDataBinding, GroupDataBinding, JavaBeansDataBinding, JavaExceptionDataBinding, JAXBDataBinding, JobDataBinding, JSONDataBinding, SaxonNodeDataBinding, SaxonValueDataBinding, SDODataBinding, SimpleJavaDataBinding, StAXDataBinding, XMLBeansDataBinding, XMLGroupDataBinding, XMLStringDataBinding, XObjectDataBinding

public interface DataBinding

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


Field Summary
static java.lang.String IDL_FAULT
          A special databinding for fault message of an operation
static java.lang.String IDL_INPUT
          A special databinding for input message of an operation
static java.lang.String IDL_OUTPUT
          A special databinding for output message of an operation
 
Method Summary
 java.lang.Object copy(java.lang.Object object, DataType dataType, Operation operation)
          Make a copy of the object for "pass-by-value" semantics.
 java.lang.String getName()
          The name of a databinding should be case-insensitive and unique
 WrapperHandler getWrapperHandler()
          Provide a WrapperHandler for this databinding
 XMLTypeHelper getXMLTypeHelper()
          Get the XML type helper for Java types
 boolean introspect(DataType dataType, Operation operation)
          Introspect and populate information to a DataType model
 DataType introspect(java.lang.Object value, Operation operation)
          Introspect the data to figure out the corresponding data type
 

Field Detail

IDL_INPUT

static final java.lang.String IDL_INPUT
A special databinding for input message of an operation

See Also:
Constant Field Values

IDL_OUTPUT

static final java.lang.String IDL_OUTPUT
A special databinding for output message of an operation

See Also:
Constant Field Values

IDL_FAULT

static final java.lang.String IDL_FAULT
A special databinding for fault message of an operation

See Also:
Constant Field Values
Method Detail

getName

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

Returns:
The name of the databinding

introspect

boolean introspect(DataType dataType,
                   Operation operation)
Introspect and populate information to a DataType model

Parameters:
dataType - The data type to be introspected
operation - The operation
Returns:
true if the databinding has recognized the given data type

introspect

DataType introspect(java.lang.Object value,
                    Operation operation)
Introspect the data to figure out the corresponding data type

Parameters:
value - The object to be checked
operation - The operation
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

copy

java.lang.Object copy(java.lang.Object object,
                      DataType dataType,
                      Operation operation)
Make a copy of the object for "pass-by-value" semantics.

Parameters:
object - source object to copy
dataType - The data type
operation - The operation
Returns:
copy of the object passed in as argument

getXMLTypeHelper

XMLTypeHelper getXMLTypeHelper()
Get the XML type helper for Java types

Returns:
The databinding-specific XML type helper class