it.avutils.jmapper.conversions.explicit
Class ConversionReader
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 configurationconfig - configuration chosendestinationClass - destination classsourceClass - source class
fieldsToCheck
public ConversionReader fieldsToCheck(Field destination,
Field source)
- Defines the fields to check.
- Parameters:
destination - destination fieldsource - 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.