File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes link attributes vs association class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "link attributes vs association class" Watch "link attributes vs association class" New topic

link attributes vs association class

william kane
Ranch Hand

Joined: Nov 21, 2000
Posts: 260
What is the difference between a link attribute and an attribute in an association class?How is a link attribute expressed in UML?
I did look up for resources on the above and have found
this.(refer section 3.7) But I am still not able to relate to the concept when I compare it with the association class that is used when the association has attributes.
Thanks in advance,

Help me!Help you!!!
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
My read on this: An attribute of the link describes the linkage. For example, I might have a person and an insurance policy and a linkage. The linkage has the relationship attribute such as "owner" or "insured" or "beneficiary". The diagram may just show a line between person and policy but the implementation might have a little relationship-describing object in between.

As an alternative, we could turn owner, insured and beneficiary into normal attributes of the policy. If you like that better, my example may be totally lame.

Does that fit with what you know so far?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: link attributes vs association class
It's not a secret anymore!