public class PropertyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Method |
findGetter(String methodName,
Object instance,
Class<?> valueClass)
Returns the requested getter method from an object instance.
|
static Method |
findSetter(String methodName,
Object instance,
Class<?> valueClass)
Returns the requested setter method from an object instance.
|
public static Method findSetter(String methodName, Object instance, Class<?> valueClass) throws NoSuchMethodException
methodName - Name of the setter method.instance - Object instance to search.valueClass - The setter parameter type (null if don't care).NoSuchMethodException - If method was not found.public static Method findGetter(String methodName, Object instance, Class<?> valueClass) throws NoSuchMethodException
methodName - Name of the getter method.instance - Object instance to search.valueClass - The return value type (null if don't care).NoSuchMethodException - If method was not found.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.