Class ASMFactory
java.lang.Object
org.eclipse.m2m.atl.core.ModelFactory
org.eclipse.m2m.atl.core.ui.vm.asm.ASMFactory
The RegularVM adaptation of the
ModelFactory
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBuiltInResource
(String name) Returns the built-in resource matching the given name.Returns a defaultIExtractor
associated with the current factory.Returns a defaultIInjector
associated with the current factory.Returns the Metametamodel.static ASMModelWrapper
getMetametamodel
(String modelHandlerName) Find the metametamodel for a given model handler name.newModel
(IReferenceModel referenceModel) Creates a newIModel
using default options and conforming to the givenIReferenceModel
.newModel
(IReferenceModel referenceModel, Map<String, Object> options) Creates a newIModel
using specified options and conforming to the givenIReferenceModel
.Creates a newIReferenceModel
using default options.newReferenceModel
(Map<String, Object> options) Creates a newIReferenceModel
using specified options.
-
Field Details
-
MODEL_FACTORY_NAME
The model factory name which is also the extractor/injector name.- See Also:
-
OPTION_MODEL_HANDLER
The model handler name.- See Also:
-
OPTION_MODEL_NAME
The model name.- See Also:
-
OPTION_MODEL_PATH
The model path.- See Also:
-
OPTION_NEW_MODEL
The newModel boolean.- See Also:
-
-
Constructor Details
-
ASMFactory
public ASMFactory()Creates a newASMFactory
.
-
-
Method Details
-
getDefaultExtractorName
Returns a defaultIExtractor
associated with the current factory.- Specified by:
getDefaultExtractorName
in classModelFactory
- Returns:
- the default
IExtractor
- See Also:
-
getDefaultInjectorName
Returns a defaultIInjector
associated with the current factory.- Specified by:
getDefaultInjectorName
in classModelFactory
- Returns:
- the default
IInjector
- See Also:
-
newModel
Creates a newIModel
using specified options and conforming to the givenIReferenceModel
. This method needs additional parameters to be launched, passed as options:- modelHandlerName: the name of the model handler.
- modelName: the name of the model.
- path: the path of the model.
- newModel: a boolean, true if the model is a new one.
- Specified by:
newModel
in classModelFactory
- Parameters:
referenceModel
- theIReferenceModel
options
- the creation options- Returns:
- a new
IModel
- See Also:
-
newReferenceModel
Creates a newIReferenceModel
using specified options. This method needs additional parameters to be launched, passed as options:- modelHandlerName: the name of the model handler.
- modelName: the name of the model.
- path: the path of the model.
- Specified by:
newReferenceModel
in classModelFactory
- Parameters:
options
- the creation options- Returns:
- a new
IReferenceModel
- See Also:
-
newModel
Creates a newIModel
using default options and conforming to the givenIReferenceModel
.- Specified by:
newModel
in classModelFactory
- Parameters:
referenceModel
- theIReferenceModel
- Returns:
- a new
IModel
- Throws:
ATLCoreException
- See Also:
-
newReferenceModel
Creates a newIReferenceModel
using default options.- Specified by:
newReferenceModel
in classModelFactory
- Returns:
- a new
IReferenceModel
- Throws:
ATLCoreException
- See Also:
-
getBuiltInResource
Returns the built-in resource matching the given name.- Specified by:
getBuiltInResource
in classModelFactory
- Parameters:
name
- the resource name- Returns:
- the built-in resource matching the given name
- See Also:
-
getMetametamodel
Find the metametamodel for a given model handler name.- Parameters:
modelHandlerName
- the model handler name- Returns:
- the metametamodel, embedded into an ASMModelWrapper
-
getMetametamodel
Returns the Metametamodel.- Specified by:
getMetametamodel
in classModelFactory
- Returns:
- the Metametamodel
- See Also:
-