Chapter 3 Building Structural Diagrams


Generalization property sheet General tab

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.
Parent Specifies the parent object. Click the Properties tool to the right of this box to access the property sheet of the specified object.
Child Specifies the child object. Click the Properties tool to the right of this box to access the property sheet of the specified object.
Stereotype Extends the semantics of the object beyond the core UML definition. The stereotype <<implementation>> means that the child object inherits the implementation of the parent object but does not make its interfaces public, nor support them (thus violating its substitutability).
Visibility Specifies the visibility of the object, how it is seen outside its enclosing namespace. You can choose between:

  • Private – only to the generalization itself
  • Protected – only to the generalization and its inherited objects
  • Package – to all objects contained within the same package
  • Public – to all objects (option by default)
Persistence These options affect the persistence parameters defined in the parent and child classes of the generalization.

If you select "Generate parent class as table", the "Generate table" persistence option is selected in the Detail tab of the parent class property sheet. If you clear this option, the "Migrate columns" persistence option is selected in the Detail tab of the parent class property sheet.

The same rule applies to the child class.

If the generalization is created in a use case diagram, you cannot change the type of objects linked by the generalization. For example, you cannot attach the dependency coming from a use case to a class, or an interface.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.