File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What Class diagrams comprise, finally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What Class diagrams comprise, finally" Watch "What Class diagrams comprise, finally" New topic
Author

What Class diagrams comprise, finally

Jakub Adelka
Greenhorn

Joined: Dec 18, 2010
Posts: 8
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

Joined: Dec 07, 2008
Posts: 25
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
sudeep narayana
Greenhorn

Joined: May 31, 2009
Posts: 5

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

Joined: Feb 07, 2011
Posts: 17
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

Joined: Jan 16, 2004
Posts: 232
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.

SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What Class diagrams comprise, finally