Package org.objectstyle.wolips.bindings.wod

Examples of org.objectstyle.wolips.bindings.wod.ApiBindingValidationProblem


  public static boolean hasValidationProblem(String bindingName, List<WodProblem> problems) {
    boolean hasValidationProblem = false;
    if (problems != null) {
      for (WodProblem problem : problems) {
        if (problem instanceof ApiBindingValidationProblem) {
          ApiBindingValidationProblem validationProblem = (ApiBindingValidationProblem) problem;
          hasValidationProblem = validationProblem.getBindingName().equals(bindingName);
        } else if (problem instanceof ApiElementValidationProblem) {
          ApiElementValidationProblem validationProblem = (ApiElementValidationProblem) problem;
          hasValidationProblem = validationProblem.getValidation().isAffectedByBindingNamed(bindingName);
        } else if (problem instanceof WodBindingProblem) {
          WodBindingProblem validationProblem = (WodBindingProblem) problem;
          hasValidationProblem = ComparisonUtils.equals(bindingName, validationProblem.getBindingName());
        }
        if (hasValidationProblem) {
          break;
        }
      }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.bindings.wod.ApiBindingValidationProblem

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.