[Uml-devel] [Bug 56184] Umbrello XMI file format doesn't conform with uml13.dtd
Marcus Alanen
maalanen at abo.fi
Sun Jan 2 09:59:05 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=56184
------- Additional Comments From maalanen abo fi 2005-01-02 18:58 -------
> 1) Simple (undirected) association between class A and class B
>
> AssociationEnd A: isNavigable="true"
> AssociationEnd B: isNavigable="true
Yes, OK.
> 2) Directed association from class A to class B
> (arrowhead at B)
>
> AssociationEnd A: isNavigable="false"
> AssociationEnd B: isNavigable="true"
I had to check... This is how we're doing it as well. OK.
> 3) Aggregation: A has a reference to B
> (hollow diamond at A)
>
> AssociationEnd A: isNavigable="false" aggregation="aggregate"
> AssociationEnd B: isNavigable="true" aggregation="none"
OK, although there's no reason why isNavigable couldn't be true
also at the A end. The way you do it above, you should draw it
as a hollow diamond at A, and an arrowhead at B. (In programming you
even quite often have this case, where the "B" objects have a pointer
to their parent "A" element)
> 4) Composition: A contains an instance of B
> (solid diamond at A)
>
> AssociationEnd A: isNavigable="false" aggregation="composite"
> AssociationEnd B: isNavigable="true" aggregation="none"
Ditto here.
> aggregation="none" if not stated otherwise,
> targetScope="instance" and ordering="false" in all cases.
OK.
More information about the umbrello-devel
mailing list