public class GQLPropertyUtils extends Object
| Constructor and Description |
|---|
GQLPropertyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getPropertyType(Class<?> clazz,
String propertyName)
Get property type within given clazz
|
static <T> T |
getPropertyValue(Object source,
String propertyName)
Get property value with given property name on given object
|
static void |
setPropertyValue(Object target,
String propertyName,
Object valueToSet)
Set property value on given target object
|
public static final <T> T getPropertyValue(Object source, String propertyName)
T - the property typesource - the source objectpropertyName - the name of the property within source objectpublic static final void setPropertyValue(Object target, String propertyName, Object valueToSet)
target - the object to set value inpropertyName - the property name of the value to be setvalueToSet - the value to be setCopyright © 2019. All rights reserved.