Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Adding eattributes to existing static eclass
Adding eattributes to existing static eclass [message #400160] Wed, 12 April 2006 09:38 Go to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
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?

--

With Regards, Martin Taal

The Elver Project
Barchman Wuytierslaan 72b
3818 LK Amersfoort
tel: +31 (0)33 462 02 07
fax: +31 (0)33 463 77 12
Mobile: +31 (0)6 288 48 943
email: mtaal@elver.org
web: www.elver.org
Re: Adding eattributes to existing static eclass [message #400165 is a reply to message #400160] Wed, 12 April 2006 11:35 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26013
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--
Previous Topic:Force generation of xsi:type
Next Topic:WhatÂ’s New for Callisto?
Goto Forum:
  


Current Time: Fri Aug 29 10:25:28 EDT 2014

Powered by FUDForum. Page generated in 0.02591 seconds