Class MapToBean
java.lang.Object
jodd.json.MapToBean
Map to bean converter.
Used when parsing with class metadata enabled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected booleanprotected final JsonParserBase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckClassName(List<String> classnameWhitelist, String className) protected Objectprivate ObjectgenerifyList(List list, Class componentType) Converts type of all list elements to match the component type.protected <K,V> Map <K, V> Change map elements to match key and value types.Converts map to target type.private voidSets the property value.
-
Field Details
-
declared
protected boolean declared -
jsonParser
-
classMetadataName
-
-
Constructor Details
-
MapToBean
-
-
Method Details
-
map2bean
-
checkClassName
-
generifyList
-
setValue
private void setValue(Object target, jodd.introspector.PropertyDescriptor pd, Object value) throws InvocationTargetException, IllegalAccessException Sets the property value. -
generifyMap
-
convert
-