}
private static void printMetaBundle(final ElementMetaData data, Map globalAttributes)
{
System.out.println("-----------------------------------------------------");
final AbstractMetaData amd = (AbstractMetaData) data;
final String keyPrefix = amd.getKeyPrefix();
final String ename = amd.getName();
final String ebundle = amd.getBundleLocation();
System.out.println(keyPrefix + ename + ".display-name=" + ename);
System.out.println(keyPrefix + ename + ".grouping=" + filter(amd.getGrouping(Locale.ENGLISH), "Group"));
System.out.println(keyPrefix + ename + ".description=" + filter(amd.getDescription(Locale.ENGLISH), ""));
System.out.println(keyPrefix + ename + ".deprecated=" + filter(amd.getDeprecationMessage(Locale.ENGLISH), ""));
final AttributeMetaData[] attributes = data.getAttributeDescriptions();
for (int j = 0; j < attributes.length; j++)
{
final AttributeMetaData attribute = attributes[j];
final AbstractMetaData aamd = (AbstractMetaData) attribute;
final String akeyPrefix = aamd.getKeyPrefix();
final String abundle = aamd.getBundleLocation();
final String aname = attribute.getName();
if (abundle.equals(GLOBAL_BUNDLE) && akeyPrefix.startsWith("attribute."))
{
globalAttributes.put (aname, attribute);
continue;
}
System.out.println(akeyPrefix + aname + ".display-name=" + aname);
System.out.println(akeyPrefix + aname + ".grouping=" + filter(aamd.getGrouping(Locale.ENGLISH), "Group"));
System.out.println(akeyPrefix + aname + ".description=" + filter(aamd.getDescription(Locale.ENGLISH), ""));
System.out.println(akeyPrefix + aname + ".deprecated=" + filter(aamd.getDeprecationMessage(Locale.ENGLISH), ""));
}
System.out.println("-----------------------------------------------------");
}