Package org.apache.xmlrpc.util
Class ReflectionUtil
- java.lang.Object
-
- org.apache.xmlrpc.util.ReflectionUtil
-
public class ReflectionUtil extends java.lang.Object
A utility class for using reflection.
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setProperty
public static boolean setProperty(java.lang.Object pObject, java.lang.String pPropertyName, java.lang.String pPropertyValue) throws java.lang.IllegalAccessException, java.lang.reflect.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:
java.lang.IllegalAccessException
- Setting the property value failed, because invoking the setter raised anIllegalAccessException
.java.lang.reflect.InvocationTargetException
- Setting the property value failed, because invoking the setter raised another exception.
-
-