Previous Table of Contents Next


9.11.5 LiteralString


   A literal string is a specification of a string value.

   Description

   A literal string contains a String-valued attribute.

   Generalizations

   • “LiteralSpecification? on page 61

   Attributes

   • value: String 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.