UML: Associations between classes and packages



Hi,

I was wondering in how far it is allowed to mix class and package diagrams in UML.

Example:
Say I have a class which inherits from javax.swing.JFrame. It would be stupid to introduce the class JFrame with its huge interface into the model, since it's part of the platform anyway.
But somehow I have to model the relationship between my custom Frame class and JFrame, so I thought I'd just draw a dependency from my class to the swing package. But the I'd have both classes and packages together in one diagram.


Is that legal? And if so, what kind of line notation do I have to use, a simple dotted line?

Thanks in advance,
Matthias
.



Relevant Pages

  • Re: UML: Associations between classes and packages
    ... Robert C. Martin wrote: ... I was wondering in how far it is allowed to mix class and package diagrams in UML. ...
    (comp.object)
  • Re: creaping coupling......
    ... There is also separation between public and private interfaces ... inherits from another, their public interface are formally decoupled. ... package A is ...
    (comp.object)