Managing relationships between Java elements

You can show or hide the existing relationships between Java™ elements in Unified Modeling Language (UML) class diagrams.

You can change Java field and association collection types to show attributes as associations or show associations as attributes. By default, Java attributes are shown as associations in UML class diagrams. For example, if an attribute type is a collection, it is shown as an association to the collection type (vector) in a class diagram. In most cases, this might not be useful. Therefore, it is useful to show the type that the collection contains.

You can also show operation signatures and the parent names of Java elements. Showing the parent name displays the fully qualified package name in which a class is owned. It is useful to show parent names, for example, when you need to know the containing projects of Java elements or you have a class diagram that displays Java elements that belong to different packages.

Related concepts
Relationships
Related tasks
Creating relationships between Java elements
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.