Class TCSInjector
- java.lang.Object
-
- org.eclipse.m2m.atl.drivers.emf4atl.tcs.injector.TCSInjector
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelAdapterproblemsModelAdapterprotected ModelAdaptertargetModelAdapter
-
Constructor Summary
Constructors Constructor Description TCSInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.MapgetParameterTypes()returns the list of parameters supported by this injector in the form of a Map with parameter names as keys and type name as value.java.lang.StringgetPrefix()ASMModelElementinject(ASMModel target, java.io.InputStream source, java.util.Map params)Performs the injection.ASMModelElementinject(ASMModel target, java.io.Reader source, java.util.Map params)Performs the injection.voidperformImportation(ASMModel format, ASMModel extent, java.io.InputStream in, java.lang.String other)
-
-
-
Field Detail
-
problemsModelAdapter
protected ModelAdapter problemsModelAdapter
-
targetModelAdapter
protected ModelAdapter targetModelAdapter
-
-
Method Detail
-
getParameterTypes
public java.util.Map getParameterTypes()
Description copied from interface:Injectorreturns the list of parameters supported by this injector in the form of a Map with parameter names as keys and type name as value. Known type names are: "String" "Model"- Specified by:
getParameterTypesin interfaceInjector- Returns:
- the Map of parameter types
-
inject
public ASMModelElement inject(ASMModel target, java.io.InputStream source, java.util.Map params) throws java.io.IOException
Performs the injection.- Specified by:
injectin interfaceInjector- Parameters:
target- The target model to populate.source- The source InputStream. Alternative source kinds can be passed in params.params- A Map of additional parameters. The key is the name.- Returns:
- The root element of the populated model if it exists, any element else.
- Throws:
java.io.IOException- See Also:
Injector.inject(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel, java.io.InputStream, java.util.Map)
-
inject
public ASMModelElement inject(ASMModel target, java.io.Reader source, java.util.Map params) throws java.io.IOException
Performs the injection.- Specified by:
injectin interfaceInjector- Parameters:
target- The target model to populate.source- The source Reader. Alternative source kinds can be passed in params.params- A Map of additional parameters. The key is the name.- Returns:
- The root element of the populated model if it exists, any element else.
- Throws:
java.io.IOException- See Also:
Injector.inject(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel, java.io.Reader, java.util.Map)
-
performImportation
public void performImportation(ASMModel format, ASMModel extent, java.io.InputStream in, java.lang.String other) throws java.io.IOException
- Specified by:
performImportationin interfaceInjector- Throws:
java.io.IOException
-
-