Generating EMF model with virtual attributes [message #69417] |
Tue, 30 January 2007 09:04  |
Eclipse User |
|
|
|
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 #69698 is a reply to message #69438] |
Wed, 31 January 2007 06:21  |
Eclipse User |
|
|
|
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 09:19  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05900 seconds