Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSD equivalent of @extends?
XSD equivalent of @extends? [message #484457] Mon, 07 September 2009 14:45 Go to next message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:How to be notified of an EList change
Next Topic:Extending existing model but also editor
Goto Forum:
  


Current Time: Thu Mar 28 13:02:20 GMT 2024

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

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

Back to the top