Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What Class diagrams comprise, finally

 
Jakub Adelka
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have skimmed the considerably part of the forum, and I really did not find out, an answer to this question, what class diagrams should be made of?
In the various UML articles, I did not find, that .jsp files, are part of it, but in Cade's book, it is. Since they will, after all, grade my worked solution, should I follow the patter of the diagrams they use their book?
Thanks
 
Saurabh Gokhale
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, we can display jsp pages as part of class diagram. Though displaying JSP pages is not mandatory, remember jsp does get compiled into regular java class so technically it is not wrong to display them on the class diagrams.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jakub,
In the real world, JSPs are not part of the class diagram. In the exam, they are. I started a list of differences between Cade/Sheil and real life. It includes this item and others.
 
sudeep narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

http://humphreysheil.blogspot.com/2009/11/book-chapter-nine-available-for.html

From the above link comment section

Hi Andrea

I put JSPs in the class diagram because I believe that the presentation tier is a very important part of the overall architecture. From my perspective, if the front end was to be written as a Swing client, then those classes would be in the class diagram. JSPs and the components that are called from them are ultimately compiled into Java classes in any event. I do understand the perspective that says that JSPs should not be in the clas diagram, but I believe in having them there to represent the presentation tier.

Humphrey
 
Sorin Ciolofan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jakub Adelka wrote:I have skimmed the considerably part of the forum, and I really did not find out, an answer to this question, what class diagrams should be made of?
In the various UML articles, I did not find, that .jsp files, are part of it, but in Cade's book, it is. Since they will, after all, grade my worked solution, should I follow the patter of the diagrams they use their book?
Thanks


Hi!

I think in Cade's book is not so complete and accurate.
Personally I'm not a supporter of including the jsp's in the class diagram. First of all they are part of the presentation layer and not of the model that has to be designed in the class diagram.
Secondly, when those jsp's were included, no attribute or method was mentioned, but just a class name - this does not make too much sense either I suppose...

Also in the Cade's book I saw in the class diagram some helper classes such as "Money" which are not defined anymore, but they are used when the attributes of other classes are defined.
I'm wondering if a complete class diagram should not include these helper classes as well?
For example saying that Money contains a currency and an amount field, etc, etc...
 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP-pages does not belong to Class-diagram. Cade's example is missing classes/components. It leaves too much questions.

I am professional SW Designer and that kind of architectural plans are nightmare. Although I can always decide if architect cannot present clearly and will not clarify.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic