Examples of BeanHelper


Examples of org.springframework.ide.eclipse.quickfix.validator.helper.BeanHelper

    IDOMNode beanNode = getParentBeanNode(parent);
    if (beanNode == null) {
      return null;
    }

    BeanHelper parentBean = new BeanHelper(beanNode, file, file.getProject());

    if (attribute.getLocalName().equals(BeansSchemaConstants.ATTR_DEPENDS_ON)) {
      parentBean.getBeanDefinition().setDependsOn(
          StringUtils.tokenizeToStringArray(text,
              BeanDefinitionParserDelegate.MULTI_VALUE_ATTRIBUTE_DELIMITERS));
      element = parentBean;
    }
    else if (attribute.getLocalName().equals(BeansSchemaConstants.ATTR_PARENT)) {
      element = parentBean;
    }
    else if (attribute.getLocalName().equals(BeansSchemaConstants.ATTR_FACTORY_BEAN)) {
      parentBean.getBeanDefinition().setFactoryBeanName(text);
      element = parentBean;
    }
    else if (parent.getLocalName().equals(BeansSchemaConstants.ELEM_CONSTRUCTOR_ARG)
        && attribute.getLocalName().equals(BeansSchemaConstants.ATTR_REF)) {
      BeanConstructorArgumentHelper ctorHelper = new BeanConstructorArgumentHelper(0, parent, file, parentBean);
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.validator.helper.BeanHelper

    IDOMNode parentBeanNode = getParentBeanNode(parent);
    if (parentBeanNode == null) {
      return false;
    }

    BeanHelper parentBean = new BeanHelper(parentBeanNode, file, project);

    BeansValidationContextHelper context = new BeansValidationContextHelper(attribute, parent, contextElement,
        project, reporter, validator, QuickfixProcessorFactory.PROPERTY, false, reportError, config);
    BeanPropertyHelper property = new BeanPropertyHelper(parent, file, parentBean);
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.validator.helper.BeanHelper

  @Override
  public boolean validateAttributeWithConfig(IBeansConfig config, IResourceModelElement contextElement, IFile file,
      AttrImpl attribute, IDOMNode parent, IReporter reporter, boolean reportError,
      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) {
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.validator.helper.BeanHelper

  public boolean validateAttributeWithConfig(IBeansConfig config, IResourceModelElement contextElement, IFile file,
      AttrImpl attribute, IDOMNode parent, IReporter reporter, boolean reportError,
      BeansEditorValidator validator, String text) {
    IProject project = file.getProject();
    IDOMNode parentNode = getParentBeanNode(parent);
    BeanHelper parentBean = new BeanHelper(parentNode, file, project);

    ValidationRuleDefinition ruleDefinition = getValidationRule(project, BeanConstructorArgumentRule.class);
    BeanConstructorArgumentRule constructorArgRule = (BeanConstructorArgumentRule) (ruleDefinition != null ? ruleDefinition
        .getRule() : null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.