Previous | Table of Contents | Next |
A boolean type is used for logical expression, consisting of the predefined values true and false.
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.It is used for boolean attribute and boolean expressions in the metamodel, such as OCL expression.
No additional attributes
No additional associations
No additional constraints
Boolean is an instance of PrimitiveType.
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.
Figure 12.3 - An example of a boolean attribute