E032 Reserved Role Name
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E032 Reserved Role NameUmple reports this error when a specific role name is usedIn 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 Solution to The Above So the Message No Longer Appears// 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 Solution to The Above So the Message No Longer Appears// The following shows how to avoid the error class Course { * course_s -- * Course; } Load the above code into UmpleOnline |