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

//The error is raised, A does
//not contain an attribute of
//type B
class A {
  [model: A has attribute of B]
}

class B {
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//A now contains an
//attribute of type B
class A {
  B attr;
  [model: A has attribute of B]
}

class B {
}
      

Load the above code into UmpleOnline