|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.ModelFactory
org.eclipse.m2m.atl.core.ui.vm.asm.ASMFactory
public class ASMFactory
The RegularVM adaptation of the ModelFactory
.
Field Summary | |
---|---|
static java.lang.String |
MODEL_FACTORY_NAME
The model factory name which is also the extractor/injector name. |
static java.lang.String |
OPTION_MODEL_HANDLER
The model handler name. |
static java.lang.String |
OPTION_MODEL_NAME
The model name. |
static java.lang.String |
OPTION_MODEL_PATH
The model path. |
static java.lang.String |
OPTION_NEW_MODEL
The newModel boolean. |
Constructor Summary | |
---|---|
ASMFactory()
Creates a new ASMFactory . |
Method Summary | |
---|---|
IReferenceModel |
getBuiltInResource(java.lang.String name)
Returns the built-in resource matching the given name. |
java.lang.String |
getDefaultExtractorName()
Returns a default IExtractor associated with the current factory. |
java.lang.String |
getDefaultInjectorName()
Returns a default IInjector associated with the current factory. |
IReferenceModel |
getMetametamodel()
Returns the Metametamodel. |
static ASMModelWrapper |
getMetametamodel(java.lang.String modelHandlerName)
Find the metametamodel for a given model handler name. |
IModel |
newModel(IReferenceModel referenceModel)
Creates a new IModel using default options and conforming to the given IReferenceModel . |
IModel |
newModel(IReferenceModel referenceModel,
java.util.Map<java.lang.String,java.lang.Object> options)
Creates a new IModel using specified options and conforming to the given
IReferenceModel . This method needs additional parameters to be launched, passed as options:
modelHandlerName: the name of the model handler. |
IReferenceModel |
newReferenceModel()
Creates a new IReferenceModel using default options. |
IReferenceModel |
newReferenceModel(java.util.Map<java.lang.String,java.lang.Object> options)
Creates a new IReferenceModel using specified options. This method needs additional parameters to be launched, passed as options:
modelHandlerName: the name of the model handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODEL_FACTORY_NAME
public static final java.lang.String OPTION_MODEL_HANDLER
public static final java.lang.String OPTION_MODEL_NAME
public static final java.lang.String OPTION_MODEL_PATH
public static final java.lang.String OPTION_NEW_MODEL
Constructor Detail |
---|
public ASMFactory()
ASMFactory
.
Method Detail |
---|
public java.lang.String getDefaultExtractorName()
IExtractor
associated with the current factory.
getDefaultExtractorName
in class ModelFactory
IExtractor
ModelFactory.getDefaultExtractorName()
public java.lang.String getDefaultInjectorName()
IInjector
associated with the current factory.
getDefaultInjectorName
in class ModelFactory
IInjector
ModelFactory.getDefaultInjectorName()
public IModel newModel(IReferenceModel referenceModel, java.util.Map<java.lang.String,java.lang.Object> options)
IModel
using specified options and conforming to the given
IReferenceModel
. This method needs additional parameters to be launched, passed as options:
newModel
in class ModelFactory
referenceModel
- the IReferenceModel
options
- the creation options
IModel
ModelFactory.newModel(org.eclipse.m2m.atl.core.IReferenceModel,
java.util.Map)
public IReferenceModel newReferenceModel(java.util.Map<java.lang.String,java.lang.Object> options)
IReferenceModel
using specified options. This method needs additional parameters to be launched, passed as options:
newReferenceModel
in class ModelFactory
options
- the creation options
IReferenceModel
ModelFactory.newReferenceModel(java.util.Map)
public IModel newModel(IReferenceModel referenceModel) throws ATLCoreException
IModel
using default options and conforming to the given IReferenceModel
.
newModel
in class ModelFactory
referenceModel
- the IReferenceModel
IModel
ATLCoreException
ModelFactory.newModel(org.eclipse.m2m.atl.core.IReferenceModel)
public IReferenceModel newReferenceModel() throws ATLCoreException
IReferenceModel
using default options.
newReferenceModel
in class ModelFactory
IReferenceModel
ATLCoreException
ModelFactory.newReferenceModel()
public IReferenceModel getBuiltInResource(java.lang.String name)
getBuiltInResource
in class ModelFactory
name
- the resource name
ModelFactory.getBuiltInResource(java.lang.String)
public static ASMModelWrapper getMetametamodel(java.lang.String modelHandlerName)
modelHandlerName
- the model handler name
public IReferenceModel getMetametamodel()
getMetametamodel
in class ModelFactory
ModelFactory.getMetametamodel()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |