use of org.apache.tapestry5.annotations.Parameter in project tapestry-5 by apache.
the class DefaultOpenApiDescriptionGenerator method getParameterName.
private String getParameterName(Parameter parameter) {
String name = null;
final RequestParameter requestParameter = parameter.getAnnotation(RequestParameter.class);
if (requestParameter != null && !CommonsUtils.isBlank(requestParameter.value())) {
name = requestParameter.value();
}
ActivationContextParameter activationContextParameter = parameter.getAnnotation(ActivationContextParameter.class);
if (activationContextParameter != null && !CommonsUtils.isBlank(activationContextParameter.value())) {
name = activationContextParameter.value();
}
if (CommonsUtils.isBlank(name)) {
name = parameter.getName();
}
return name;
}
Aggregations