Class EMFInjector
java.lang.Object
org.eclipse.m2m.atl.core.emf.EMFInjector
- All Implemented Interfaces:
IInjector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInjects data into an IModel using the given options.voidInjects data into an IModel using the given options.voidInjects data into an IModel using default options.voidInjects data into an IModel using the given options.voidInjects data into an IModel from aResource.
-
Field Details
-
OPTION_LOAD_ON_DEMAND
-
-
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:
injectin 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:
injectin 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:
injectin interfaceIInjector- Parameters:
targetModel- the IModel where to injectsource- theInputStreamcontaining 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:
injectin interfaceIInjector- Parameters:
targetModel- the IModel where to injectsource- theReadercontaining 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
-