simonjwright / coldframe

ColdFrame generates Ada framework code and documentation from UML models.
https://simonjwright.github.io/coldframe
GNU General Public License v2.0
8 stars 1 forks source link

Type of Event Payload not Properly Translated #13

Closed AlexProudfoot closed 3 years ago

AlexProudfoot commented 3 years ago

I have an event payload of type Text (from the ColdFrame Profile) which is not translated to Unbounded_String as happens for attributes.

Screenshot from 2021-03-29 07-45-07

Air_Traffic_Control.uml.zip

Model Repository

AlexProudfoot commented 3 years ago

Using Unbounded_String (also from the ColdFrame Profile) works.

simonjwright commented 3 years ago

Text wasn’t getting translated to Unbounded_String. Using Unbounded_String only worked because the class already had Ada.Strings.Unbounded in its context! (because of operations or attributes). The same problem would have occurred with Date or Time.