Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » xml ecore list mapping using ExtendedMetaData
icon5.gif  xml ecore list mapping using ExtendedMetaData [message #1703251] Wed, 29 July 2015 18:52 Go to next message
Christoph Caks is currently offline Christoph CaksFriend
Messages: 4
Registered: July 2009
Junior Member
is it possible to map the following by using ExtendedMetaData?

xml:
<Library>
  <Books>
    <Book ../>
    <Book ../>
  </Books>
</Library>


xcore:
class Library {
  contains Book[] books
}
class Book {}


i can easily map it to this, however i don't like the extra Books class
class Libary {
  contains Books  Books
}
class  Books {
  contains Book[] Book
}
class Book {}
Re: xml ecore list mapping using ExtendedMetaData [message #1703310 is a reply to message #1703251] Thu, 30 July 2015 13:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
No, extended metadata can't be used create or ignore nesting of elements.

On 29/07/2015 8:52 PM, Christoph Caks wrote:
> is it possible to map the following by using ExtendedMetaData?
>
> xml:
>
> <Library>
> <Books>
> <Book ../>
> <Book ../>
> </Books>
> </Library>
>
>
> xcore:
>
> class Library {
> contains Book[] books
> }
> class Book {}
>
>
> i can easily map it to this, however i don't like the extra Books class
>
> class Libary {
> contains Books Books
> }
> class Books {
> contains Book[] Book
> }
> class Book {}
>
Previous Topic:EcoreTools: multiple Ecore models in one project
Next Topic:[CDO]is the new client UI available?
Goto Forum:
  


Current Time: Fri Aug 23 14:07:04 GMT 2019

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

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

Back to the top