AttrImpl attribute, IDOMNode parent, IReporter reporter, boolean reportError,
BeansEditorValidator validator, String text) {
IProject project = file.getProject();
ValidationRuleDefinition ruleDefinition = getValidationRule(project, NamespaceElementsRule.class);
NamespaceElementsRule rule = (NamespaceElementsRule) (ruleDefinition != null ? ruleDefinition.getRule() : null);
if (rule != null) {
boolean errorFound = false;
BeanReferenceXmlValidationContextHelper context = new BeanReferenceXmlValidationContextHelper(validator,
attribute, parent, file, config, contextElement, reporter, reportError);
String attributeName = attribute.getName();
context.setCurrentRuleDefinition(ruleDefinition);
rule.validate(parent, attributeName, context);
errorFound |= context.getErrorFound();
if (errorFound) {
return true;