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

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


      BeansEditorValidator validator, String text) {
    IProject project = file.getProject();
    BeanHelper parentBean = new BeanHelper(parent, file, project);

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

    if (classRule != null) {
      BeansValidationContextHelper classContext = new BeansValidationContextHelper(attribute, parent,
          contextElement, project, reporter, validator, QuickfixProcessorFactory.CLASS, false, reportError,
          config);

      classContext.setCurrentRuleDefinition(ruleDefinition);
      classRule.validate(parentBean, classContext, null);

      BeansValidationContextHelper deprecatedContext = new BeansValidationContextHelper(attribute, parent,
          contextElement, project, reporter, validator, QuickfixProcessorFactory.DEPRECATED, false,
          reportError, config);
      ruleDefinition = getValidationRule(project, BeanDeprecationRule.class);
View Full Code Here

TOP

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

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.