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

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.TransformationContextImpl
All Implemented Interfaces:
TransformationContext

public class TransformationContextImpl
extends java.lang.Object
implements TransformationContext


Constructor Summary
TransformationContextImpl()
           
TransformationContextImpl(DataType sourceDataType, DataType targetDataType, java.lang.ClassLoader classLoader, java.util.Map<java.lang.String,java.lang.Object> metadata)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Get the ClassLoader
 java.util.Map<java.lang.String,java.lang.Object> getMetadata()
          Get a map of metadata
 DataType getSourceDataType()
          Get the source data type
 Operation getSourceOperation()
           
 DataType getTargetDataType()
          Get the target data type
 Operation getTargetOperation()
           
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setSourceDataType(DataType sourceDataType)
          Set the source data type
 void setSourceOperation(Operation sourceOperation)
           
 void setTargetDataType(DataType targetDataType)
          Set the target data type
 void setTargetOperation(Operation targetOperation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationContextImpl

public TransformationContextImpl()

TransformationContextImpl

public TransformationContextImpl(DataType sourceDataType,
                                 DataType targetDataType,
                                 java.lang.ClassLoader classLoader,
                                 java.util.Map<java.lang.String,java.lang.Object> metadata)
Method Detail

getSourceDataType

public DataType getSourceDataType()
Description copied from interface: TransformationContext
Get the source data type

Specified by:
getSourceDataType in interface TransformationContext
Returns:

getTargetDataType

public DataType getTargetDataType()
Description copied from interface: TransformationContext
Get the target data type

Specified by:
getTargetDataType in interface TransformationContext
Returns:

setSourceDataType

public void setSourceDataType(DataType sourceDataType)
Description copied from interface: TransformationContext
Set the source data type

Specified by:
setSourceDataType in interface TransformationContext

setTargetDataType

public void setTargetDataType(DataType targetDataType)
Description copied from interface: TransformationContext
Set the target data type

Specified by:
setTargetDataType in interface TransformationContext

setClassLoader

public final void setClassLoader(java.lang.ClassLoader classLoader)

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: TransformationContext
Get the ClassLoader

Specified by:
getClassLoader in interface TransformationContext
Returns:
Returns the ClassLoader

getMetadata

public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
Description copied from interface: TransformationContext
Get a map of metadata

Specified by:
getMetadata in interface TransformationContext
Returns:
Returns a map of the metadata

getSourceOperation

public Operation getSourceOperation()
Specified by:
getSourceOperation in interface TransformationContext
Returns:
the sourceOperation

setSourceOperation

public void setSourceOperation(Operation sourceOperation)
Specified by:
setSourceOperation in interface TransformationContext
Parameters:
sourceOperation - the sourceOperation to set

getTargetOperation

public Operation getTargetOperation()
Specified by:
getTargetOperation in interface TransformationContext
Returns:
the targetOperation

setTargetOperation

public void setTargetOperation(Operation targetOperation)
Specified by:
setTargetOperation in interface TransformationContext
Parameters:
targetOperation - the targetOperation to set