Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] The purpose of Injector and Extractor?
icon5.gif  [EMF] The purpose of Injector and Extractor? [message #766076] Thu, 15 December 2011 07:48 Go to next message
quincy.tw is currently offline quincy.twFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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/
Re: [EMF] The purpose of Injector and Extractor? [message #766097 is a reply to message #766090] Thu, 15 December 2011 08:23 Go to previous message
quincy.tw is currently offline quincy.twFriend
Messages: 3
Registered: December 2011
Location: Taipei
Junior Member
Thank you, Ed.

I will post them in that forum and delete current one
Previous Topic:emf4gwt seems to generate source with problems
Next Topic:EMF generated editor customization issue with children
Goto Forum:
  


Current Time: Sat Apr 27 04:41:34 GMT 2024

Powered by FUDForum. Page generated in 0.03059 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top