use of com.iggroup.oss.restdoclet.doclet.type.ModelParameter in project RESTdoclet by IG-Group.
the class MethodBuilder method initModelParams.
/**
* Initialises the model-parameters of this method.
*
* @param params the method's parameters.
* @param tags the parameters' Java documentation tags.
*/
private void initModelParams(Method method, final Parameter[] params, final ParamTag[] tags) {
LOG.debug(method.getName());
ArrayList<ModelParameter> modelParams = new ArrayList<ModelParameter>();
for (Parameter param : params) {
if (isAnnotated(param, ModelAttribute.class)) {
modelParams.add(new ModelParameterBuilder().build(new ModelParameter(), param, tags));
}
}
method.setModelParams(modelParams);
}
Aggregations