Previous UML Classes Table of Contents UML Packages Next


9.3.1 Class

StructuredClasses


*Generalizations

   

    EncapsulatedClassifier (from Ports ) on page 185.

*Description

   Extends the metaclass Class with the capability to have an internal structure and ports.

*Semantics

Issue 8108 - Update page references.

   See Property (from InternalStructures ) on page 190, Connector (from InternalStructures ) on page 181, and Port (from Ports ) on page 186 for the semantics of the features of Class. Initialization of the internal structure of a class is discussed in section StructuredClassifier (from InternalStructures ) on page 193.

   A class acts as the namespace for various kinds of classifiers defined within its scope, including classes. Nesting of classifiers limits the visibility of the classifier to within the scope of the namespace of the containing class and is used for reasons of information hiding. Nested classifiers are used like any other classifier in the containing class.

*Notation

   See Class (from Kernel ) on page 48, StructuredClassifier on page 190, and Port on page 186.

*Presentation Options

Issue 8028 -Modify dependency example and figures.

   A usage dependency may relate an instance value to a constructor for a class, describing the single value returned by the constructor operation. The operation is the client, the created instance the supplier. The instance value may reference parameters declared by the operation. A constructor is an operation having a single return result parameter of the type of the owning class. The instance value that is the supplier of the usage dependency represents the default value of the single return result parameter of a constructor operation. (The constructor operation is typically denoted by the stereotype "create", as shown in Figure 9.10)

Issue 8028 -Modify figure: invert arrow, move <<create>>


   Figure 9.10 - Instance specification describes the return value of an operation

*Changes from previous UML

   Class has been extended with internal structure and ports.