Previous UML Classes Table of Contents UML Packages Next


7.3.43 PrimitiveType

Kernel


Issue 8720 - clarify that a primitive type has no parts in the context of UML

   A primitive type defines a predefined data type, without any relevant substructure (i.e., it has no parts in the context of UML). A primitive datatype may have an algebra and operations defined outside of UML, for example, mathematically.

*Generalizations

   

    DataType (from Kernel ) on page 60.

*Description

   The instances of primitive type used in UML itself include Boolean, Integer, UnlimitedNatural, and String.

*Attributes

   No additional attributes

*Associations

   No additional associations

*Constraints

   No additional constraints

*Semantics

   The run-time instances of a primitive type are data values. The values are in many-to-one correspondence to mathematical elements defined outside of UML (for example, the various integers).

   Instances of primitive types do not have identity. If two instances have the same representation, then they are indistinguishable.

*Notation

   A primitive type has the keyword «primitive» above or before the name of the primitive type.

   Instances of the predefined primitive types may be denoted with the same notation as provided for references to such instances (see the subtypes of ValueSpecification (from Kernel )).