Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generating EMF model with virtual attributes
Generating EMF model with virtual attributes [message #69417] Tue, 30 January 2007 14:04 Go to next message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

My understanding is that an EMF generated model implementation can have
either java attributes, or virtual attributes. By virtual I mean
attributes that are not defined in java code, but give rise to accessible
slots in an EObject which can be accessed via eSet and eGet. Is it
possible to generate an EMF model implementation such that all the
generated attributes are virtual? Clearly this is not the most efficient
way of accessing slot values, but it does provide a more unified protocol
and it would remove the need to override eSet and eGet in subclasses of
EObject.

James
Re: Generating EMF model with virtual attributes [message #69438 is a reply to message #69417] Tue, 30 January 2007 14:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------000302030502050003060901
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

James,

Answering questions is less work for me if postings to multiple
newsgroup are done with a single posting. This way, an answer on any of
the newsgroups will appear on all of the newsgroups. Here's what I said
on the EMF newsgroup:

You can mark a feature as being volatile, and in that case the
generator will generate only stub methods that you must implement by
hand.


James Willans wrote:
> My understanding is that an EMF generated model implementation can
> have either java attributes, or virtual attributes. By virtual I mean
> attributes that are not defined in java code, but give rise to
> accessible slots in an EObject which can be accessed via eSet and
> eGet. Is it possible to generate an EMF model implementation such
> that all the generated attributes are virtual? Clearly this is not
> the most efficient way of accessing slot values, but it does provide a
> more unified protocol and it would remove the need to override eSet
> and eGet in subclasses of EObject.
>
> James
>


--------------000302030502050003060901
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
Answering questions is less work for me if postings to multiple
newsgroup are done with a single posting.
Re: Generating EMF model with virtual attributes [message #69698 is a reply to message #69438] Wed, 31 January 2007 11:21 Go to previous message
Eclipse UserFriend
Originally posted by: james.willans.xactium.com

Sorry Ed. I intended to post to the EMF newsgroup, but posted here by
accident. I use the simple web newsgroup access and was unsure how to
remove this post.

Thanks for your answer - that was helpful.

James
Re: Generating EMF model with virtual attributes [message #601757 is a reply to message #69417] Tue, 30 January 2007 14:19 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31770
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000302030502050003060901
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

James,

Answering questions is less work for me if postings to multiple
newsgroup are done with a single posting. This way, an answer on any of
the newsgroups will appear on all of the newsgroups. Here's what I said
on the EMF newsgroup:

You can mark a feature as being volatile, and in that case the
generator will generate only stub methods that you must implement by
hand.


James Willans wrote:
> My understanding is that an EMF generated model implementation can
> have either java attributes, or virtual attributes. By virtual I mean
> attributes that are not defined in java code, but give rise to
> accessible slots in an EObject which can be accessed via eSet and
> eGet. Is it possible to generate an EMF model implementation such
> that all the generated attributes are virtual? Clearly this is not
> the most efficient way of accessing slot values, but it does provide a
> more unified protocol and it would remove the need to override eSet
> and eGet in subclasses of EObject.
>
> James
>


--------------000302030502050003060901
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
Answering questions is less work for me if postings to multiple
newsgroup are done with a single posting.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Generating EMF model with virtual attributes [message #601869 is a reply to message #69438] Wed, 31 January 2007 11:21 Go to previous message
James Willans is currently offline James WillansFriend
Messages: 303
Registered: July 2009
Senior Member
Sorry Ed. I intended to post to the EMF newsgroup, but posted here by
accident. I use the simple web newsgroup access and was unsure how to
remove this post.

Thanks for your answer - that was helpful.

James
Previous Topic:teneo - when will EMF2.3 (i.e., the Java 5.0 features) be supported?
Next Topic:teneo: Yet another DuplicateMappingException problem
Goto Forum:
  


Current Time: Fri Feb 26 10:41:41 GMT 2021

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

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

Back to the top