Package org.springframework.ide.eclipse.beans.core.internal.model.validation.rules

Examples of org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.BeanReferenceRule


    }

    IProject project = file.getProject();

    ValidationRuleDefinition ruleDefinition = getValidationRule(project, BeanReferenceRule.class);
    BeanReferenceRule refRule = (BeanReferenceRule) (ruleDefinition != null ? ruleDefinition.getRule() : null);

    if (refRule != null) {

      IBeansModelElement modelElement = getBeansModelElement(attribute, parent, file, text);
      if (modelElement == null) {
        return false;
      }

      BeanReferenceValidationContextHelper context = new BeanReferenceValidationContextHelper(attribute, parent,
          contexlElement, project, reporter, validator, QuickfixProcessorFactory.REF, false, reportError,
          config);
      context.setCurrentRuleDefinition(ruleDefinition);
      refRule.validate(modelElement, context, null);

      if (context.getErrorFound()) {
        return true;
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.BeanReferenceRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.