|
|
Re: Writing files to be imported as EMF models... [message #930728 is a reply to message #930705] |
Tue, 02 October 2012 15:25 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
XML is clearly the best choice, but if human readability is very
important you can choose from Xcore, OCLinEcore or Emfatic as well.
Regards
Ed Willink
On 02/10/2012 16:58, Ed Merks wrote:
> Joseph,
>
> Some type of XML format seems a good candidate. All models can
> serialized to and from an XMI representation. Also, you can produce
> an Ecore model from an XML Schema and then you'll be able to read and
> write instances that conform to the schema:
>
> Tutorial: Generating an EMF Model using XML Schema
> <http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html>
>
> And of course a schema is a grammar that can be used to validate the
> XML, and there's well-defined standard, so that seems a good approach.
>
>
> On 02/10/2012 3:49 PM, joseph reddington wrote:
>> So I tried asking this question at SE (can't give link because too
>> new to this site) - but didn't get very far - I suspect there might
>> be a good chance of a response here...
>> I'd like to generate an Eclipse EMF model in a custom tool (entirely
>> outside of eclipse) and then save it to a format that eclipse can
>> import and use as an EMF model. I'm looking for recommendations of
>> what format might be a good candiate. It would be great if the format
>> could be of a type can is stored in a text file and is (fairly)
>> humon-readable. Also it would be good if there was, in some sense, a
>> grammar available for the format...
>>
>> Any ideas?
>
|
|
|
Re: Writing files to be imported as EMF models... [message #931333 is a reply to message #930728] |
Wed, 03 October 2012 05:19 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ed,
Yes, it wasn't clear if he meant Ecore models or instances of Ecore
models...
On 02/10/2012 5:25 PM, Ed Willink wrote:
> Hi
>
> XML is clearly the best choice, but if human readability is very
> important you can choose from Xcore, OCLinEcore or Emfatic as well.
>
> Regards
>
> Ed Willink
>
> On 02/10/2012 16:58, Ed Merks wrote:
>> Joseph,
>>
>> Some type of XML format seems a good candidate. All models can
>> serialized to and from an XMI representation. Also, you can produce
>> an Ecore model from an XML Schema and then you'll be able to read and
>> write instances that conform to the schema:
>>
>> Tutorial: Generating an EMF Model using XML Schema
>> <http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html>
>>
>> And of course a schema is a grammar that can be used to validate the
>> XML, and there's well-defined standard, so that seems a good approach.
>>
>>
>> On 02/10/2012 3:49 PM, joseph reddington wrote:
>>> So I tried asking this question at SE (can't give link because too
>>> new to this site) - but didn't get very far - I suspect there might
>>> be a good chance of a response here...
>>> I'd like to generate an Eclipse EMF model in a custom tool (entirely
>>> outside of eclipse) and then save it to a format that eclipse can
>>> import and use as an EMF model. I'm looking for recommendations of
>>> what format might be a good candiate. It would be great if the
>>> format could be of a type can is stored in a text file and is
>>> (fairly) humon-readable. Also it would be good if there was, in some
>>> sense, a grammar available for the format...
>>>
>>> Any ideas?
>>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02647 seconds