MathewWi / umple

Automatically exported from code.google.com/p/umple
0 stars 0 forks source link

Add qualifier notation to UmpleOnline #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add UML qualifier syntax to UmpleOnline once unique on associations is done, 
which is issue 88.

Original issue reported on code.google.com by TimothyCLethbridge on 24 Jun 2011 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 15 Jun 2012 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 27 Sep 2012 at 8:12

GoogleCodeExporter commented 9 years ago
A qualifier is an ordinary attribute, but it visually appears on the other end 
of an association.

For example in the following accountNo is a qualifier because it is an 
identifier of the Account in the context of the Bank
class Bank {1 -- * Account; } 
class Account {accountNo;}
The accountNo would have to be unique with respect to the bank.
The association could also be implemented using a lookup table (hash table) or 
map, that mapped account numbers  Accounts for quick access.

A syntax for this could be to combine the attribute and association notations:

class Account {accountNo * -- 1 Bank;}

This does not resemble UML, but does indicate that the account number is an 
identifier at the bank. It could be automatically made unique and generated as 
a map.

Original comment by TimothyCLethbridge on 25 Mar 2014 at 11:48