/
9019NoDuplicateAssociations.txt
28 lines (18 loc) · 1.16 KB
/
9019NoDuplicateAssociations.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
E019 Duplicate Association
Errors and Warnings
noreferences
@@description
<h2>Umple semantic error reported when a class is given two associations with the same name.</h2>
<p>Associations between the same classes must be given different names. This error can occur when two associations have the same role name; the solution is to change one of the role names. The error can also occur when two associations are created without any role name at all. In that case the default name is generated from the associated class. The solution is to add a role name to one of the associations.</p>
<p>The first example below is a simple case where there are identical associations with no role name. The second example shows how to solve this.</p>
<p>The third example shows that error 19 can also occur with association classes. The solution to this can be found in <a href="AssociationClassDefinition.html">the manual page for association classes.</a></p>
</p>
@@example
@@source manualexamples/E019DuplicateAssociation1.ump
@@endexample
@@example
@@source manualexamples/E019DuplicateAssociation2.ump
@@endexample
@@example
@@source manualexamples/E019DuplicateAssociation3.ump
@@endexample