public interface TransformerFactory
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransform(org.fabric3.api.model.type.contract.DataType source,
org.fabric3.api.model.type.contract.DataType target)
Returns true if the factory creates transformers that can convert from the source to target data types.
|
Transformer<?,?> |
create(org.fabric3.api.model.type.contract.DataType source,
org.fabric3.api.model.type.contract.DataType target,
java.util.List<java.lang.Class<?>> inTypes,
java.util.List<java.lang.Class<?>> outTypes)
Creates a transformer capable of converting from the source to target data types.
|
int |
getOrder()
Returns a value for ordering transformers.
|
int getOrder()
boolean canTransform(org.fabric3.api.model.type.contract.DataType source,
org.fabric3.api.model.type.contract.DataType target)
source - the source datatypetarget - the target datatypeTransformer<?,?> create(org.fabric3.api.model.type.contract.DataType source, org.fabric3.api.model.type.contract.DataType target, java.util.List<java.lang.Class<?>> inTypes, java.util.List<java.lang.Class<?>> outTypes) throws org.fabric3.api.host.Fabric3Exception
source - the source data typetarget - the target data typeinTypes - the physical types of the source dataoutTypes - the physical types of the converted dataorg.fabric3.api.host.Fabric3Exception - if there was an error creating the transformer