list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

W1010 Constraint Syntax Could Not Be Processed

Umple semantic warning issued when the syntax of a constraint cannot be processed

When a constraint-like syntax is found but it cannot be processed by Umple, it is treated as extra code and left as-is. The constraint might not be constructed properly.
The issue could come from unmatched parentheses or from an incorrect usage of operators.

Example

//The warning is raised twice in
//the following as both constraints
//are not properly constructed
class A {
  Integer a;
  Integer b;
  Integer c;
  
  [(a > b)) && a < c]
  [c < a | b > a]
}

      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The warning is not generated
//by fixing the constraint syntax
class A {
  Integer a;
  Integer b;
  Integer c;
  
  [(a > b) && a < c]
  [c < a || b > a]
}
      

Load the above code into UmpleOnline