// Process the op parameters
if( paramInfo != null )
{
for(int i = 0; i < paramInfo.length; i ++)
{
ParameterInfo pinfo = paramInfo[i];
String pname = pinfo.getName();
String pdescription = null;
ManagementParameter mpa = null;
// Look to ManagementParameter for info
if (i < params.length)
{
mpa = params[i];
if (mpa.name().equals(AnnotationDefaults.EMPTY_STRING) == false)
pname = mpa.name();
if (mpa.description().equals(AnnotationDefaults.EMPTY_STRING) == false)
pdescription = mpa.description();
}
// Generate a name if there is none
if (pname == null)
pname = "arg#" + i;
Fields fields = new DefaultFieldsImpl(pname);
if (pdescription != null)
fields.setField(Fields.DESCRIPTION, pdescription);
MetaMapper[] paramMapper = {null};
MetaType metaType = getMetaType(pinfo, pinfo.getParameterType(), metaData, true, paramMapper);
fields.setField(Fields.META_TYPE, metaType);
// Delegate others (legal values, min/max etc.) to the constraints factory
try
{
Class<? extends ManagedParameterConstraintsPopulatorFactory> factoryClass = opConstraintsFactor;