Interface Injector
-
- All Known Implementing Classes:
TCSInjector,XMLInjector
public interface InjectorThe Injector interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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()Deprecated.This information should be in the megamodel.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)Deprecated.The inject method should be used instead of this one.
-
-
-
Method Detail
-
getParameterTypes
java.util.Map getParameterTypes()
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. Known type names are: "String" "Model"- Returns:
- the Map of parameter types
-
inject
ASMModelElement inject(ASMModel target, java.io.InputStream source, java.util.Map params) throws java.io.IOException
Performs the injection.- 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
-
inject
ASMModelElement inject(ASMModel target, java.io.Reader source, java.util.Map params) throws java.io.IOException
Performs the injection.- 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
-
getPrefix
java.lang.String getPrefix()
Deprecated.This information should be in the megamodel.
-
-