|
||||||||||
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.emf.EMFModelFactory
public class EMFModelFactory
The EMF implementation 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_CONTENT_TYPE
Content type. |
static java.lang.String |
OPTION_URI
URI option. |
Constructor Summary | |
---|---|
EMFModelFactory()
Creates a new EMFModelFactory and initialize the ResourceSet . |
Method Summary | |
---|---|
protected void |
finalizeResource(org.eclipse.emf.ecore.resource.Resource r)
Finalizes r. |
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. |
EMFReferenceModel |
getMetametamodel()
Returns the Metametamodel. |
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
|
EMFModel |
newModel(EMFReferenceModel referenceModel,
java.lang.String uri)
Creates a new EMFModel using the given uri. |
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 . |
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. |
void |
unload(EMFModel model)
Removes the model's Resource from the ResourceSet and calls
finalizeResource(Resource) . |
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_CONTENT_TYPE
public static final java.lang.String OPTION_URI
Constructor Detail |
---|
public EMFModelFactory()
EMFModelFactory
and initialize the ResourceSet
.
Method Detail |
---|
public EMFReferenceModel getMetametamodel()
getMetametamodel
in class ModelFactory
ModelFactory.getMetametamodel()
public IReferenceModel newReferenceModel(java.util.Map<java.lang.String,java.lang.Object> options)
IReferenceModel
using specified options.
newReferenceModel
in class ModelFactory
options
- the creation options
IReferenceModel
ModelFactory.newReferenceModel(java.util.Map)
public IReferenceModel newReferenceModel()
IReferenceModel
using default options.
newReferenceModel
in class ModelFactory
IReferenceModel
ModelFactory.newReferenceModel()
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
.
newModel
in class ModelFactory
referenceModel
- the IReferenceModel
options
- the creation options
IModel
ModelFactory.newModel(org.eclipse.m2m.atl.core.IReferenceModel,
java.util.Map)
public IModel newModel(IReferenceModel referenceModel)
IModel
using default options and conforming to the given IReferenceModel
.
newModel
in class ModelFactory
referenceModel
- the IReferenceModel
IModel
ModelFactory.newModel(org.eclipse.m2m.atl.core.IReferenceModel)
public EMFModel newModel(EMFReferenceModel referenceModel, java.lang.String uri)
EMFModel
using the given uri.
referenceModel
- the IReferenceModel
uri
- the model uri
IModel
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 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public IReferenceModel getBuiltInResource(java.lang.String name) throws ATLCoreException
getBuiltInResource
in class ModelFactory
name
- the resource name
ATLCoreException
ModelFactory.getBuiltInResource(java.lang.String)
public void unload(EMFModel model)
Resource
from the ResourceSet
and calls
finalizeResource(Resource)
.
model
- The model of which to remove the Resource
.protected void finalizeResource(org.eclipse.emf.ecore.resource.Resource r)
r
- The resource to finalize.
|
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 |