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] Sun, 08 December 2013 20:12 Go to next message
Daniel Tahin is currently offline Daniel Tahin
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 05:16 Go to previous message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
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: Mon Jul 28 08:27:10 EDT 2014

Powered by FUDForum. Page generated in 0.08495 seconds