Architecting and designing : UML 2.0 Lite : UML models : UML class diagrams
  
UML class diagrams
The class diagram is the main static analysis diagram for a system. In it, the class structure of the system is specified, with relationships between classes and inheritance structures.
Drawing UML class diagrams
You can draw class diagrams using symbols from the toolbox or the Draw menu. Listed below are some general drawing features of a UML Class diagram that you should be aware of.
Specifying language properties for a class
You must specify a programming language for a class diagram. All classes drawn on the diagram automatically get assigned to this language. You may change the language at any point.
See Specifying language properties for a class.
Hiding Relationship Lines on a Class Diagram
You may hide or reveal relationship lines of all types on any diagram as follows:
1 Select View, Hide/Reveal relationship line(s), or right‑click the diagram workspace and select Hide/Reveal relationship line(s). This opens the Hide/Reveal relationship line dialog. The dialog presents all relationship line types on the diagram, with a button next to each that by default reads “Leave”.
2 To hide a particular relationship line type on the diagram, click on the button next to that line type so that it reads “Hide”.
3 Click OK. All lines of that type will be hidden on the diagram.
To hide a particular line on a diagram, select the line, and then click View, Hide selected <xxx> relationship line(s), or right-click the line and click Hide selected <xxx > relationship line(s).
UML rules
See also UML Rules.
Check your diagram against rules of UML by clicking Reports > Unified Rules Check. A report is generated listing errors and warnings. The diagram itself is also graphically with error numbers where the errors occur. To clear errors, click Clear Errors on the Reports menu.
See also
Specifying language properties for a class
Class
Ports
Object
Interface
Abstract class
Template (or parameterized) class
Bound elements
Utility
Class stereotype
Class attribute
Methods and operations
Display of method formal parameters
Visibility
Persistence
Add immediately associated classes
Relationships
UML models