Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] inject options for InputStream
[ATL] inject options for InputStream [message #526141] Thu, 08 April 2010 20:24
Adrian is currently offline AdrianFriend
Messages: 11
Registered: July 2009
Junior Member

I'm lauching ATL programatically. For that I'm using the injector.
Everything I want to do is to inject an InputStream instead of a File in
order to perform the ATL transformation.
The relevant JavaDoc is here available: .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.core/src/org/ec lipse/m2m/atl/core/ view=markup

And now some code:
ModelFactory factory = CoreService.createModelFactory("EMF");
graphMetamodel = factory.newReferenceModel();

Map<String, Object> options = new HashMap<String, Object>();
options.put("identifier", "");

injector.inject(graphMetamodel, graphMetaModelInputStream, options);

If a want to launch I'm getting the following error:
java.lang.RuntimeException: org.eclipse.m2m.atl.core.ATLCoreException:
Feature 'identifier' not found.

Well I've guested that option. I haven't found a document where all/some
options where listed.

I hope that somebody can help me.
Thank you very much in advance.
Previous Topic:[QVTo] ECore to QVT meta-model syntax?
Next Topic:[ATL] default attribute
Goto Forum:

Current Time: Sat Jun 06 06:14:41 GMT 2020

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

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

Back to the top