org.eclipse.m2m.atl.engine.emfvm.lib
Class Model
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.Model
- Direct Known Subclasses:
- ReferenceModel
public class Model
- extends java.lang.Object
|
Constructor Summary |
|
Model(ReferenceModel referenceModel,
org.eclipse.emf.ecore.resource.Resource resource)
|
|
Model(ReferenceModel referenceModel,
org.eclipse.emf.common.util.URI uri,
boolean createNewModel)
|
|
Model(ReferenceModel referenceModel,
java.net.URL url)
|
protected |
Model(org.eclipse.emf.ecore.resource.Resource resource)
|
|
Method Summary |
void |
addDelayedInvocation(java.lang.reflect.Method method,
java.lang.Object self,
java.lang.String opName,
java.lang.Object[] arguments)
Specifies that a method must be called at the end of a model creation. |
void |
commitToResource()
|
boolean |
contains(org.eclipse.emf.ecore.EObject eo)
Test if the model contains the given EObject. |
void |
dispose()
|
java.util.Iterator |
getContents()
|
java.util.Set |
getElementsByType(org.eclipse.emf.ecore.EClass metaElement)
|
ReferenceModel |
getReferenceModel()
|
org.eclipse.emf.ecore.EObject |
newElement(org.eclipse.emf.ecore.EClass metaElement)
|
void |
save(java.lang.String uri)
|
void |
save(org.eclipse.emf.common.util.URI uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceSet
protected static org.eclipse.emf.ecore.resource.ResourceSet resourceSet
referenceModel
protected ReferenceModel referenceModel
resource
protected org.eclipse.emf.ecore.resource.Resource resource
isTarget
public boolean isTarget
Model
public Model(ReferenceModel referenceModel,
java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
Model
public Model(ReferenceModel referenceModel,
org.eclipse.emf.common.util.URI uri,
boolean createNewModel)
throws java.io.IOException
- Throws:
java.io.IOException
Model
public Model(ReferenceModel referenceModel,
org.eclipse.emf.ecore.resource.Resource resource)
Model
protected Model(org.eclipse.emf.ecore.resource.Resource resource)
getElementsByType
public java.util.Set getElementsByType(org.eclipse.emf.ecore.EClass metaElement)
getReferenceModel
public ReferenceModel getReferenceModel()
newElement
public org.eclipse.emf.ecore.EObject newElement(org.eclipse.emf.ecore.EClass metaElement)
getContents
public java.util.Iterator getContents()
save
public void save(java.lang.String uri)
throws java.io.IOException
- Throws:
java.io.IOException
save
public void save(org.eclipse.emf.common.util.URI uri)
throws java.io.IOException
- Throws:
java.io.IOException
commitToResource
public void commitToResource()
dispose
public void dispose()
contains
public boolean contains(org.eclipse.emf.ecore.EObject eo)
- Test if the model contains the given EObject.
- Parameters:
eo -
- Returns:
true if the model contains the given EObject.
addDelayedInvocation
public void addDelayedInvocation(java.lang.reflect.Method method,
java.lang.Object self,
java.lang.String opName,
java.lang.Object[] arguments)
- Specifies that a method must be called at the end of a model creation.
- Parameters:
method - the Java methodself - the caller ObjectopName - the method namearguments - the method arguments