Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XML schema unique constraints
XML schema unique constraints [message #502244] Mon, 07 December 2009 12:17 Go to next message
Csaba Koncz is currently offline Csaba KonczFriend
Messages: 49
Registered: July 2009
Member
While creating my EMF model from XML Schema I noticed that key/keyref/unique constraints are ignored by the XSD Importer. How can these be added to the Ecore model?

While I have ideas like using typed references (ecore:reference) for simulating keyrefs, I am clueless when it comes to enforcing unique attribute values, for example.

Csaba
Re: XML schema unique constraints [message #502345 is a reply to message #502244] Mon, 07 December 2009 18:45 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Csaba,

They're not supported. You need to write such constraints by hand.
Check out the validation documentation on the documentation page.


Csaba Koncz wrote:
> While creating my EMF model from XML Schema I noticed that
> key/keyref/unique constraints are ignored by the XSD Importer. How
> can these be added to the Ecore model?
> While I have ideas like using typed references (ecore:reference) for
> simulating keyrefs, I am clueless when it comes to enforcing unique
> attribute values, for example.
>
> Csaba


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:"EMF Model" missing from New wizard
Next Topic:[TENEO & GMF] Copy/Paste not working with Semantic Model in Teneo
Goto Forum:
  


Current Time: Fri Apr 26 04:56:39 GMT 2024

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

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

Back to the top