Chapter 4 Building Structural Diagrams
You can modify an object's properties from its property sheet. To open a class property sheet, double-click its diagram symbol or its Browser entry in the Classes folder. The following sections detail the property sheet tabs that contain the properties most commonly entered for classes.
The General tab contains the following properties:
Property | Description |
---|---|
Name | Specifies the name of the item, which should be clear and meaningful, and should convey the item's purpose to non-technical users. |
Code | Specifies the technical name of the object, which is used for generating code or scripts. |
Comment | Descriptive comment for the object. |
Extends | Specifies the parent class (to which the present class is linked by a generalization). Click the Select Classifier tool to the right to specify a parent class and click the Properties tool to access its property sheet. |
Stereotype | Extends the semantics of the object beyond the core UML definition. The following common stereotypes are available by default:
Other language-specific stereotypes may be available. These stereotypes are defined in the object language file. For more information, see "Stereotypes (Profile)" in the Extending your Models with Profiles chapter of the Customizing and Extending PowerDesigner manual. |
Visibility | Specifies the visibility of the object, how it is seen outside its enclosing namespace. When a class is visible to another object, it may influence the structure or behavior of the object, and/or be affected by it. You can choose between:
|
Cardinality | Specifies the number of instances a class can have. You can choose between:
|
Type | Allows you to specify that a class is a generic type, or that it is bound to one. You can choose between:
If you specify either Generic or Bound, then the Generic tab is displayed, allowing you to control the associated type variables (see Class property sheet Generic tab). For more information on generic types and binding classes to them, see the Generic types and methods section. |
Abstract | Specifies that the class cannot be instantiated and therefore has no direct instances. |
Final | Specifies that the class cannot have any inherited objects. |
Generate code | Specifies that the class is included when you generate code from the model, it does not affect inter-model generation. |
For more information on how to manipulate categories and entries in the object language, see the Resource Files and the Public Metamodel chapter of the Customizing and Extending PowerDesigner manual.
For more information on extended model definitions, see "Extended model definitions" in the Models chapter of the Core Features Guide .
Copyright (C) 2008. Sybase Inc. All rights reserved. |
![]() |