|
Re: adding dynamic properties to static objects [message #420224 is a reply to message #420222] |
Mon, 23 June 2008 12:25 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------030904030004080200030902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Chris,
Comments below.
Chris wrote:
> Hi,
>
> As mentioned above, my goal is to add dynamically generated
> EAttributes or EReferences to existing meta objects which were
> generated statically from an ecore file.
That's not supported.
> However, it seems that this feature is not supported by EMF (it
> results in an StackOverflow error in BasicEObjectImpl).
Yes.
> Is there maybe another possibility to implement a method where the
> user can enrich arbitrary existing meta elements with custom
> EAttribute-like "properties")
If you set up the instance the way it would be set up if you defined a
model with XML Schema wildcards then you'd be able to use features from
documents root classes of other packages to augment the regular
features. The AnyType from the XMLTypePackage is an example of this and
this article will help:
Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>
>
> Regards,
> Chris
>
--------------030904030004080200030902
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">
Chris,<br>
<br>
Comments below.<br>
<br>
Chris wrote:
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">Hi,
<br>
<br>
As mentioned above, my goal is to add dynamically generated EAttributes
or EReferences to existing meta objects which were generated statically
from an ecore file. </blockquote>
That's not supported.<br>
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">However, it seems that this feature is not supported by
EMF (it results in an StackOverflow error in BasicEObjectImpl).
<br>
</blockquote>
Yes.<br>
<blockquote
cite="mid:0802d60aafe288fc7cd7849c6a1bcf69$1@www.eclipse.org"
type="cite">Is there maybe another possibility to implement a method
where the user can enrich arbitrary existing meta elements with custom
EAttribute-like "properties")
<br>
</blockquote>
If you set up the instance the way it would be set up if you defined a
model with XML Schema wildcards then you'd be able to use features from
documents root classes of other packages to augment the regular
features.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03990 seconds