|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.helper.ReflectionHelper
public class ReflectionHelper
A helper to simplify some of the more common reflection tasks used in XUI
Copyright: Copyright (c) 2004
$Revision: 1.5 $
| Field Summary | |
|---|---|
static int |
LOG_ERROR_MESSAGE
|
static int |
PRINT_STACK_TRACE
|
| Constructor Summary | |
|---|---|
ReflectionHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
constructViaReflection(java.lang.String className,
java.lang.Object[] values)
Create a new Object via reflection |
static int |
getErrorMode()
Get the current error mode |
static java.lang.Object |
getViaReflection(java.lang.String methodName,
java.lang.Object comp)
Get a property using refelction instead of the property helper. |
static void |
setErrorMode(int m)
Set the error mode for reflection errors |
static boolean |
setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
boolean isBoolean)
Set a property using reflection instead of the property helper. |
static boolean |
setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
java.lang.Class objectClass)
Set a property using refelction instead of the property helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PRINT_STACK_TRACE
public static final int LOG_ERROR_MESSAGE
| Constructor Detail |
|---|
public ReflectionHelper()
| Method Detail |
|---|
public static void setErrorMode(int m)
m - the new modepublic static int getErrorMode()
public static java.lang.Object getViaReflection(java.lang.String methodName,
java.lang.Object comp)
methodName - the method namecomp - the component being modified
public static boolean setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
boolean isBoolean)
methodName - the method namecomp - the component being modifiedvalue - the new valueisBoolean - is it a boolean property being modified
public static boolean setViaReflection(java.lang.String methodName,
java.lang.Object comp,
java.lang.Object value,
java.lang.Class objectClass)
methodName - the method namecomp - the component being modifiedvalue - the new valueobjectClass - the class of the argument of the set method being invoked
public static java.lang.Object constructViaReflection(java.lang.String className,
java.lang.Object[] values)
className - the class to constructvalues - an array of arguments used by the constructor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||