it.avutils.jmapper.conversions.implicit.analyzer
Class ConversionAnalyzer
java.lang.Object
it.avutils.jmapper.conversions.implicit.analyzer.ConversionAnalyzer
public final class ConversionAnalyzer
- extends Object
This class analyzes the two classes received in input, indicating what kind of conversion that has to be done.
If the conversion was not found, returns UNDEFINED.
- Author:
- Alessandro Vurro
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversionAnalyzer
public ConversionAnalyzer()
getConversionType
public static ConversionType getConversionType(Field destination,
Field source)
- Analyzes Fields given as input and returns the type of conversion that has to be done.
- Parameters:
destination - Field to analyzesource - Field to analyze
- Returns:
- type of Conversion
getConversionType
public static ConversionType getConversionType(Class<?> destination,
Class<?> source)
- Analyzes classes given as input and returns the type of conversion that has to be done.
- Parameters:
destination - class to analyzesource - class to analyze
- Returns:
- type of Conversion
Copyright © 2013. All Rights Reserved.