This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Sprecifics cases to be represent in Class Diagram. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Sprecifics cases to be represent in Class Diagram." Watch "Sprecifics cases to be represent in Class Diagram." New topic
Author

Sprecifics cases to be represent in Class Diagram.

Demetrio Carvalho
Greenhorn

Joined: Oct 24, 2010
Posts: 18
How do I represent with a class diagram these situations:
1 - The Class cA that it is Inner Class inside Class cB. How do I desing the relationship between Classes cA and cB?
2 - The Class cC that receive a type of object cD as parameter. How do I desing the relationship between Classes cC and cD?
3 - The Class cE has a method mZ. The method mZ has a variable vX which is declare this way:
Object myObject = otherClass.newInstance();
myAbstractClass vX = (myAbstractClass) myObject;
In the last situation, I am wondering if I should show both class in the diagram:
the SuperClass (Object class) and the Abstract Class (myAbstractClass).
And, if I must show both, how do I represent the relationship between
the three classes: Object, OtherClass and MyAbstract.

Thanks in advance
Dem├ętrio
Demetrio Carvalho
Greenhorn

Joined: Oct 24, 2010
Posts: 18
Hello everybody. If I didn't make my question clear, please let me know.

Hugs
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Do you have any ideas or answers to your own questions? If you post them, readers may be able to point out aspects that need work or stuff that is fine. As a hint, there are three main types of relationships in the UML. They are association, aggregation and composition and there are symbols for each one of these.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sprecifics cases to be represent in Class Diagram.
 
Similar Threads
Domain object and Value Object in class diagram
strategy vs. abstract class
Class Diagram
Class Diagram and Object Diagram
Sequence Diagram Question