Package org.eclipse.m2m.atl.core.emf
Class EMFInjector
java.lang.Object
org.eclipse.m2m.atl.core.emf.EMFInjector
- All Implemented Interfaces:
IInjector
The EMF implementation of the
IInjector
interface.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Injects data into an IModel using the given options.void
Injects data into an IModel using the given options.void
Injects data into an IModel using default options.void
Injects data into an IModel using the given options.void
Injects data into an IModel from aResource
.
-
Field Details
-
OPTION_LOAD_ON_DEMAND
EMF loadOnDemand option.- See Also:
-
-
Constructor Details
-
EMFInjector
public EMFInjector()
-
-
Method Details
-
inject
public void inject(IModel targetModel, String source, Map<String, Object> options) throws ATLCoreExceptionInjects data into an IModel using the given options. Below the source parameter semantic.- File system Resource:
file:/path
- EMF
URI
:uri
- pathmap:
pathmap:path
- Workspace Resource:
platform:/resource/path
- Plug-in Resource:
platform:/plugin/path
- Specified by:
inject
in interfaceIInjector
- Parameters:
targetModel
- the IModel where to injectsource
- the source indication to load the sourceModel: an URL, or a specific thingoptions
- the injection parameters- Throws:
ATLCoreException
- See Also:
- File system Resource:
-
inject
Injects data into an IModel using default options.- Specified by:
inject
in interfaceIInjector
- Parameters:
targetModel
- the IModel where to injectsource
- the source indication to load the sourceModel- Throws:
ATLCoreException
- See Also:
-
inject
public void inject(IModel targetModel, InputStream source, Map<String, Object> options) throws ATLCoreExceptionInjects data into an IModel using the given options.- Specified by:
inject
in interfaceIInjector
- Parameters:
targetModel
- the IModel where to injectsource
- theInputStream
containing the modeloptions
- the injection parameters- Throws:
ATLCoreException
- See Also:
-
inject
public void inject(IModel targetModel, Reader source, Map<String, Object> options) throws ATLCoreExceptionInjects data into an IModel using the given options.- Specified by:
inject
in interfaceIInjector
- Parameters:
targetModel
- the IModel where to injectsource
- theReader
containing the modeloptions
- the injection parameters- Throws:
ATLCoreException
- See Also:
-
inject
Injects data into an IModel from aResource
.- Parameters:
targetModel
- the IModel where to injectmainResource
- the main Resource
-