A Class describes a group of objects that have common properties and behavior.
A Class can be assigned as a data type for an Attribute, Operation, Parameter or Type Definition.
You can create a Class through the context menu of a Package: right-click the Package, point to New, point to UML, point to Structure, and then click Class. You can also create a Class on a Class Diagram.
In addition, you can create a Class by copying an existing Class. Modeler copies the Class' links, child items and child diagrams. For more information, see
Copying items.
Note that when you add a Class to a Concurrency Diagram, you add an instance symbol of that Class to the diagram (not an Instance item). The instance symbol of the Class has additional properties that you can define by right-clicking the Class on the diagram, and then clicking Instance Properties.
In the Modeler panes, a short-cut symbol on the Class' icon indicates that the item is a stub. For more information, see
Stubs.
On a Class Diagram the View Options for a Class allow you to show or hide:
• Attributes and Operations of a Class by access
• Receptions
• Access Characters
• Attribute Signatures and Operation Signatures.
For information about using a Signature to create a Return Type and Parameters for an Operation, and a Type and Default for an Attribute, see the following topics:
When using in-place editing to change a signature on a Class Diagram, use the Ctrl+Enter keys to add a return and use the Enter keys to save the changes.
• Full Name
• Stereotypes
To help you work with Super Classes and Sub Classes, Modeler includes the Class View Browser. To open the Class View Browser for a Class, right-click the Class, and then click Browse Class. For more information about the Class View Browser, see
Class view browser.
The Items tab of a Class' Property Pages allows you to create Attributes and Operations.
If you select the UML\Classes folder in the Dictionary pane, the Contents pane displays the following information about each Class in the model: Name, Visibility, Parent, Abstract, Base Class, Changed By and Changed On.
The following sections provide information about how a Class is used in the model. For more information about a property, item, model part or diagram, click it.
Association - The Association is owned jointly by the Class and the associated item. The access permissions you have to an Association are determined by the access permissions you have to the item at the start end of the Association.
Dependency - The Dependency is owned jointly by the Class and the associated item. The access permissions you have to a Dependency are determined by the access permissions of the dependent item.
Generalization - The Generalization is owned jointly by the Class and the associated Class or Interface. The access permissions you have to a Generalization are determined by the access permissions you have to the sub Class or sub Interface.
In addition to the owning
Package or
Model, a Class can be linked to the following items.
Activity - The linked Activity specifies the behavior that is invoked when you create an instance of the Class, that is, classifier behavior. The linked Activity must be owned by the Class, either directly or indirectly through inheritance. This link can be made through the Classifier Behaviors association on the Items tab of the Class' Property Pages.
Operation - The linked Operation specifies the behavior that is invoked when you create an instance of the Class, that is, classifier behavior. The linked Operation must be owned by the Class, either directly or indirectly through inheritance. This link can be made through the Classifier Behaviors association on the Items tab of the Class' Property Pages.
State Machine - The linked State Machine specifies the behavior that is invoked when you create an instance of the Class, that is, classifier behavior. The linked State Machine must be owned by the Class, either directly or indirectly through inheritance. This link can be made through the Classifier Behaviors association on the Items tab of the Class' Property Pages.
When used as a data type, Modeler creates a special link between the Class and the referencing item. You cannot navigate this link through the Links Editor.