// massdata
if (massDataRow != null)
{
final GenericDataAttributes parameterDataAttributes = getTableDataAttributes();
final TableModel data = massDataRow.getReportData();
if (data instanceof MetaTableModel == false)
{
final int count = data.getColumnCount();
for (int i = 0; i < count; i++)
{
final String colName = data.getColumnName(i);
parameterDataAttributes.setup(colName, data.getColumnClass(i), "table", globalAttributes);
final DefaultDataAttributes computedParameterDataAttributes = new DefaultDataAttributes();
computedParameterDataAttributes.merge(parameterDataAttributes, context);
applyRules(indirectRules, directRules, computedParameterDataAttributes);
defaultDataSchema.setAttributes(colName, computedParameterDataAttributes);
}
}
else
{
final MetaTableModel mt = (MetaTableModel) data;
final DefaultDataAttributes tableGlobalAttributes = new DefaultDataAttributes();
tableGlobalAttributes.merge(globalAttributes, context);
tableGlobalAttributes.merge(mt.getTableAttributes(), context);
try
{
defaultDataSchema.setTableAttributes(tableGlobalAttributes);
}
catch (CloneNotSupportedException e)
{
logger.warn("Unable to copy global data-attributes", e);
}
final int count = data.getColumnCount();
for (int i = 0; i < count; i++)
{
final String colName = data.getColumnName(i);
final DefaultDataAttributes computedParameterDataAttributes = new DefaultDataAttributes();
computedParameterDataAttributes.merge(tableGlobalAttributes, context);
computedParameterDataAttributes.merge(mt.getColumnAttributes(i), context);
parameterDataAttributes.setup(colName, data.getColumnClass(i), "table", EmptyDataAttributes.INSTANCE);
computedParameterDataAttributes.merge(parameterDataAttributes, context);
applyRules(indirectRules, directRules, computedParameterDataAttributes);
defaultDataSchema.setAttributes(colName, computedParameterDataAttributes);
}