Package org.eclipse.m2m.atl.core
Class ModelFactory
java.lang.Object
org.eclipse.m2m.atl.core.ModelFactory
- Direct Known Subclasses:
ASMFactory,EMFModelFactory
The ModelFactory abstract class allows to create
IModel and IReferenceModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IReferenceModelgetBuiltInResource(String name) Returns the built-in resource matching the given name.abstract StringReturns a defaultIExtractorassociated with the current factory.abstract StringReturns a defaultIInjectorassociated with the current factory.abstract IReferenceModelReturns the Metametamodel.abstract IModelnewModel(IReferenceModel referenceModel) Creates a newIModelusing default options and conforming to the givenIReferenceModel.abstract IModelnewModel(IReferenceModel referenceModel, Map<String, Object> options) Creates a newIModelusing specified options and conforming to the givenIReferenceModel.abstract IReferenceModelCreates a newIReferenceModelusing default options.abstract IReferenceModelnewReferenceModel(Map<String, Object> options) Creates a newIReferenceModelusing specified options.
-
Constructor Details
-
ModelFactory
public ModelFactory()
-
-
Method Details
-
getMetametamodel
Returns the Metametamodel.- Returns:
- the Metametamodel
-
getDefaultInjectorName
Returns a defaultIInjectorassociated with the current factory.- Returns:
- the default
IInjector
-
getDefaultExtractorName
Returns a defaultIExtractorassociated with the current factory.- Returns:
- the default
IExtractor
-
newReferenceModel
Creates a newIReferenceModelusing default options.- Returns:
- a new
IReferenceModel - Throws:
ATLCoreException
-
newReferenceModel
public abstract IReferenceModel newReferenceModel(Map<String, Object> options) throws ATLCoreExceptionCreates a newIReferenceModelusing specified options.- Parameters:
options- the creation options- Returns:
- a new
IReferenceModel - Throws:
ATLCoreException
-
newModel
Creates a newIModelusing default options and conforming to the givenIReferenceModel.- Parameters:
referenceModel- theIReferenceModel- Returns:
- a new
IModel - Throws:
ATLCoreException
-
newModel
public abstract IModel newModel(IReferenceModel referenceModel, Map<String, Object> options) throws ATLCoreExceptionCreates a newIModelusing specified options and conforming to the givenIReferenceModel.- Parameters:
referenceModel- theIReferenceModeloptions- the creation options- Returns:
- a new
IModel - Throws:
ATLCoreException
-
getBuiltInResource
Returns the built-in resource matching the given name.- Parameters:
name- the resource name- Returns:
- the built-in resource matching the given name
- Throws:
ATLCoreException
-