Class MappingUtil
java.lang.Object
overit.geocallapp.wfm.core.soap.utils.MappingUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TmapToObject(Object sourceObject, Class<T> destinationClass, String mapperConfigFile) Maps an object into another using a mapper and a configuration file.
-
Method Details
-
mapToObject
public static <T> T mapToObject(Object sourceObject, Class<T> destinationClass, String mapperConfigFile) throws DAValidateException, DAException Maps an object into another using a mapper and a configuration file.- Type Parameters:
T- destination object type- Parameters:
sourceObject- source objectdestinationClass- destination object classmapperConfigFile- configuration file used by the mapper- Returns:
- a destination object initialized with source fields
- Throws:
DAValidateException- if mapping process fails with a validation errorDAException- if mapping process fails with an unexpected error
-