if (metaData.isMandatory() && o == null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("ExpressionsParameterInspection.MandatoryPropertyMissing",
expression.getName(), metaData.getDisplayName(Locale.getDefault())),
new PropertyLocationInfo(expression, metaData.getName())));
}
}
if (expression instanceof ValidateableExpression)
{
final ValidateableExpression vae = (ValidateableExpression) expression;
final Map map = vae.validateParameter(new ReportDesignerDesignTimeContext(designerContext), Locale.getDefault());
final Iterator iterator = map.entrySet().iterator();
while (iterator.hasNext())
{
final Map.Entry entry = (Map.Entry) iterator.next();
final String property = (String) entry.getKey();
final String warning = (String) entry.getValue();
if (property == null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("ExpressionsParameterInspection.ExpressionValidationError",
expression.getName(), warning),
new LocationInfo(expression)));
}
else
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("ExpressionsParameterInspection.ExpressionValidationPropertyError",
expression.getName(), property, warning),
new PropertyLocationInfo(expression, property)));
}
}
}
}
catch (Exception e)