{
final AttributeMetaData attrMeta =
element.getMetaData().getAttributeDescription(attributeNamespace, attributeName);
if (attrMeta != null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("FormulaErrorInspection.AttributeNoFormulaNoMetaData",
element.getName(), attrMeta.getDisplayName(Locale.getDefault())),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
else
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("FormulaErrorInspection.AttributeNoFormulaNoMetaData",
element.getName(), attributeNamespace, attributeName),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
return;
}
try
{
compileFormula(s);
}
catch (ParseException pe)
{
final AttributeMetaData attrMeta = element.getMetaData().getAttributeDescription
(attributeNamespace, attributeName);
if (attrMeta != null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("FormulaErrorInspection.AttributeInvalidFormula",
element.getName(), attrMeta.getDisplayName(Locale.getDefault())),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
else
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("FormulaErrorInspection.AttributeInvalidFormulaNoMetaData",
element.getName(), attributeNamespace, attributeName),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
}