public class JSONUtil
extends java.lang.Object
Constructor and Description |
---|
JSONUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
fill(java.lang.Object target,
java.util.Map<java.lang.String,java.lang.Object> source)
Uses reflection to fill public fields and Bean properties of
the target object from the source Map.
|
static java.lang.Object |
fill(java.lang.Object target,
java.util.Map<java.lang.String,java.lang.Object> source,
boolean useProperties)
Uses reflection to fill public fields and optionally Bean
properties of the target object from the source Map.
|
static void |
tryFill(java.lang.Object target,
java.util.Map<java.lang.String,java.lang.Object> source)
Ignores reflection exceptions while using reflection to fill
public fields and Bean properties of the target object from the
source Map.
|
public static java.lang.Object fill(java.lang.Object target, java.util.Map<java.lang.String,java.lang.Object> source) throws java.beans.IntrospectionException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static java.lang.Object fill(java.lang.Object target, java.util.Map<java.lang.String,java.lang.Object> source, boolean useProperties) throws java.beans.IntrospectionException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static void tryFill(java.lang.Object target, java.util.Map<java.lang.String,java.lang.Object> source)