Define UML property [message #1088732] |
Sat, 17 August 2013 15:08 |
|
Hello All,
I want to define one UML property of type PrimitiveType::String, I use bellow source code:
var ISt = new Property;
ISt.name = 'oneName';
ISt.type = PrimitiveType::String;
But I encounter with bellow error message:
Undefined variable, type or model: 'PrimitiveType::String'
How I can set the type of my property to String?
Thanks,
Amin Rezaee
|
|
|
Re: Define UML property [message #1089880 is a reply to message #1088732] |
Mon, 19 August 2013 11:31 |
|
If I recall correctly, the predefined types in UML are not part of the UML metamodel itself. Instead, they are bundled in external "library" models, which are accessible using special-purpose URIs, such as pathmap://UML_LIBRARIES/xxx.uml.
I've attached an example project which should help: it adds a new class to an UML model with a String attribute. The launch configuration uses two models: the read-only library model with the predefined types, and the actual model that you want to change.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03445 seconds