uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

E032 Reserved Role Name

Umple reports this error when a specific role name is used

In order to define a reflexive association, it is necessary to specify role names. There is a situation where it is possible to define a reflexive association with one role name. When this happens, Umple uses an implicit name for the second role name which is the plural form of the class name (e.g. if the class name is Computer, plural form would be computers). Therefore, if a user uses plural form of the class name as role name, Umple produces an error.

Example

// This example generates the error message

class Course {  
  * -- * Course courses;  
}  


      

Load the above code into UmpleOnline

 

Another Example

// The following shows how to avoid the error

class Course {  
  * -- * Course course_s ;  
}  


      

Load the above code into UmpleOnline

 

Another Example

// This example generates the error message

class Course {  
  * courses -- * Course;  
}  


      

Load the above code into UmpleOnline

 

Another Example

// The following shows how to avoid the error

class Course {  
  * course_s -- * Course;  
}  


      

Load the above code into UmpleOnline