|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rabbitmq.tools.json.JSONUtil
public class JSONUtil
Utility methods for working with JSON objects in Java.
Constructor Summary | |
---|---|
JSONUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONUtil()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |