org.apache.tuscany.sca.databinding.impl
Class GroupDataBinding

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.BaseDataBinding
      extended by org.apache.tuscany.sca.databinding.impl.GroupDataBinding
All Implemented Interfaces:
DataBinding
Direct Known Subclasses:
XMLGroupDataBinding

public abstract class GroupDataBinding
extends BaseDataBinding

The base class for a special databinding which represents a group of other databindings


Field Summary
protected  java.lang.Class[] markerTypes
          Marker type is a java class or interface representing the data format.
static java.lang.String NAME
           
 
Fields inherited from interface org.apache.tuscany.sca.databinding.DataBinding
IDL_FAULT, IDL_INPUT, IDL_OUTPUT
 
Constructor Summary
GroupDataBinding(java.lang.Class[] types)
           
 
Method Summary
protected  java.lang.String getDataBinding(java.lang.Class<?> baseType)
          Derive the databinding name from a base class
protected abstract  java.lang.Object getLogical(java.lang.Class<?> type, Operation operation)
          Get the logical type
 boolean introspect(DataType type, Operation operation)
          Introspect and populate information to a DataType model
protected  boolean isTypeOf(java.lang.Class<?> markerType, java.lang.Class<?> type)
          Test if the given type is a subtype of the base type
 
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseDataBinding
copy, getName, getWrapperHandler, getXMLTypeHelper, introspect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

markerTypes

protected java.lang.Class[] markerTypes
Marker type is a java class or interface representing the data format.

Constructor Detail

GroupDataBinding

public GroupDataBinding(java.lang.Class[] types)
Method Detail

introspect

public boolean introspect(DataType type,
                          Operation operation)
Description copied from interface: DataBinding
Introspect and populate information to a DataType model

Specified by:
introspect in interface DataBinding
Overrides:
introspect in class BaseDataBinding
Parameters:
type - The data type to be introspected
operation - The operation
Returns:
true if the databinding has recognized the given data type

isTypeOf

protected boolean isTypeOf(java.lang.Class<?> markerType,
                           java.lang.Class<?> type)
Test if the given type is a subtype of the base type

Parameters:
markerType -
type -
Returns:

getDataBinding

protected java.lang.String getDataBinding(java.lang.Class<?> baseType)
Derive the databinding name from a base class

Parameters:
baseType -
Returns:

getLogical

protected abstract java.lang.Object getLogical(java.lang.Class<?> type,
                                               Operation operation)
Get the logical type

Parameters:
type - The java type
operation - TODO
Returns: