list of dots

User Manual    [Previous]   [Next]   

E090 Attribute Name Not Found Constraint

Umple semantic error raised when a class does not contain an attribute of a given name specified in a constraint

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 with a name specified in the constraint.
The attribute might have been defined in a separate file previously, but no longer exists, causing the error.

Example

//Class A does not contain
//the appropriate attribute,
//the constraint causes the error
class A {
  [model: A has attribute named attr]
}
// @@@skipcompile
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The class A now contains an
//attribute with the appropriate name
class A {
  attr;
  [model: A has attribute named attr]
}
      

Load the above code into UmpleOnline