org.apache.ws.jaxme.generator.util
public class Reflect extends Object
A set of utility methods for using Java reflection.
| Method Summary | |
|---|---|
| static void | assignBeanValue(Object pBean, String pPropertyName, String pValue) Assigns the value |
| static void | assignBeanValue(Object pBean, String pPropertyName, String pValue, ReflectResolver pResolver) Assigns the value |
Assigns the value pValue to the beans
pBean property pPropertyName.
For example, if the property name is type
and the String pValue is 2, calls
pBean.setType("2");
or
pBean.setType(2);if the respective method exists. Does nothing, if no matching method can be found.
Assigns the value pValue to the beans
pBean property pPropertyName.
For example, if the property name is type
and the String pValue is 2, calls
pBean.setType("2");
or
pBean.setType(2);if the respective method exists. Does nothing, if no matching method can be found.