C2MS 1.2b1 RTF Avatar
  1. OMG Issue

C2MS12 — In Model Diagrams, mark constants with {readOnly} and possibly static, and final where appropriate

  • Key: C2MS12-149
  • Status: open  
  • Source: Kratos RT Logic, Inc. ( Mr. Mike Anderson)
  • Summary:

    In our model diagrams, we tend to use "default" values in UML to signify constants, which isn't correct UML. To resolve this, evaluate each item with a default value to decide if it is supposed to be constant and if so, check the "Is Read Only" flag in the attribute for that class. If it is also static, check the "Is Static" flag, too. The former adds "

    {readOnly}

    " to the display of the attribute, the latter underlines it. Note, though, that with C2MS12-118, CONTENT-VERSION and SPECIFICATION, two obvious cases, have been added to the Constraints section of classes, which enforces a specific value, so these are already OK.

    Also consider marking all final classes with "Final Specification" to indicate that they can't be subclassed.

  • Reported: C2MS 1.1b1 — Fri, 8 Aug 2025 13:42 GMT
  • Updated: Wed, 15 Oct 2025 16:48 GMT