out.println("TableModel has no meta-data.");
return;
}
final MetaTableModel metaTableModel = (MetaTableModel) mod;
final DataAttributes tableAttributes = metaTableModel.getTableAttributes();
final DataAttributeContext attributeContext =
new DefaultDataAttributeContext(new GenericOutputProcessorMetaData(), Locale.US);
final String[] tableAttrDomains = tableAttributes.getMetaAttributeDomains();
for (int i = 0; i < tableAttrDomains.length; i++)
{
final String tableAttrDomain = tableAttrDomains[i];
final String[] attributeNames = tableAttributes.getMetaAttributeNames(tableAttrDomain);
for (int j = 0; j < attributeNames.length; j++)
{
final String attributeName = attributeNames[j];
final Object o =
tableAttributes.getMetaAttribute(tableAttrDomain, attributeName, Object.class, attributeContext);
out.println("TableAttribute [" + tableAttrDomain + ':' + attributeName + "]=" + o);
}
}
for (int column = 0; column < mod.getColumnCount(); column++)
{
final DataAttributes columnAttributes = metaTableModel.getColumnAttributes(column);
final String[] columnAttributeDomains = columnAttributes.getMetaAttributeDomains();
for (int i = 0; i < columnAttributeDomains.length; i++)
{
final String colAttrDomain = columnAttributeDomains[i];
final String[] attributeNames = columnAttributes.getMetaAttributeNames(colAttrDomain);
for (int j = 0; j < attributeNames.length; j++)
{
final String attributeName = attributeNames[j];
final Object o =
columnAttributes.getMetaAttribute(colAttrDomain, attributeName, Object.class, attributeContext);
out.println("ColumnAttribute(" + column + ") [" + colAttrDomain + ':' + attributeName + "]=" + o);
}
}
}