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
Hello,

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:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.core/src/org/ec lipse/m2m/atl/core/IInjector.java?root=Modeling_Project& view=markup

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

//options
Map<String, Object> options = new HashMap<String, Object>();
options.put("identifier", "http://www.url.com/graph");

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.
Adrian
Previous Topic:[QVTo] ECore to QVT meta-model syntax?
Next Topic:[ATL] default attribute
Goto Forum:
  


Current Time: Tue Oct 15 22:25:21 GMT 2019

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

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

Back to the top