Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » xs:choice support in Ecore
xs:choice support in Ecore [message #418014] Wed, 02 April 2008 09:12 Go to next message
Eclipse UserFriend
Originally posted by: georges.bachelier.atmel.com

Hello everyone,

I know this question has been posted a couple of times on this newsgroup,
but unfortunately the links which could provide help are broken. Could you
give me a workaround solution for the famous xs:choice translation to
Ecore issue?
Is there anything I can do on <my_model>.ecore to get the XSD choice
properly handled by the Ecore model? I am using Eclipse 3.3.1 and EMF
2.3.1.

Thanks a lot in advance for your time and help,

Georges
Re: xs:choice support in Ecore [message #418022 is a reply to message #418014] Wed, 02 April 2008 12:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000708020406010007040204
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Georges,

And what exactly do you mean by properly handled? Choice is effectively
just a constraint that says at most one of the features can be set at
any given time. So you can use the validation framework to define a
constraint that checks for mutual exclusiveness being satisfied::

The EMF Validation Framework Overview
< http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc//references/overview/EMF.Validation.html>


Georges wrote:
> Hello everyone,
>
> I know this question has been posted a couple of times on this
> newsgroup, but unfortunately the links which could provide help are
> broken. Could you give me a workaround solution for the famous
> xs:choice translation to Ecore issue?
> Is there anything I can do on <my_model>.ecore to get the XSD choice
> properly handled by the Ecore model? I am using Eclipse 3.3.1 and EMF
> 2.3.1.
>
> Thanks a lot in advance for your time and help,
>
> Georges
>


--------------000708020406010007040204
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">
Georges,<br>
<br>
And what exactly do you mean by properly handled?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xs:choice support in Ecore [message #418025 is a reply to message #418022] Wed, 02 April 2008 13:01 Go to previous message
Eclipse UserFriend
Originally posted by: georges.bachelier.atmel.com

Hello Ed,

thanks a lot for the link! By "not properly handled", I meant that nothing
in the Ecore model reflects the "XOR-ness" of some XML elements as I have
defined them in my XSD file. But I am new on EMF and have a LOT to learn
on this new domain.

Best regards,

Georges
Previous Topic:Re: EMF Query and EvaluationEnvironment
Next Topic:XSD generated from Ecore, why type="ecore:EString" for Strings and type="xsd:anyURI&q
Goto Forum:
  


Current Time: Fri Mar 29 05:44:58 GMT 2024

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

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

Back to the top