Previous UML Classes Table of Contents UML Packages Next


7.3.26 LiteralBoolean

Kernel


Issue 8509 - capitalize ‘boolean’

   A literal Boolean is a specification of a Boolean value.

*Generalizations

   

    LiteralSpecification (from Kernel ) on page 93

*Description

Issue 8509 - capitalize ‘boolean’

   A literal Boolean contains a Boolean-valued attribute. Default value is false.

*Attributes

Issue 9191 - add default value

   • value: Boolean The specified Boolean value.

*Associations

   No additional associations

*Constraints

   No additional constraints

*Additional Operations

   [1] The query isComputable() is redefined to be true. LiteralBoolean ::isComputable(): Boolean; isComputable = true

   [2] The query booleanValue() gives the value.

   LiteralBoolean ::booleanValue() : [Boolean]; booleanValue = value

*Semantics

   A LiteralBoolean specifies a constant Boolean value.

*Notation

   A LiteralBoolean is shown as either the word ‘true’ or the word ‘false,’ corresponding to its value.