final AbstractMetaData backend = getBackend();
final String[] properties =
{"display-name", "short-name", "icon", "selected-icon", "grouping", "grouping.ordinal",
"ordinal", "description", "deprecated"};
final StringWriter writer = new StringWriter();
PrintWriter p = new PrintWriter(writer);
for (int i = 0; i < properties.length; i++)
{
final String property = properties[i];
final String attribute = getMetaAttribute(property, locale);
if (StringUtils.isEmpty(attribute))
{
if ("icon".equals(property) ||
"selected-icon".equals(property) ||
"short-name".equals(property))
{
continue;
}
}
PropertyHelper.saveConvert(backend.getKeyPrefix(), PropertyHelper.ESCAPE_KEY, p);
PropertyHelper.saveConvert(backend.getName(), PropertyHelper.ESCAPE_KEY, p);
p.print('.');
PropertyHelper.saveConvert(property, PropertyHelper.ESCAPE_KEY, p);
p.print('=');
PropertyHelper.saveConvert(attribute, PropertyHelper.ESCAPE_VALUE, p);
p.println();
}
p.println();
for (int i = 0; i < propertyMetaDatas.length; i++)
{
final EditableExpressionPropertyMetaData metaData = propertyMetaDatas[i];
p.println(metaData.printBundleText(locale));
p.println();
}
p.close();
return writer.toString();
}