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),
MetaAttributeNames.Core.SOURCE_VALUE_TABLE, null, EmptyDataAttributes.INSTANCE);
computedParameterDataAttributes.merge(parameterDataAttributes, context);