|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wicketstuff.rest.utils.reflection.MethodParameter<T>
T
- the generic typepublic class MethodParameter<T>
The class contains the informations of a method parameter, like its type or its index in the array of method parameters.
Constructor Summary | |
---|---|
MethodParameter(Class<T> type,
MethodMappingInfo ownerMethod,
int paramIndex)
Instantiates a new method parameter. |
Method Summary | |
---|---|
Object |
extractParameterValue(MethodParameterContext context)
Extract parameter value from the current web request or other web entities (cookies, request header, etc...). |
Annotation |
getAnnotationParam()
Gets the annotation for the parameter. |
String |
getDeaultValue()
Gets the deault value for the parameter. |
MethodMappingInfo |
getOwnerMethod()
Gets the owner method. |
Class<?> |
getParameterClass()
Gets the type of the method parameter. |
int |
getParamIndex()
Gets the index of the parameter in the array of method's parameters. |
String |
getValdatorKey()
Gets the valdator key. |
boolean |
isRequired()
Checks if the parameter required. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodParameter(Class<T> type, MethodMappingInfo ownerMethod, int paramIndex)
type
- the type of the parameter.ownerMethod
- the owner method for the parameter.paramIndex
- the index of the parameter in the array of method's parameters.Method Detail |
---|
public Object extractParameterValue(MethodParameterContext context)
context
- the context
public Class<?> getParameterClass()
public MethodMappingInfo getOwnerMethod()
public int getParamIndex()
public boolean isRequired()
public String getDeaultValue()
public String getValdatorKey()
public Annotation getAnnotationParam()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |