File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Diagram

 
John Lincoln
Ranch Hand
Posts: 192
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should we capture each and every attribute and method in the class diagram ?

I have close to 60 classes. Can i have one class diagram that shows the relations and expanded one which just shows individual classes withe attributes and operations

The book example given by cade shows only few attributes

Please advise

thanks
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public methods which will be referred in sequence diagrams are very important and should be shown. privates are optionals, I did show few.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed on showing all methods in your sequence diagrams. You should also show any other important methods. Having two levels of detail is fine to avoid clutter.
 
Kumar Amit
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So should the getter and setter in the entities be shown?
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that we need to show setters/getters.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic