Package org.springframework.ide.eclipse.core.model.validation

Examples of org.springframework.ide.eclipse.core.model.validation.ValidationProblemAttribute


    if (className != null && !SpringCoreUtils.hasPlaceHolder(className)) {
      IType type = JdtUtils.getJavaType(BeansModelUtils.getProject(bean).getProject(), className);
      try {
        if (type != null && Flags.isDeprecated(type.getFlags())) {
          context.warning(bean, "CLASS_IS_DEPRECATED", "Class '" + className + "' is marked deprecated",
              new ValidationProblemAttribute("CLASS", className));
        }
      }
      catch (JavaModelException e) {
      }
    }
View Full Code Here


        else {
          method = Introspector.findMethod(type, methodName, 0, Public.DONT_CARE, Static.DONT_CARE);
        }
        if (method != null && Flags.isDeprecated(method.getFlags())) {
          context.warning(bean, "METHOD_IS_DEPRECATED", "Method '" + method.getElementName()
              + "' is marked deprecated", new ValidationProblemAttribute("CLASS", type
              .getFullyQualifiedName()), new ValidationProblemAttribute("METHOD_OBJ", method));
        }
      }
      catch (JavaModelException e) {
      }
    }
View Full Code Here

        IModelSourceLocation sourceLocation = bean.getElementSourceLocation();
        if (type != null) {
          if (!bean.isAbstract() && !(sourceLocation instanceof JavaModelSourceLocation)) {
            if (type.isInterface()) {
              context.warning(bean, "CLASS_NOT_CLASS", "Class '" + className + "' is an interface",
                  new ValidationProblemAttribute("CLASS", className),
                  new ValidationProblemAttribute("BEAN_NAME", bean.getElementName()));
            } else if (type.isClass() && Flags.isAbstract(type.getFlags())) {
              context.warning(bean, "CLASS_NOT_CONCRETE", "Class '" + className + "' is abstract ",
                  new ValidationProblemAttribute("CLASS", className),
                  new ValidationProblemAttribute("BEAN_NAME", bean.getElementName()));
            }
          }
        } else {
          context.error(bean, "CLASS_NOT_FOUND", "Class '" + className + "' not found",
              new ValidationProblemAttribute("CLASS", className),
              new ValidationProblemAttribute("BEAN_NAME", bean.getElementName()));
        }
      }
      catch (JavaModelException e) {
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.model.validation.ValidationProblemAttribute

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.