org.apache.xmlrpc.util
Class ReflectionUtil
java.lang.Object
org.apache.xmlrpc.util.ReflectionUtil
public class ReflectionUtil
- extends Object
A utility class for using reflection.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtil
public ReflectionUtil()
setProperty
public static boolean setProperty(Object pObject,
String pPropertyName,
String pPropertyValue)
throws IllegalAccessException,
InvocationTargetException
- This method attempts to set a property value on a given object by calling a
matching setter.
- Parameters:
pObject
- The object, on which a property is being set.pPropertyName
- The property name.pPropertyValue
- The property value.
- Returns:
- Whether a matching setter was found. The value false indicates, that no such
setter exists.
- Throws:
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-2007 Apache Software Foundation. All Rights Reserved.