final DefaultDataAttributes globalAttributes = getGlobalAttributes();
final MetaSelectorRule[] indirectRules = getIndirectRules();
final DirectFieldSelectorRule[] directRules = getDirectRules();
final DataAttributeContext context = getContext();
final ParameterDataRow parameters = masterRow.getParameterDataRow();
final ExpressionDataRow expressionsRow = masterRow.getExpressionDataRow();
final ReportDataRow massDataRow = masterRow.getReportDataRow();
// imported data has been compiled in the subreport ...
final ImportedVariablesDataRow importedDataRow = masterRow.getImportedDataRow();
final DefaultDataSchema defaultDataSchema = new DefaultDataSchema();
if (parameters != null)
{
final MasterDataRow parentRow = masterRow.getParentDataRow();
if (parentRow == null)
{
processParameters(parameters, null, reportEnvironment,
globalAttributes, indirectRules, directRules, defaultDataSchema);
}
else
{
// import the parameters that have been computed already ..
final String[] parameterNames = parameters.getParentNames();
final String[] innerNames = parameters.getColumnNames();
for (int i = 0; i < parameterNames.length; i++)
{
final String name = parameterNames[i];
final DataAttributes attributes = parentRow.getDataSchema().getAttributes(name);
defaultDataSchema.setAttributes(innerNames[i], attributes);