Previous UML Classes Table of Contents UML Packages Next


7.3.27 LiteralInteger

Kernel


   A literal integer is a specification of an integer value.

*Generalizations

   

    LiteralSpecification (from Kernel ) on page 93

*Description

   A literal integer contains an Integer-valued attribute.

*Attributes

Issue 9191 -add default value

   • value: Integer The specified Integer value. Default value is 0.

*Associations

   No additional associations

*Constraints

   No additional constraints

*Additional Operations

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

   [2] The query integerValue() gives the value. LiteralInteger ::integerValue() : [Integer]; integerValue = value

*Semantics

   A LiteralInteger specifies a constant Integer value.

*Notation

   A LiteralInteger is shown as a sequence of digits.