Chapter 3 Building Structural Diagrams


Class 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.
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:

  • <<actor>> - Coherent set of roles that users play
  • <<enumeration>> - List of named values used as the range of an attribute type
  • <<exception>> - Exception class, mainly used in relation to error messages
  • <<implementationClass>> - Class whose instances are statically typed. Defines the physical data structure and methods of a class as implemented in traditional programming languages
  • <<process>> - Heavyweight flow that executes concurrently with other processes
  • <<signal>> - Specification of asynchronous stimulus between instances
  • <<metaclass>> - a metaclass of some other class
  • <<powertype>> - a metaclass whose instances are sub-classes of another class
  • <<thread>> - Lightweight flow that executes concurrently with other threads within the same process. Usually executes inside the address space of an enclosing process
  • <<type>> - Abstract class used to specify the structure and behavior of a set of objects but not the implementation
  • <<utility>> - Class that has no instances


Other language-specific stereotypes may be available. These stereotypes are defined in the object language file. For more information, see the "Stereotypes category" section, in the Object Languages Reference Guide chapter of Advanced User Documentation.
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:

  • Private – only to the object itself
  • Protected – only to the object and its inherited objects
  • Package – to all objects contained within the same package
  • Public – to all objects (option by default)
Cardinality Specifies the number of instances a class can have. You can choose between:

  • 0..1 – None to one
  • 0..* – None to an unlimited number
  • 1..1 – One to one
  • 1..* – One to an unlimited number
  • * – Unlimited number
Type Allows you to specify that a class is a generic type, or that it is bound to one. You can choose between:

  • Class
  • Generic
  • Bound – If you select this option, then an additional list becomes available to the right, where you can specify the generic type to which the class is bound.


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 "The Resource Editor" chapter in the General Features Guide.

For more information on extended model definitions, see the "Working with extended model definitions" section in the "Managing Objects" chapter in the General Features Guide .

 


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