This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Cade's book dashed association question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Cade Watch "Cade New topic
Author

Cade's book dashed association question

Krzysztof Grajek
Ranch Hand

Joined: Mar 07, 2011
Posts: 53
I have a question regarding class diagram presented in Cade's book. On the diagram he uses a dashed arraw to depict assoctiation between jsp pages and controller as well as between stateless beans and entities with <<uses>>. Is it UML compilant? What kind of association is this, I understand association with solid line, aggragation, composition, but cannot find anywhere association with a dashed line.
Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

It's a dependency and it's UML compliant


SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Krzysztof Grajek
Ranch Hand

Joined: Mar 07, 2011
Posts: 53
That was a lame question, of course its a dependency, I had a blackout or something , its even named 'dependency' in my uml tool . What I actually don't know is when to use which, I mean in which cases should I use generalized dependency notation and, in which cases should I use association (arrow ended or just straight line)?
Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

You may use dependency to show that one class uses other class as method return type or method argument, one class use other class in the method body etc.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cade's book dashed association question
 
Similar Threads
Association or Not
Cade's Class Example use of Association
Component diagrams - dependency and association?
uni-directional association (or Directed Association ) vs dependency
association relation in class diagram