org.apache.tuscany.sca.databinding.job
Class OMElement2Job

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.BaseTransformer<OMElement,Job>
      extended by org.apache.tuscany.sca.databinding.job.OMElement2Job
All Implemented Interfaces:
PullTransformer<OMElement,Job>, Transformer

public class OMElement2Job
extends BaseTransformer<OMElement,Job>
implements PullTransformer<OMElement,Job>

Transformer to convert data from an OMElement to Job


Constructor Summary
OMElement2Job()
           
 
Method Summary
 java.lang.Class getSourceType()
           
 java.lang.Class getTargetType()
           
 int getWeight()
          Get the cost of the transformation.
 Job transform(OMElement source, TransformationContext context)
          Transform source data into the result type.
 
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseTransformer
getSourceDataBinding, getTargetDataBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.databinding.Transformer
getSourceDataBinding, getTargetDataBinding
 

Constructor Detail

OMElement2Job

public OMElement2Job()
Method Detail

transform

public Job transform(OMElement source,
                     TransformationContext context)
Description copied from interface: PullTransformer
Transform source data into the result type.

Specified by:
transform in interface PullTransformer<OMElement,Job>
Parameters:
source - The source data
context - The context for the transformation
Returns:
The transformed result

getSourceType

public java.lang.Class getSourceType()
Specified by:
getSourceType in class BaseTransformer<OMElement,Job>

getTargetType

public java.lang.Class getTargetType()
Specified by:
getTargetType in class BaseTransformer<OMElement,Job>

getWeight

public int getWeight()
Description copied from interface: Transformer
Get the cost of the transformation. The weight can be used to choose the most efficient path if there are more than one available from the source to the target.

Specified by:
getWeight in interface Transformer
Overrides:
getWeight in class BaseTransformer<OMElement,Job>
Returns:
An integer representing the cost of the transformation