Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » @model interface versus abstract
@model interface versus abstract [message #396990] Sun, 27 November 2005 16:28 Go to next message
Serge Fantino is currently offline Serge FantinoFriend
Messages: 18
Registered: July 2009
Junior Member
Hello all,
I'm just wondering if there is an actual difference between those two
annotations for eClass definition?
Btw, could someone give me an uptodate and comprehensive reference for
all the available annotations?

thx,
Serge.
Re: @model interface versus abstract [message #396991 is a reply to message #396990] Mon, 28 November 2005 10:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.von.frantzius.artnology.nospam.com

Serge Fantino schrieb:
> Hello all,
> I'm just wondering if there is an actual difference between those two
> annotations for eClass definition?
> Btw, could someone give me an uptodate and comprehensive reference for
> all the available annotations?
>
> thx,
> Serge.

For both questions, you're well off with the addison&wesley book
"eclipse modeling framework" by the same authors of EMF. In the book,
page 115 and following list what you need
( http://print.google.com/print?id=ff-9ZYhvPwwC&pg=PA117&a mp;lpg=PA117&dq=java+specification+for+classes+eclass&am p;prev=http://books.google.com/books%3Fq%3Djava%2Bspecificat ion%2Bfor%2Bclasses%2Beclass&sig=VEpT7FdXdEaO5G0hBf1pRhb iBIo&auth=DQAAAGwAAADT-yv3VJfm5pDYhjAHCaMsib6aY2a6utT5wg 5cepkYdMZVE4Pk00pfBUVqC_DsV7qvXMVIBZnCylnrqeXHkb34f1-44G6as2 voBcGMAG3Mx-NijR0BN5lSmeVtHrh-ZBnhBk2lVHexSbipRfTLqkjj)
Re: @model interface versus abstract [message #396994 is a reply to message #396990] Mon, 28 November 2005 11:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Serge,

Yes, the book is the place to go. We're updating that chapter for the
next version of the new book with the new things we've added since 1.x.

With regard to your specific question, something marked as an interface
will generate only an interface but no Impl class; something marked as
abstract will generate both an interface and an Impl class where the
Impl class will be abstract and hence there will be no factory method to
create instances of it.


Serge Fantino wrote:

> Hello all,
> I'm just wondering if there is an actual difference between those two
> annotations for eClass definition?
> Btw, could someone give me an uptodate and comprehensive reference for
> all the available annotations?
>
> thx,
> Serge.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Generating an extended EMF model
Next Topic:JMerge is not overwriting generated methods in the target
Goto Forum:
  


Current Time: Sat Apr 27 04:08:37 GMT 2024

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

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

Back to the top