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