Interface OperationParameter
public interface OperationParameter
A single operation parameter.
- Since:
- 2.0.0
- Author:
- Phillip Webb, Moritz Halbritter
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annotation) Returns this element's annotation for the specified type if such an annotation is present, else null.getName()
Returns the parameter name.Class
<?> getType()
Returns the parameter type.boolean
Return if the parameter is mandatory (does not accept null values).
-
Method Details
-
getName
-
getType
-
isMandatory
boolean isMandatory()Return if the parameter is mandatory (does not accept null values).- Returns:
- if the parameter is mandatory
-
getAnnotation
Returns this element's annotation for the specified type if such an annotation is present, else null.- Type Parameters:
T
- type of the annotation- Parameters:
annotation
- class of the annotation- Returns:
- annotation value
- Since:
- 2.7.8
-