}
protected ParameterDataRow computeParameterData()
{
AbstractReportDefinition parent = getReport();
final ParameterDataRow parameterRow;
if (parent instanceof MasterReport)
{
final MasterReport mr = (MasterReport) parent;
final LinkedMap values = computeParameterValueMap(mr);
parameterRow = new ParameterDataRow((String[]) values.keys(new String[values.size()]), values.values());
}
else if (parent instanceof SubReport)
{
final SubReport sr = (SubReport) parent;
final ParameterMapping[] inputMappings = sr.getInputMappings();
final Object[] values = new Object[inputMappings.length];
final String[] names = new String[inputMappings.length];
for (int i = 0; i < inputMappings.length; i++)
{
final ParameterMapping inputMapping = inputMappings[i];
names[i] = inputMapping.getAlias();
}
parameterRow = new ParameterDataRow(names, values);
}
else
{
parameterRow = new ParameterDataRow();
}
return parameterRow;
}