Previous UML Classes Table of Contents UML Packages Next


7.3.30 LiteralString

Kernel


   A literal string is a specification of a string value.

*Generalizations

   

    LiteralSpecification (from Kernel ) on page 93.

*Description

   A literal string contains a String-valued attribute.

*Attributes

Issue 9191 -add multiplicity with lower bound at 0

   • value: String [0..1] The specified String value

*Associations

   No additional associations

*Constraints

   No additional constraints

*Additional Operations

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

   LiteralString ::isComputable(): Boolean;

   isComputable = true

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

   LiteralString ::stringValue() : [String];

   stringValue = value

*Semantics

   A LiteralString specifies a constant String value.

*Notation

   A LiteralString is shown as a sequence of characters within double quotes. The character set used is unspecified.