[EMF] The purpose of Injector and Extractor? [message #766076] |
Thu, 15 December 2011 07:48 |
quincy.tw Messages: 3 Registered: December 2011 Location: Taipei |
Junior Member |
|
|
Hi all pioneers,
I'm a newbie to the EMF and I have some questions about the purpose of injector and extractor...
As to my knowledge to the injector and extractor, they are classes that transform xmi files to a model (injector) and a model to xmi (extractor)? Are they correct? Or they are not designed to do such things?
Also, I am confused about the injector method:
public void inject(IModel targetModel, String strSource)
I traced the code that when I run an ATL transform, the transform actually run inject 3 times -- At the first time, strSource is my IN ecore path, and second time, strSource is my IN xmi file, and third time, strSource is my OUT ecore path... (The code that I traced is EMFInjector)
So that I'm confused about the purpose of this inject method... could anyone please help explaining me about this? Or pointing out a clear document location to read?
Thank you in advance.
|
|
|
Re: [EMF] The purpose of Injector and Extractor? [message #766090 is a reply to message #766076] |
Thu, 15 December 2011 08:10 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Comments below.
On 15/12/2011 8:49 AM, quincy.tw wrote:
> Hi all pioneers,
>
> I'm a newbie to the EMF and I have some questions about the purpose of
> injector and extractor...
You've come to the wrong place.
>
> As to my knowledge to the injector and extractor, they are classes
> that transform xmi files to a model (injector) and a model to xmi
> (extractor)? Are they correct? Or they are not designed to do such
> things?
>
> Also, I am confused about the injector method:
>
> public void inject(IModel targetModel, String strSource)
>
> I traced the code that when I run an ATL transform, the transform
> actually run inject 3 times -- At the first time, strSource is my IN
> ecore path, and second time, strSource is my IN xmi file, and third
> time, strSource is my OUT ecore path... (The code that I traced is
> EMFInjector)
Please post to the eclipse.modeling.m2m forum and include [ATL] as the
start of your subject line.
>
> So that I'm confused about the purpose of this inject method... could
> anyone please help explaining me about this? Or pointing out a clear
> document location to read?
>
> Thank you in advance.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03059 seconds