final Iterator parameterIterator = metaObject.getParameter().iterator();
boolean commaNeeded = false;
while (parameterIterator.hasNext())
{
Parameter paramter = (Parameter)parameterIterator.next();
if (!ParameterDirectionKindEnum.PDK_RETURN.equals(paramter.getKind()))
{
String type = null;
if (paramter.getType() == null)
{
this.logger.error(
"ERROR! No type specified for parameter --> '" + paramter.getName() +
"' on operation --> '" +
this.getName() +
"', please check your model");
}
else
{
type = ((ClassifierFacade)this.shieldedElement(paramter.getType())).getFullyQualifiedName();
}
if (commaNeeded)
{
buffer.append(", ");
}
if (StringUtils.isNotBlank(modifier))
{
buffer.append(modifier);
buffer.append(" ");
}
buffer.append(type);
if (withArgumentNames)
{
buffer.append(" ");
buffer.append(paramter.getName());
}
commaNeeded = true;
}
}
return buffer.toString();