Class ConstructorParameterImpl
java.lang.Object
org.exoplatform.services.rest.impl.ConstructorParameterImpl
- All Implemented Interfaces:
ConstructorParameter,Parameter
Describes constructor's parameter.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorParameterImpl(Annotation annotation, Annotation[] additional, Class<?> clazz, Type type, String defaultValue, boolean encoded) Constructs new instance of MethodParameter. -
Method Summary
-
Constructor Details
-
ConstructorParameterImpl
public ConstructorParameterImpl(Annotation annotation, Annotation[] additional, Class<?> clazz, Type type, String defaultValue, boolean encoded) Constructs new instance of MethodParameter.- Parameters:
annotation- seeannotationadditional- seeadditionalclazz- parameter classtype- generic parameter typedefaultValue- default value for parameter. SeeDefaultValue.encoded- true if parameter must not be decoded false otherwise
-
-
Method Details
-
getAnnotation
- Specified by:
getAnnotationin interfaceParameter- Returns:
- main annotation. It mind this annotation describe which
value will be used for initialize parameter, e. g.
PathParam,QueryParam, etc.
-
getAnnotations
- Specified by:
getAnnotationsin interfaceParameter- Returns:
- addition annotation
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceParameter- Returns:
- default value for parameter
-
getParameterClass
- Specified by:
getParameterClassin interfaceParameter- Returns:
- parameter class.
- See Also:
-
getGenericType
- Specified by:
getGenericTypein interfaceParameter- Returns:
- generic parameter type
- See Also:
-
isEncoded
public boolean isEncoded() -
toString
-