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 IReferenceModel
getBuiltInResource
(String name) Returns the built-in resource matching the given name.abstract String
Returns a defaultIExtractor
associated with the current factory.abstract String
Returns a defaultIInjector
associated with the current factory.abstract IReferenceModel
Returns the Metametamodel.abstract IModel
newModel
(IReferenceModel referenceModel) Creates a newIModel
using default options and conforming to the givenIReferenceModel
.abstract IModel
newModel
(IReferenceModel referenceModel, Map<String, Object> options) Creates a newIModel
using specified options and conforming to the givenIReferenceModel
.abstract IReferenceModel
Creates a newIReferenceModel
using default options.abstract IReferenceModel
newReferenceModel
(Map<String, Object> options) Creates a newIReferenceModel
using specified options.
-
Constructor Details
-
ModelFactory
public ModelFactory()
-
-
Method Details
-
getMetametamodel
Returns the Metametamodel.- Returns:
- the Metametamodel
-
getDefaultInjectorName
Returns a defaultIInjector
associated with the current factory.- Returns:
- the default
IInjector
-
getDefaultExtractorName
Returns a defaultIExtractor
associated with the current factory.- Returns:
- the default
IExtractor
-
newReferenceModel
Creates a newIReferenceModel
using default options.- Returns:
- a new
IReferenceModel
- Throws:
ATLCoreException
-
newReferenceModel
public abstract IReferenceModel newReferenceModel(Map<String, Object> options) throws ATLCoreExceptionCreates a newIReferenceModel
using specified options.- Parameters:
options
- the creation options- Returns:
- a new
IReferenceModel
- Throws:
ATLCoreException
-
newModel
Creates a newIModel
using 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 newIModel
using specified options and conforming to the givenIReferenceModel
.- Parameters:
referenceModel
- theIReferenceModel
options
- 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
-