org.mule.transformer
Class TransformerWeighting
java.lang.Object
org.mule.transformer.TransformerWeighting
- All Implemented Interfaces:
- Comparable
public class TransformerWeighting
- extends Object
- implements Comparable
Given a 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.
TransformerWeighting
public TransformerWeighting(Class inputClass,
Class outputClass,
Transformer transformer)
getWeighting
protected int getWeighting(int weighting,
Class src,
Class dest)
getInputClass
public Class getInputClass()
getInputWeighting
public int getInputWeighting()
getOutputClass
public Class getOutputClass()
getOutputWeighting
public int getOutputWeighting()
getTransformer
public Transformer getTransformer()
isExactMatch
public boolean isExactMatch()
isNotMatch
public boolean isNotMatch()
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.