Previous UML Classes Table of Contents UML Packages Next


7.3.28 LiteralNull

Kernel


   A literal null specifies the lack of a value.

*Generalizations

   

    LiteralSpecification (from Kernel ) on page 93

*Description

   A literal null is used to represent null (i.e., the absence of a value).

*Attributes

   No additional attributes

*Associations

   No additional associations

*Constraints

   No additional constraints

   [1] The query isComputable() is redefined to be true.

   LiteralNull ::isComputable(): Boolean;isComputable = true

   [2] The query isNull() returns true.

   LiteralNull ::isNull() : Boolean;isNull = true

*Semantics

   LiteralNull is intended to be used to explicitly model the lack of a value.

*Notation

   Notation for LiteralNull varies depending on where it is used. It often appears as the word ‘null.’ Other notations are described for specific uses.