Package org.zkoss.clientbind.ui.util
Class ObjectMappers
- java.lang.Object
-
- org.zkoss.clientbind.ui.util.ObjectMappers
-
public class ObjectMappers extends java.lang.ObjectObject Mappers utils.- Author:
- jameschu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIGNORE_FIRST_LIST_IDstatic com.fasterxml.jackson.databind.ObjectMapperSETTER_OBJECT_MAPPERstatic com.fasterxml.jackson.databind.ObjectMapperSETTER_OBJECT_MAPPER_ON_FAIL
-
Constructor Summary
Constructors Constructor Description ObjectMappers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tconvert(java.lang.Object data, java.lang.Class<? extends T> type)Converts any given data into the given type if possible.static <T> Tconvert(ClientBindComposer composer, java.lang.Object data, java.lang.reflect.ParameterizedType type)static com.fasterxml.jackson.databind.ObjectMappercreateGetterObjectMapper(ClientBindComposer composer)static booleanisPropertyLoadStringType(java.lang.Class<?> compClz, java.lang.String field)
-
-
-
Field Detail
-
IGNORE_FIRST_LIST_ID
public static final java.lang.String IGNORE_FIRST_LIST_ID
- See Also:
- Constant Field Values
-
SETTER_OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper SETTER_OBJECT_MAPPER
-
SETTER_OBJECT_MAPPER_ON_FAIL
public static final com.fasterxml.jackson.databind.ObjectMapper SETTER_OBJECT_MAPPER_ON_FAIL
-
-
Method Detail
-
createGetterObjectMapper
public static final com.fasterxml.jackson.databind.ObjectMapper createGetterObjectMapper(ClientBindComposer composer)
-
convert
public static <T> T convert(java.lang.Object data, java.lang.Class<? extends T> type)Converts any given data into the given type if possible. All unknown fields are ignored.
-
convert
public static <T> T convert(ClientBindComposer composer, java.lang.Object data, java.lang.reflect.ParameterizedType type)
-
isPropertyLoadStringType
public static final boolean isPropertyLoadStringType(java.lang.Class<?> compClz, java.lang.String field)
-
-