UML Class diagrams with Java packages?
Posted
by
loosebruce
on Programmers
See other posts from Programmers
or by loosebruce
Published on 2012-12-11T15:21:47Z
Indexed on
2012/12/11
17:22 UTC
Read the original article
Hit count: 347
I am trying to model in UML 2.0 a Java servlet application that has three classes
- Servlet class; essentially a main class that acts as the controller
- DatabaseLogic; contains methods for database operations
- XMLBuilder; builds an XML from a query result string
The classes use a variety of packages from the Java library. I am unsure how to model this in UML
Do I have to create a package and show which libraries are used for each individual class or can I just have one large package in the diagram with all the libraries showing which classes have dependencies on which.
As per this diagram
This is my first time working with java properly (im a C++ guy)
Apart from being a bit messy , is this a correct UML representation of the system I described?
Does a Package in UML mean the same as a Package in Java?
© Programmers or respective owner