|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.method.MethodUtil
public final class MethodUtil
MethodUtils
| Method Summary | ||
|---|---|---|
static
|
getGetter(A instance,
String strAttributeName,
Class<?> clazz)
Gets the setter. |
|
static
|
getMethod(String strMethodPrefix,
A instance,
String strAttributeName,
Class<?> clazz)
Gets the method. |
|
static
|
getPrimitiveMethod(String strMethodName,
A instance,
Class<?> clazz)
Gets the primitive method. |
|
static
|
getSetter(A instance,
String strAttributeName,
Class<?> clazz)
Gets the setter. |
|
static
|
set(A instance,
String strAttributeName,
B value)
Sets the attribute. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <A,B> void set(A instance,
String strAttributeName,
B value)
throws SecurityException,
NoSuchMethodException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException
A - the generic type of the instanceB - the generic type of the value to setinstance - the instance to setstrAttributeName - the attribute namevalue - the value of the attribute to set
SecurityException - the security exception
NoSuchMethodException - the no such method exception
IllegalArgumentException - the illegal argument exception
IllegalAccessException - the illegal access exception
InvocationTargetException - the invocation target exception
public static <A> Method getMethod(String strMethodPrefix,
A instance,
String strAttributeName,
Class<?> clazz)
throws SecurityException,
NoSuchMethodException
A - the generic type of the instancestrMethodPrefix - the str method prefixinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
SecurityException - the security exception
NoSuchMethodException - the no such method exception
public static <A> Method getPrimitiveMethod(String strMethodName,
A instance,
Class<?> clazz)
throws SecurityException,
NoSuchMethodException
A - the generic type of the instancestrMethodName - the str method nameinstance - the instanceclazz - the clazz
SecurityException - the security exception
NoSuchMethodException - the no such method exception
public static <A> Method getSetter(A instance,
String strAttributeName,
Class<?> clazz)
throws SecurityException,
NoSuchMethodException
A - the generic typeinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
SecurityException - the security exception
NoSuchMethodException - the no such method exception
public static <A> Method getGetter(A instance,
String strAttributeName,
Class<?> clazz)
throws SecurityException,
NoSuchMethodException
A - the generic type of the instanceinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
SecurityException - the security exception
NoSuchMethodException - the no such method exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||