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: 10
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: 33141
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 {}
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EcoreTools: multiple Ecore models in one project
Next Topic:[CDO]is the new client UI available?
Goto Forum:
  


Current Time: Fri Apr 26 03:03:38 GMT 2024

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

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

Back to the top