Feature: data types
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.
[...] data types [...]
Pingback by TextUML Toolkit 1.2 M2 is now available | abstratt: news from the front — December 15, 2008 @ 3:36 am
[...] data types (a.k.a. structs) [...]
Pingback by TextUML Toolkit 1.2 RC0 / M3 is now available | abstratt: news from the front — January 25, 2009 @ 8:28 pm