final String[] elements = metaData.getReferencedElements(expression, o);
for (int j = 0; j < elements.length; j++)
{
final String element = elements[j];
final AbstractReportDefinition reportDefinition = reportRenderContext.getReportDefinition();
final ReportElement e =
FunctionUtilities.findElementByAttribute(reportDefinition, AttributeNames.Core.NAMESPACE,
AttributeNames.Core.NAME, element);
if (e == null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("InvalidElementReferenceInspection.ExpressionReferencesInvalidName",
expression.getName(), metaData.getDisplayName(Locale.getDefault())),
new PropertyLocationInfo(expression, metaData.getName())));
}
}
}
}
catch (Exception e)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
e.getMessage(),
new LocationInfo(expression)));
}
}