|
Re: papyrus class diagram [message #1725205 is a reply to message #1725036] |
Tue, 01 March 2016 16:17 |
|
Hi Ronan,
There are many ways you can do this, depending on your ultimate goal.
You could simply define a UML datatype named "char", then use that datatype to define the name property in your "person" class and then set the property's multiplicity to be the length of the "string".
A "char" primitive type is also defined in each of the "Ecore Primitive Types", "Java primitive types", and "AnsiCLibrary" model libraries. You can get access to those libraries by right-clicking on the model in the Model Explorer and selecting "Import > Import Registered Package. (Note that the "AnsiCLibrary" library requires you to first add Papyrus' "C++ code generation (incubation)" component.)
Note that the "UML Primitive Types" model library does have have a "char", but it does have a "String".
I do hope this helps.
/Charles Rivet
|
|
|
|
Powered by
FUDForum. Page generated in 0.02140 seconds