|
Re: Ecore-XSD mapping [message #729626 is a reply to message #729586] |
Mon, 26 September 2011 16:42 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Ecore-XSD mapping [message #729627 is a reply to message #729586] |
Mon, 26 September 2011 16:42 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02026 seconds