it.avutils.jmapper.conversions.explicit
Class ConversionReader

java.lang.Object
  extended by it.avutils.jmapper.conversions.explicit.ConversionReader

public class ConversionReader
extends Object

ConversionReader analyzes the configuration and returns, if exists, the conversion method found.

Author:
Alessandro Vurro

Constructor Summary
ConversionReader(XML xml, ChooseConfig config, Class<?> destinationClass, Class<?> sourceClass)
          Constructor that defines the xml configuration, the configuration chosen, the destination and source classes.
 
Method Summary
 boolean conversionMethodFound()
           
 ConversionReader fieldsToCheck(Field destination, Field source)
          Defines the fields to check.
 ConfigurationType getConfigurationType()
           
 Membership getMembership()
           
 ConversionMethod getMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionReader

public ConversionReader(XML xml,
                        ChooseConfig config,
                        Class<?> destinationClass,
                        Class<?> sourceClass)
Constructor that defines the xml configuration, the configuration chosen, the destination and source classes.

Parameters:
xml - xml configuration
config - configuration chosen
destinationClass - destination class
sourceClass - source class
Method Detail

fieldsToCheck

public ConversionReader fieldsToCheck(Field destination,
                                      Field source)
Defines the fields to check.

Parameters:
destination - destination field
source - source field

conversionMethodFound

public boolean conversionMethodFound()
Returns:
true if the conversion method exists, false otherwise

getMethod

public ConversionMethod getMethod()
Returns:
the conversion method

getMembership

public Membership getMembership()
Returns:
the membership

getConfigurationType

public ConfigurationType getConfigurationType()
Returns:
the configuration type


Copyright © 2013. All Rights Reserved.