• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What Class diagrams comprise, finally

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic