ch.ralscha.extdirectspring.util
Class ParameterInfo

java.lang.Object
  extended by ch.ralscha.extdirectspring.util.ParameterInfo

public class ParameterInfo
extends Object

Object holds information about a parameter as the name, type and the attributes of a RequestParam annotation

Author:
Ralph Schaer

Constructor Summary
ParameterInfo(Class<?> clazz, Method method, int paramIndex, Class<?> type, String paramName, Annotation[] paramAnnotations)
           
 
Method Summary
 Class<?> getCollectionType()
           
 String getDefaultValue()
           
 String getName()
           
 Class<?> getType()
           
 org.springframework.core.convert.TypeDescriptor getTypeDescriptor()
           
 boolean isHasRequestParamAnnotation()
           
 boolean isRequired()
           
 boolean isSupportedParameter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterInfo

public ParameterInfo(Class<?> clazz,
                     Method method,
                     int paramIndex,
                     Class<?> type,
                     String paramName,
                     Annotation[] paramAnnotations)
Method Detail

getType

public Class<?> getType()

getCollectionType

public Class<?> getCollectionType()

getName

public String getName()

isHasRequestParamAnnotation

public boolean isHasRequestParamAnnotation()

isRequired

public boolean isRequired()

getDefaultValue

public String getDefaultValue()

isSupportedParameter

public boolean isSupportedParameter()

getTypeDescriptor

public org.springframework.core.convert.TypeDescriptor getTypeDescriptor()


Copyright © 2010-2011. All Rights Reserved.