|
Re: Adding eattributes to existing static eclass [message #400165 is a reply to message #400160] |
Wed, 12 April 2006 15:35 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------080003080902020808030102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Martin,
You definitely cannot change the list of features of a generated EClass
or of any EClass for which instances already exist. A wildcard in XML
Schema will result in a feature map that lets you add any
attribute/element (depending on the kind of the wildcard) from any
document root to that feature map. AnyType from the XMLType package is a
good example of this and this project shows how it can be used:
< http://www.eclipse.org/emf/docs/presentations/EclipseCon/Ecl ipseCon2006_EMF_XML_Binding_project.zip>
http://www.eclipse.org/emf/docs/presentations/EclipseCon/Ecl ipseCon2006_EMF_XML_Binding_project.zip
Martin Taal wrote:
>Hi,
>In other posts of the newsgroup I have read that it is not possible to add
>dynamic eattributes to an existing generated-static eclass. Is this
>neither possible if there is a featuremap (like a choice) present in the
>model/eclass? What I am thinking of is something like a xsd choice
>(maxOccurs="unbounded") to which I can dynamically add new elements
>(estructuralfeatures).
>
>I can remember that I saw something like this when I was
>debugging in emf somewhere but I do not remember where this was and maybe
>I didn't see it correctly.
>
>Am I thinking in the right direction or is this really not possible?
>
>
>
--------------080003080902020808030102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin,<br>
<br>
You definitely cannot change the list of features of a generated EClass
or of any EClass for which instances already exist. A wildcard in XML
Schema will result in a feature map that lets you add any
attribute/element (depending on the kind of the wildcard) from any
document root to that feature map. AnyType from the XMLType package is
a good example of this and this project shows how it can be used:<a
href=" http://www.eclipse.org/emf/docs/presentations/EclipseCon/Ecl ipseCon2006_EMF_XML_Binding_project.zip"><br>
</a>
<blockquote><a
href=" http://www.eclipse.org/emf/docs/presentations/EclipseCon/Ecl ipseCon2006_EMF_XML_Binding_project.zip"> http://www.eclipse.org/emf/docs/presentations/EclipseCon/Ecl ipseCon2006_EMF_XML_Binding_project.zip</a><br>
</blockquote>
<br>
Martin Taal wrote:
<blockquote cite="midpan.2006.04.12.13.38.11.882608@elver.org"
type="cite">
<pre wrap="">Hi,
In other posts of the newsgroup I have read that it is not possible to add
dynamic eattributes to an existing generated-static eclass. Is this
neither possible if there is a featuremap (like a choice) present in the
model/eclass? What I am thinking of is something like a xsd choice
(maxOccurs="unbounded") to which I can dynamically add new elements
(estructuralfeatures).
I can remember that I saw something like this when I was
debugging in emf somewhere but I do not remember where this was and maybe
I didn't see it correctly.
Am I thinking in the right direction or is this really not possible?
</pre>
</blockquote>
<br>
</body>
</html>
--------------080003080902020808030102--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03663 seconds