Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Ecore-XSD mapping
Ecore-XSD mapping [message #729586] Mon, 26 September 2011 11:23 Go to next message
Eclipse UserFriend
Hello, I'm trying to generate an ecore model starting from some XSD files.
Everything works fine, except that in the XSD I have this part:

<xs:simpleType name="tLNClassEnum">
<xs:union memberTypes="tPredefinedLNClassEnum tExtensionLNClassEnum"/>
</xs:simpleType>

which is a union of Enums. I would like to have it mapped to an EEnum, but it gets mapped to an EData Type. Is it possible to obtain a mapping to EEnum?
Thanks,
Daniele
Re: Ecore-XSD mapping [message #729626 is a reply to message #729586] Mon, 26 September 2011 12:42 Go to previous message
Eclipse UserFriend
Daniele,

No, to support the substitutability that's implied by this union, you
really do need to allow for instances from both the existing enum data
types.


On 26/09/2011 8:23 AM, dandario wrote:
> Hello, I'm trying to generate an ecore model starting from some XSD
> files. Everything works fine, except that in the XSD I have this part:
>
> <xs:simpleType name="tLNClassEnum">
> <xs:union memberTypes="tPredefinedLNClassEnum tExtensionLNClassEnum"/>
> </xs:simpleType>
>
> which is a union of Enums. I would like to have it mapped to an EEnum,
> but it gets mapped to an EData Type. Is it possible to obtain a
> mapping to EEnum?
> Thanks,
> Daniele
Re: Ecore-XSD mapping [message #729627 is a reply to message #729586] Mon, 26 September 2011 12:42 Go to previous message
Eclipse UserFriend
Daniele,

No, to support the substitutability that's implied by this union, you
really do need to allow for instances from both the existing enum data
types.


On 26/09/2011 8:23 AM, dandario wrote:
> Hello, I'm trying to generate an ecore model starting from some XSD
> files. Everything works fine, except that in the XSD I have this part:
>
> <xs:simpleType name="tLNClassEnum">
> <xs:union memberTypes="tPredefinedLNClassEnum tExtensionLNClassEnum"/>
> </xs:simpleType>
>
> which is a union of Enums. I would like to have it mapped to an EEnum,
> but it gets mapped to an EData Type. Is it possible to obtain a
> mapping to EEnum?
> Thanks,
> Daniele
Previous Topic:[EMFStore] JDT Integration
Next Topic:[EMF Store Client] Configuration
Goto Forum:
  


Current Time: Thu Jul 03 11:25:02 EDT 2025

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

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

Back to the top