|Re: Interrogating ecore model and programmatically generating model instances [message #636725 is a reply to message #636146]
||Tue, 02 November 2010 15:12
Registered: February 2010
Ok I think I have the wrong terminology here.|
By model I mean the ECore "meta"-model, the abstract model that describes
the rules a particular model instance must follow.
An analogy would be an XML schema, and an XML document which is written
according to the schema.
Keeping on with the analogy, I have an XML document which follows a
particular schema. Now I want to find out what the schema is (reverse
engineer it). Is there any way to work out the an ECore model from instances
"Ed Merks" <Ed.Merks@gmail.com> wrote in message
> Comments below.
> geejay wrote:
>> Thats great. Thanks Ed, I really didnt want to make your head hurt :)
>> It sort of misses the step of interrogating the model though.
> You figure out what kind of object is in the resource and then you use
> it's API to "interrogate" it.
>> I am guessing the company who owns the model (IBM)
> IBM doesn't own any of these models. It's open source.
>> would not want to make it public, and as such I have no way of getting my
>> hands on the entire ecore model namespace without interrogating existing
>> model instances.
> Again, I haven't a clue what you're driving at. It's open source, all the
> APIs are public, there are entire books describing what you can do...
>> Any ideas?
> I'm not sure I understand what's holding you up.
>> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
>>> Comments below.
>>> geejay wrote:
>>>> Very high level question:
>>>> I am using an app which generates ecore models (maybe I should be
>>>> calling them model instances?).
>>>> I modify the model using a UI (drag and drop, adding properties).
>>>> Now I want to programmatically produce models that conform to the
>>>> models that are produced by the GUI.
>>>> How do I get started?
>>>> I imagine the steps would be:
>>>> **interrogate the GUI generated models to figure out the schema
>>>> *map this schema into some sort of Java based model.
>>>> *produce models using Java
>>>> *export the Java model into a model that conforms to the schema found
>>>> in step **
>>> It's all starting to hurt my brain. Maybe reading this will help:
>>> http://www.ibm.com/developerworks/library/os-eclipse-dynamic emf/
>>>> Am I at all on the right path?
>>>> Thanks for any help
Powered by FUDForum
. Page generated in 0.01917 seconds