|
||||||||||
| 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,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
Gets the setter. |
|
static
|
getMethod(java.lang.String strMethodPrefix,
A instance,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
Gets the method. |
|
static
|
getPrimitiveMethod(java.lang.String strMethodName,
A instance,
java.lang.Class<?> clazz)
Gets the primitive method. |
|
static
|
getSetter(A instance,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
Gets the setter. |
|
static
|
set(A instance,
java.lang.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,
java.lang.String strAttributeName,
B value)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.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
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
java.lang.IllegalArgumentException - the illegal argument exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.reflect.InvocationTargetException - the invocation target exception
public static <A> java.lang.reflect.Method getMethod(java.lang.String strMethodPrefix,
A instance,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
A - the generic type of the instancestrMethodPrefix - the str method prefixinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
public static <A> java.lang.reflect.Method getPrimitiveMethod(java.lang.String strMethodName,
A instance,
java.lang.Class<?> clazz)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
A - the generic type of the instancestrMethodName - the str method nameinstance - the instanceclazz - the clazz
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
public static <A> java.lang.reflect.Method getSetter(A instance,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
A - the generic typeinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
public static <A> java.lang.reflect.Method getGetter(A instance,
java.lang.String strAttributeName,
java.lang.Class<?> clazz)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
A - the generic type of the instanceinstance - the instancestrAttributeName - the str attribute nameclazz - the clazz
java.lang.SecurityException - the security exception
java.lang.NoSuchMethodException - the no such method exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||