Previous UML Classes Table of Contents UML Packages Next


17.4.1 Boolean

PrimitiveType s


Issue 8509 - capitalize ‘boolean’

   A Boolean type is used for logical expression, consisting of the predefined values true and false.

*Generalizations

   None

   Description

   Boolean is an instance of PrimitiveType . In the metamodel, Boolean defines an enumeration that denotes a logical condition. Its enumeration literals are:

   

   true - The Boolean condition is satisfied.

   

   false - The Boolean condition is not satisfied.

Issue 8509 -capitalize ‘boolean’

   It is used for Boolean attribute and Boolean expressions in the metamodel, such as OCL expression.

   Attributes

   No additional attributes

   Associations

   No additional associations

   Constraints

   No additional constraints

   Semantics

   Boolean is an instance of PrimitiveType .

   Notation

   Boolean will appear as the type of attributes in the metamodel. Boolean instances will be values associated to slots, and can have literally the following values: true or false.

   Examples


Issue 8509 -capitalize ‘boolean’

   Figure 17.12 -An example of a Boolean attribute