Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Ecore property: Abstract/Interface(Setting EClass property abstract/interface or both to true. How to generate the class if both are set to true.)
Ecore property: Abstract/Interface [message #1220002] Mon, 09 December 2013 01:12 Go to next message
Daniel Tahin is currently offline Daniel TahinFriend
Messages: 27
Registered: July 2013
Junior Member
Hi folks,

for an EClass there are the boolean option abstract and interface.
If abstract=true and interface=false or abstract=false and interface=true
there is a (more or less) clear semantics. But what if abstract=true and interface=true?
How could be this interpreted? I would like to realize this construct in an other language.

Thank you,
Daniel
Re: Ecore property: Abstract/Interface [message #1228477 is a reply to message #1220002] Tue, 07 January 2014 10:16 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

A class that is an interface must be abstract. If you create a new Ecore model and if you select an EClass to set its property "interface" to "true", the property "abstract" will be switched to "true" too. If you try to validate an Ecore model with an EClass with "interface = true" and "abstract = false", the validation will fail.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Previous Topic:[Acceleo] put .mtl files in different folder
Next Topic:Howto use Acceleo with a UML Profile
Goto Forum:
  


Current Time: Fri Apr 26 20:22:30 GMT 2024

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

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

Back to the top