XSD equivalent of @extends? [message #484457] |
Mon, 07 September 2009 14:45 |
Eclipse User |
|
|
|
Originally posted by: Jo.Calder.m-ais.com
Hi,
Apologies if this is an FAQ -- much searching failed to reveal an answer.
Is there an equivalent in the XSD specification of a model to the @extends annotation? Specifically, I want to generate
a type from an XSD model which implements java.lang.Comparable.
TIA, -- Jo
|
|
|
Re: XSD equivalent of @extends? [message #484463 is a reply to message #484457] |
Mon, 07 September 2009 14:54 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Jo,
One approach to answer question like this is to take the Ecore model you
want to produce and from its corresponding GenModel, use Export...->XML
Schema to see what's produced. There is an ecore:implements annotation
which allows you to refer via QName to another type and that complex
type could use ecore:instanceClass to refer to java.lang.Comparable.
Jo Calder wrote:
> Hi,
>
> Apologies if this is an FAQ -- much searching failed to reveal an answer.
>
> Is there an equivalent in the XSD specification of a model to the
> @extends annotation? Specifically, I want to generate a type from an
> XSD model which implements java.lang.Comparable.
>
> TIA, -- Jo
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01949 seconds