I am working on class and components diagrams from my assignment.
When I work on the class diagram, I need to provide public method names for my later sequence diagrams. What are most likely public methods I should reference in my class diagram? My sequence diagrams will conduct operations of post , review, submit, issue to entities. Also, shall I provide multiplicity detail and/or reveal the relationship such as aggregation/composition towards the class diagram entities?
For the component diagram, what is the proper way to present EJB, servlets, JSP, major POJOs . I just add EJB, JSP as extension of components, is this okay? Also, I find difficult to present servlets on web component, difficult to represent components of POJO's and Design Pattern. Do you have any idea about this?
Regarding the public methods in the class diagrams, these are really those methods you refer in the sequence diagrams.
For example the user performs search. The sequence diagram should probably have a findXXX method or equivalent. This findXXX method will be in your class diagram for one of your classes.
For the relationships in the class diagram, you do need to satisfy them according to the domain model. How you accomplish it (using aggregation or composition) is what you need to decide.
For component diagram, the approach I doing mine is to list the artifacts in the component, similar to Sheil's component diagram.
Representing design patterns in component diagrams may be difficult because a design pattern can consist of a group of classes/components. Yet in the component diagram, it is clear if you have say a component called "Patten X" to do such as such. An example can be found in the old study guide by Cade.