jQuery in Action, 3rd edition
The moose likes OO, Patterns, UML and Refactoring and the fly likes New to UML Design Docs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "New to UML Design Docs" Watch "New to UML Design Docs" New topic

New to UML Design Docs

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
I am new to laying out design documents. I have a service class that calls
a method in a factory which will return 1 of three classes. The 3 classes
are extended from an abstract class which provides the interface. The factory will return 1 of the 3 subclasses depending on what is passed to it. The usual factory setup. The problem is I'm not sure how to show this in a uml design document. If anyone has experience in writing uml design docs, I would appreciate some advice.

Joe Lank

Joined: Jun 08, 2004
Posts: 9
I'm also fairly new to UML design and such.

I'm familiar with the development process(Design, Coding, Testing), but my knowledge about creating and implementing UML(Class Diagrams, Object Diagrams, Sequence Diagrams, State Chart Diagrams) is lax, as I am taking a summer class to introduce me to these fundamental concepts.

Could someone please post a URL for a site that will properly instruct me as to their creation and usage when programming?

PS - These forums are great, though the use of 'Search' should be relied upon more heavily, as most questions have already been answered.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
We send many people to Scott Ambler's http://www.AgileModeling.com site. Search around the articles - there are several with samples of all the models. Post whatever helps you back here so we'll know what's good! Cheers!

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
UML Distilled by Martin Fowler
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Take a look at our UML FAQ: http://faq.javaranch.com/view?UmlFaq

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
What I have been looking for is an example of a sequence diagram where the class diagram is using a factory pattern to create 1 of 3 possible sub-classes of a base class.
I agree. Here's the link: http://aspose.com/file-tools
subject: New to UML Design Docs
It's not a secret anymore!