Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Define UML property(How to define UML property of type String?)
Define UML property [message #1088732] Sat, 17 August 2013 15:08 Go to next message
Amin Rezaee is currently offline Amin RezaeeFriend
Messages: 18
Registered: April 2013
Location: Shiraz, Iran
Junior Member

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 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

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.
Re: Define UML property [message #1090124 is a reply to message #1089880] Mon, 19 August 2013 18:42 Go to previous message
Amin Rezaee is currently offline Amin RezaeeFriend
Messages: 18
Registered: April 2013
Location: Shiraz, Iran
Junior Member

Dear Antonio Garcia,

Thank you very much for your useful help.

Best Regards,
Amin
Previous Topic:EWL - Update UML statemachine model
Next Topic:attribute representation like magicdraw
Goto Forum:
  


Current Time: Fri Apr 26 17:20:41 GMT 2024

Powered by FUDForum. Page generated in 0.03445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top