Package org.eclipse.m2m.atl.core
Class ModelFactory
- java.lang.Object
-
- org.eclipse.m2m.atl.core.ModelFactory
-
- Direct Known Subclasses:
ASMFactory,EMFModelFactory
public abstract class ModelFactory extends java.lang.ObjectThe ModelFactory abstract class allows to createIModelandIReferenceModel.
-
-
Constructor Summary
Constructors Constructor Description ModelFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract IReferenceModelgetBuiltInResource(java.lang.String name)Returns the built-in resource matching the given name.abstract java.lang.StringgetDefaultExtractorName()Returns a defaultIExtractorassociated with the current factory.abstract java.lang.StringgetDefaultInjectorName()Returns a defaultIInjectorassociated with the current factory.abstract IReferenceModelgetMetametamodel()Returns the Metametamodel.abstract IModelnewModel(IReferenceModel referenceModel)Creates a newIModelusing default options and conforming to the givenIReferenceModel.abstract IModelnewModel(IReferenceModel referenceModel, java.util.Map<java.lang.String,java.lang.Object> options)Creates a newIModelusing specified options and conforming to the givenIReferenceModel.abstract IReferenceModelnewReferenceModel()Creates a newIReferenceModelusing default options.abstract IReferenceModelnewReferenceModel(java.util.Map<java.lang.String,java.lang.Object> options)Creates a newIReferenceModelusing specified options.
-
-
-
Method Detail
-
getMetametamodel
public abstract IReferenceModel getMetametamodel()
Returns the Metametamodel.- Returns:
- the Metametamodel
-
getDefaultInjectorName
public abstract java.lang.String getDefaultInjectorName()
Returns a defaultIInjectorassociated with the current factory.- Returns:
- the default
IInjector
-
getDefaultExtractorName
public abstract java.lang.String getDefaultExtractorName()
Returns a defaultIExtractorassociated with the current factory.- Returns:
- the default
IExtractor
-
newReferenceModel
public abstract IReferenceModel newReferenceModel() throws ATLCoreException
Creates a newIReferenceModelusing default options.- Returns:
- a new
IReferenceModel - Throws:
ATLCoreException
-
newReferenceModel
public abstract IReferenceModel newReferenceModel(java.util.Map<java.lang.String,java.lang.Object> options) throws ATLCoreException
Creates a newIReferenceModelusing specified options.- Parameters:
options- the creation options- Returns:
- a new
IReferenceModel - Throws:
ATLCoreException
-
newModel
public abstract IModel newModel(IReferenceModel referenceModel) throws ATLCoreException
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, java.util.Map<java.lang.String,java.lang.Object> options) throws ATLCoreException
Creates a newIModelusing specified options and conforming to the givenIReferenceModel.- Parameters:
referenceModel- theIReferenceModeloptions- the creation options- Returns:
- a new
IModel - Throws:
ATLCoreException
-
getBuiltInResource
public abstract IReferenceModel getBuiltInResource(java.lang.String name) throws ATLCoreException
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
-
-