{
final ElementMetaData type = allTypes[i];
final String prefix;
if (type instanceof AbstractMetaData)
{
final AbstractMetaData metaData = (AbstractMetaData) type;
final String prefixMetadata = metaData.getKeyPrefix();
if (StringUtils.isEmpty(prefixMetadata))
{
prefix = "";
}
else
{
prefix = prefixMetadata + type.getName() + ".";
}
}
else
{
prefix = "element." + type.getName() + ".";
}
printMetadata(type, prefix, "display-name", type.getName());
printMetadata(type, prefix, "grouping", "");
printMetadata(type, prefix, "grouping.ordinal", "0");
printMetadata(type, prefix, "ordinal", "0");
printMetadata(type, prefix, "description", "");
printMetadata(type, prefix, "deprecated", "");
printMetadata(type, prefix, "icon", "");
System.out.println();
final AttributeMetaData[] attributeDescriptions = type.getAttributeDescriptions();
for (int j = 0; j < attributeDescriptions.length; j++)
{
final AttributeMetaData attribute = attributeDescriptions[j];
final String attrNs = ElementTypeRegistry.getInstance().getNamespacePrefix(attribute.getNameSpace());
final String attrPrefix;
if (attribute instanceof AbstractMetaData)
{
final AbstractMetaData metaData = (AbstractMetaData) attribute;
final String prefixMetadata = metaData.getKeyPrefix();
if (StringUtils.isEmpty(prefixMetadata))
{
attrPrefix = "";
}
else