it.avutils.jmapper.conversions.implicit.analyzer
Class ConversionAnalyzer

java.lang.Object
  extended by 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

Constructor Summary
ConversionAnalyzer()
           
 
Method Summary
static ConversionType getConversionType(Class<?> destination, Class<?> source)
          Analyzes classes given as input and returns the type of conversion that has to be done.
static ConversionType getConversionType(Field destination, Field source)
          Analyzes Fields given as input and returns the type of conversion that has to be done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionAnalyzer

public ConversionAnalyzer()
Method Detail

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 analyze
source - 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 analyze
source - class to analyze
Returns:
type of Conversion


Copyright © 2013. All Rights Reserved.