Previous Table of Contents Next


9.11.1 LiteralBoolean


   A literal boolean is a specification of a boolean value.

   Description

   A literal boolean contains a Boolean-valued attribute.

   Generalizations

   • “LiteralSpecification? on page 61

   Attributes

   • 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.