Eclipse Modeling Framewok (EMF) - Distributed Systems
Eclipse Modeling Framewok (EMF) - Distributed Systems
Eclipse Modeling Framewok (EMF) - Distributed Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Genmodel en XMI<br />
1 < genPackages prefix =" Tree " disposableProviderFactory ="<br />
true " ecorePackage =" Tree . ecore #/"><br />
< genClasses ecoreClass =" Tree . ecore #// Node "><br />
3 < genFeatures createChild =" false " ecoreFeature ="<br />
ecore:EAttribute Tree . ecore #// Node / label "/><br />
< genFeatures property =" None " notify =" false "<br />
createChild =" false " ecoreFeature ="<br />
ecore:EReference Tree . ecore #// Node / parent "/><br />
5 < genFeatures property =" None " children =" true "<br />
createChild =" true " ecoreFeature ="<br />
ecore:EReference Tree . ecore #// Node / children "<br />
/><br />
...<br />
Guarda los datos y parámetros necesarios para emprender la<br />
generación de código<br />
Nótese las referencias al metamodelo Tree.ecore (URNs)<br />
Conocido como decorador del Ecore (añade características a éste)<br />
Diego Sevilla Ruiz (DITEC Facultad de Informática) <strong>Eclipse</strong> <strong>Modeling</strong> <strong>Framewok</strong> (<strong>EMF</strong>) Murcia, October 2011 38 / 52