T
- the generic typepublic class MethodParameter<T> extends Object
Constructor and Description |
---|
MethodParameter(Class<? extends T> type,
MethodMappingInfo ownerMethod,
int paramIndex)
Instantiates a new method parameter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MethodParameter(Class<? extends 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.public Object extractParameterValue(MethodParameterContext context)
context
- the contextpublic Class<?> getParameterClass()
public MethodMappingInfo getOwnerMethod()
public int getParamIndex()
public boolean isRequired()
public String getDeaultValue()
public String getValdatorKey()
public Annotation getAnnotationParam()
Copyright © 2015. All rights reserved.