public class TransformerWeighting extends Object implements Comparable
Transformer
instance, an input class and output class
this object will create a weighting for a transformer. This weighthing can be used compare one transformer with
another, which can be useful for choosing a transformer to use given the input class and required output class.Constructor and Description |
---|
TransformerWeighting(Class inputClass,
Class outputClass,
Transformer transformer) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
Class |
getInputClass() |
int |
getInputWeighting() |
Class |
getOutputClass() |
int |
getOutputWeighting() |
Transformer |
getTransformer() |
protected int |
getWeighting(int weighting,
Class src,
Class dest)
This is a very basic algorithm for creating a match rating for two classes.
|
int |
hashCode() |
boolean |
isExactMatch() |
boolean |
isNotMatch() |
String |
toString() |
public TransformerWeighting(Class inputClass, Class outputClass, Transformer transformer)
protected int getWeighting(int weighting, Class src, Class dest)
weighting
- an offset weighting, by default -1 should be usedsrc
- the src class being matcheddest
- the destination class to match topublic Class getInputClass()
public int getInputWeighting()
public Class getOutputClass()
public int getOutputWeighting()
public Transformer getTransformer()
public boolean isExactMatch()
public boolean isNotMatch()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.