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

User Manual    [Previous]   [Next]   

E091 Attribute Of Type Not Found Constraint

Umple semantic error raised when a class does not contain the required attribute of a given type

Model constraints can be applied to Umple classes to ensure they respect certain properties, as defined in their constraints. This error is raised if a class does not contain an attribute of a specified type in the constraint.

Example

  1. //The error is raised, A does  
  2. //not contain an attribute of  
  3. //type B  
  4. class A {  
  5.   [model: A has attribute of B]  
  6. }  
  7.   
  8. class B {  
  9. }  
  10.         

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

  1. //A now contains an  
  2. //attribute of type B  
  3. class A {  
  4.   B attr;  
  5.   [model: A has attribute of B]  
  6. }  
  7.   
  8. class B {  
  9. }  
  10.         

Load the above code into UmpleOnline