|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.databinding.impl.PipedTransformer<S,I,R>
S
- Source typeI
- Intermediate typeR
- Result typepublic class PipedTransformer<S,I,R>
A utility class to connect PushTransformer and DataPipe to create a PullTransformer
Constructor Summary | |
---|---|
PipedTransformer(PushTransformer<S,I> pumper,
DataPipeTransformer<I,R> pipe)
|
Method Summary | |
---|---|
java.lang.String |
getSourceDataBinding()
Get the source type that this transformer transforms data from. |
java.lang.String |
getTargetDataBinding()
Get the target type that this transformer transforms data into. |
int |
getWeight()
Get the cost of the transformation. |
R |
transform(S source,
TransformationContext context)
Transform source data into the result type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PipedTransformer(PushTransformer<S,I> pumper, DataPipeTransformer<I,R> pipe)
pumper
- pipe
- Method Detail |
---|
public R transform(S source, TransformationContext context)
PullTransformer
transform
in interface PullTransformer<S,R>
source
- The source datacontext
- The context for the transformation
public java.lang.String getSourceDataBinding()
Transformer
getSourceDataBinding
in interface Transformer
public java.lang.String getTargetDataBinding()
Transformer
getTargetDataBinding
in interface Transformer
public int getWeight()
Transformer
getWeight
in interface Transformer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |