|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.util.Reflect
A set of utility methods for using Java reflection.
Constructor Summary | |
Reflect()
|
Method Summary | |
static void |
assignBeanValue(java.lang.Object pBean,
java.lang.String pPropertyName,
java.lang.String pValue)
Assigns the value pValue to the beans
pBean property pPropertyName .
|
static void |
assignBeanValue(java.lang.Object pBean,
java.lang.String pPropertyName,
java.lang.String pValue,
ReflectResolver pResolver)
Assigns the value pValue to the beans
pBean property pPropertyName .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Reflect()
Method Detail |
public static void assignBeanValue(java.lang.Object pBean, java.lang.String pPropertyName, java.lang.String pValue) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
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.
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static void assignBeanValue(java.lang.Object pBean, java.lang.String pPropertyName, java.lang.String pValue, ReflectResolver pResolver) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
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.
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |