public class ReflectionUtil extends Object
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
setProperty(Object pObject,
String pPropertyName,
String pPropertyValue)
This method attempts to set a property value on a given object by calling a
matching setter.
|
public static boolean setProperty(Object pObject, String pPropertyName, String pPropertyValue) throws IllegalAccessException, InvocationTargetException
pObject
- The object, on which a property is being set.pPropertyName
- The property name.pPropertyValue
- The property value.IllegalAccessException
- Setting the property value failed, because invoking
the setter raised an IllegalAccessException
.InvocationTargetException
- Setting the property value failed, because invoking
the setter raised another exception.Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.