final ElementTypeRegistry registry = ElementTypeRegistry.getInstance();
final ElementMetaData[] elementMetaDatas = registry.getAllElementTypes();
for (int i = 0; i < elementMetaDatas.length; i++)
{
final ElementMetaData metaData = elementMetaDatas[i];
if (metaData == null)
{
logger.warn("Null Expression encountered");
continue;
}
missingProperties.clear();
try
{
final Object type = metaData.create();
}
catch (InstantiationException e)
{
fail("metadata creation failed");
}
final String typeName = metaData.getName();
logger.debug("Processing " + typeName);
final Locale locale = Locale.getDefault();
final String displayName = metaData.getDisplayName(locale);
if (isValid(displayName) == false)
{
logger.warn("ElementType '" + typeName + ": No valid display name");
}
if (metaData.isDeprecated())
{
final String deprecateMessage = metaData.getDeprecationMessage(locale);
if (isValid(deprecateMessage) == false)
{
logger.warn("ElementType '" + typeName + ": No valid deprecate message");
}
}
final String grouping = metaData.getGrouping(locale);
if (isValid(grouping) == false)
{
logger.warn("ElementType '" + typeName + ": No valid grouping message");
}
expressionsByGroup.add(grouping, metaData);
final StyleMetaData[] styleMetaDatas = metaData.getStyleDescriptions();
for (int j = 0; j < styleMetaDatas.length; j++)
{
final StyleMetaData propertyMetaData = styleMetaDatas[j];
final String propertyDisplayName = propertyMetaData.getDisplayName(locale);
if (isValid(propertyDisplayName) == false)
{
logger.warn("ElementType '" + typeName + ": Style " + propertyMetaData.getName() + ": No DisplayName");
}
final String propertyGrouping = propertyMetaData.getGrouping(locale);
if (isValid(propertyGrouping) == false)
{
logger.warn("ElementType '" + typeName + ": Style " + propertyMetaData.getName() + ": Grouping is not valid");
}
if (propertyMetaData.isDeprecated())
{
final String deprecateMessage = propertyMetaData.getDeprecationMessage(locale);
if (isValid(deprecateMessage) == false)
{
logger.warn(
"ElementType '" + typeName + ": Style " + propertyMetaData.getName() + ": No valid deprecate message");
}
}
}
final AttributeMetaData[] attributeMetaDatas = metaData.getAttributeDescriptions();
for (int j = 0; j < attributeMetaDatas.length; j++)
{
final AttributeMetaData propertyMetaData = attributeMetaDatas[j];
final String propertyDisplayName = propertyMetaData.getDisplayName(locale);
if (isValid(propertyDisplayName) == false)