Package cz.tvrzna.jackie
Class DeserializationMapper
- java.lang.Object
-
- cz.tvrzna.jackie.DeserializationMapper
-
public class DeserializationMapper extends Object
The Class DeserializationMapper.- Author:
- michalt
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static <T> TconvertToObject(Object object, Class<T> clazz)Convert from.protected static <T> TconvertToObject(Object object, Class<T> clazz, Class<?> subClazz)Convert from.protected static <T> TconvertToObject(Object object, Class<T> clazz, Field field, Class<?> subClazz, Class<?> subClazz2)Convert from.
-
-
-
Method Detail
-
convertToObject
protected static <T> T convertToObject(Object object, Class<T> clazz, Field field, Class<?> subClazz, Class<?> subClazz2) throws Exception
Convert from.- Type Parameters:
T- the generic type- Parameters:
object- the objectclazz- the clazzfield- the fieldsubClazz- the sub clazzsubClazz2- the sub clazz 2- Returns:
- the t
- Throws:
Exception- the exception
-
convertToObject
protected static <T> T convertToObject(Object object, Class<T> clazz) throws Exception
Convert from.- Type Parameters:
T- the generic type- Parameters:
object- the objectclazz- the clazz- Returns:
- the t
- Throws:
Exception- the exception
-
-