ecore

How to convert xsd to ecore (EMF)

What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that? ...

How to create Genmodel and model code from ecore programmatically using EMF API?

Hello, are there any tutorials available for doing so? ...

How to generate only one editor for more models in EMF ?

I have more EMF genmodels. It is pretty lame to create new editor for each model. After generation (right click - generateAll) old editor is always overridden. ...

EMF ecore and xsd out of sync, how to resolve ?

Hi there, My application is using a model base on an xsd that have been converted to an ecore before generation of the java classes. One of my team member modified the .ecore metamodel in a previous version ,one attribute that used to be generated. He modified the attribute name but not the Extended MetaData specifying the element name ...

What Query/Path-Language is used for References in Ecore-derived XMI-Instances?

Assume that I have an Ecore-model containing a package and some classes that make reference to each other. If i create a "Dynamic Instance", Eclipse produces an XMI-file and I can instantiate some classes. Containment-relations are directly serialized to an XML-tree in the XMI (the children elements in the example). But if I instantiate ...

Easy way to extract documentation from Ecore files

I am trying to extract the packagenames and classnames AND documentation and notes stored in my Ecore-files for including them in external documents (Wiki, Word, etc.) Are there any easy to use tools for doing this or will I have to write my own XSLT-transformation or setup an oAW-project to do this? If there are no end-user friendly t...

Changes in ECORE are not reflected when saving Resource

Hello all, I'm using WSDL ecore together with XSD ecore to read and edit WSDL file. During my edit I need to remove a couple of XSD Types and Elements and replace them with the reference to the XML Schema stored eslwhere. I'm loading the WSDL and I can see everything inside using nice interfaces provided by WSDL ecore. I can also see ev...

What means the letter "E" in the Ecore?

Is it maybe EMF or EMOF? Eclipse? Or something totally different or nothing at all...? ...

Recursion in Ecore-File?!

Hey guys, just tried to convert towards a Ecore-Model from a given UML-Model. After this I am trying to create a Generator Model. Everytime I try to do this I get the Error Message, that there is a "Unhandled event loop exception" with this log: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)...

navigate ecore model

How do I navigate, programmatically in java, an Ecore model to extract the elements information? ...

modify model istance

What is the best way to modify programmatically (add or delete information) a model conforming to a metamodel conforms to Ecore? ...

Where can I find a valid SVG XML Schema (for ecore generation) ?

I tried importing the SVG XML Schema into EMF, to obtain the SVG metamodel in ecore. However, the import failed due to the schema not being valid: indeed, svg.xsd references XMLSchema.dtd, which itself references datatypes.dtd, which does not exist! Consequently, I tried downloading the necessary files from the svg website (svg.xsd, XML...

Run EMF Validation of an ecore model outside of Eclipse

Hello, I found nothing how to validate an ecore model outside of eclipse. Does someone know how to do this? ...

What is the difference in ECore between containment and reference?

When creating references between ECore entities there is the possibility to mark a reference as "containment". Can somebody explain me in easy words what's the difference between a plain reference and a containment? The definitions and explainations I found so far didn't do the trick for me. ...