This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "link attributes vs association class" Watch "link attributes vs association class" New topic
Author

link attributes vs association class

william kane
Ranch Hand

Joined: Nov 21, 2000
Posts: 260
Hi,
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,
William


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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: link attributes vs association class
 
Similar Threads
Component diagrams - dependency and association?
[ UML ] visibility marker on rolenames in an association
Association Classes
Association class
Association and dependency