|Re: Define EMF metamodel From XPand [message #1071188 is a reply to message #1071184]
||Fri, 19 July 2013 10:19
| serhat gezgin
Registered: January 2013
i have a xml file as input model and i want to generate emf metamodel from this
xml file. I generate this as M2T with XPAND and now i want to refactore this XPAND file. And if i can do M2M with XPAND i want to use this feature.
And i want to ask u another question;
on XPAND documentation i saw a function as;
create Entity this duplicate(Entity old):
What does this code ? i dont understand. (I thought this is M2M function)
[Updated on: Fri, 19 July 2013 10:22]
Report message to a moderator
|Re: Define EMF metamodel From XPand [message #1071493 is a reply to message #1071270]
||Sat, 20 July 2013 04:30
| Ed Merks
Registered: July 2009
On 19/07/2013 7:44 PM, serhat gezgin wrote:
> (My xml is clafer feature model xml.)
Eclipse has a feature model project. I wonder if that helps:
> I am writing feture model with clafer and then i generate it's xml by
> clafer program.
> clafer is quite simple feature model language like;
> abstract date : string
> abstract Person
> Name : string
> Surname : string
> DateOfBirth : date
> or Gender
> xor MaritalStatus
> Street : string
> UnitNo : string ?
> City : string
> Country : string
> PostalCode : string
> when i use clafer program to generate this code, it gives me a modeled
> xml file. (and i have clafer's xsd file too)
So you could also produce an Ecore model from the XSD in order to read
the XML as an EMF instance:
Is that what you're doing?
> After that, i want to pass emf for generate java code of my domain
> model from this xml file. (more specifically for product line)
So for that you want to use Xpand. You might also use
http://www.eclipse.org/acceleo/ or http://www.eclipse.org/xtend/
> Hımm then i can M2M with .ext file. am i rigth ?
I believe so.
> cause i can call .ext functions on .xpt file ?
> This is true ?
Powered by FUDForum
. Page generated in 0.02306 seconds