Just checked in a new feature in the TextUML Toolkit: support for data types (a.k.a. structs). This is an example of a data type declaration:
datatype UserName attribute firstName : String; attribute lastName : String; end;
You can declare operations and specialize other classifiers as usual.
Change set
Here are the individual changes per plug-in (r177-r186):
- automated tests (180 and 185)
- parser and model generation (181, 184 and 186)
- textual renderer
- editor
There, nice and easy. Well, actually, I ended up doing a second commit because I forgot to ensure a data type specializes only other data types. But now that has been taken care of.
As usual, suggestions of UML features to support in the TextUML Toolkit are most welcome.
TextUML Toolkit 1.2 M2 is now available | abstratt: news from the front
December 15, 2008 at 3:36am[...] data types [...]
TextUML Toolkit 1.2 RC0 / M3 is now available | abstratt: news from the front
January 25, 2009 at 8:28pm[...] data types (a.k.a. structs) [...]