public interface Model
The following features are supported:
MigrationPackage.getModel()
Modifier and Type | Method and Description |
---|---|
void |
checkConformance()
Check whether the model conforms to the metamodel
|
void |
commit()
Commit the changes to the repository, i.e.
|
Map<org.eclipse.emf.ecore.EClass,Set<Instance>> |
createExtentMap()
Create a map to access instances by their class
|
void |
delete(Instance instance)
Delete an instance from the model, including all the contained instances
|
org.eclipse.emf.common.util.EList<Instance> |
getAllInstances(org.eclipse.emf.ecore.EClass eClass)
Get all instances of a class, including all sub classes
|
org.eclipse.emf.common.util.EList<Instance> |
getAllInstances(String className)
Get all instances of a class, including all sub classes
|
org.eclipse.emf.common.util.EList<Instance> |
getInstances(org.eclipse.emf.ecore.EClass eClass)
Get all instances of a class, excluding sub classes
|
org.eclipse.emf.common.util.EList<Instance> |
getInstances(String className)
Get all instances of a class, excluding sub classes
|
Metamodel |
getMetamodel()
Returns the value of the 'Metamodel' reference.
|
Repository |
getRepository()
Returns the value of the 'Repository' container reference.
|
org.eclipse.emf.common.util.EList<ModelResource> |
getResources()
Returns the value of the 'Resources' containment reference list.
|
Type |
getType(org.eclipse.emf.ecore.EClass eClass)
Get the container for instances that conform to a certain class
|
org.eclipse.emf.common.util.EList<Type> |
getTypes()
Returns the value of the 'Types' containment reference list.
|
boolean |
isReflection()
Returns the value of the 'Reflection' attribute.
|
Instance |
newInstance(org.eclipse.emf.ecore.EClass eClass)
Create a new instance of a certain class
|
Instance |
newInstance(String className)
Create a new instance of a certain class
|
ModelResource |
newResource(org.eclipse.emf.common.util.URI uri)
Create a new instance of a certain class
|
void |
setMetamodel(Metamodel value)
Sets the value of the '
Metamodel '
reference. |
void |
setReflection(boolean value)
Sets the value of the '
Reflection '
attribute. |
void |
setRepository(Repository value)
Sets the value of the '
Repository '
container reference. |
void |
validate()
Validate the model
|
Metamodel getMetamodel()
If the meaning of the 'Metamodel' reference isn't clear, there really should be more of a description here...
Get the metamodel to which this model conformssetMetamodel(Metamodel)
,
MigrationPackage.getModel_Metamodel()
void setMetamodel(Metamodel value)
Metamodel
'
reference.
value
- the new value of the 'Metamodel' reference.getMetamodel()
org.eclipse.emf.common.util.EList<Type> getTypes()
Type
.
It is bidirectional and its opposite is 'Model
'.
If the meaning of the 'Types' containment reference list isn't clear, there really should be more of a description here...
Containers for the classes from which instances existMigrationPackage.getModel_Types()
,
Type.getModel()
boolean isReflection()
If the meaning of the 'Reflection' attribute isn't clear, there really should be more of a description here...
Whether the reflection interface allows to access the real model structuresetReflection(boolean)
,
MigrationPackage.getModel_Reflection()
void setReflection(boolean value)
Reflection
'
attribute.
value
- the new value of the 'Reflection' attribute.isReflection()
org.eclipse.emf.common.util.EList<ModelResource> getResources()
ModelResource
.
It is bidirectional and its opposite is 'Model
'.
If the meaning of the 'Resources' containment reference list isn't clear, there really should be more of a description here...
Resources of which this model consistsMigrationPackage.getModel_Resources()
,
ModelResource.getModel()
Repository getRepository()
Model
'.
If the meaning of the 'Repository' container reference isn't clear, there really should be more of a description here...
Repository to which this model belongssetRepository(Repository)
,
MigrationPackage.getModel_Repository()
,
Repository.getModel()
void setRepository(Repository value)
Repository
'
container reference.
value
- the new value of the 'Repository' container reference.getRepository()
org.eclipse.emf.common.util.EList<Instance> getAllInstances(org.eclipse.emf.ecore.EClass eClass)
org.eclipse.emf.common.util.EList<Instance> getInstances(org.eclipse.emf.ecore.EClass eClass)
Type getType(org.eclipse.emf.ecore.EClass eClass)
Map<org.eclipse.emf.ecore.EClass,Set<Instance>> createExtentMap()
Instance newInstance(org.eclipse.emf.ecore.EClass eClass)
void delete(Instance instance)
void validate() throws MigrationException
MigrationException
void checkConformance() throws MigrationException
MigrationException
void commit() throws MigrationException
MigrationException
org.eclipse.emf.common.util.EList<Instance> getAllInstances(String className)
org.eclipse.emf.common.util.EList<Instance> getInstances(String className)
ModelResource newResource(org.eclipse.emf.common.util.URI uri)
Copyright © 2019. All rights reserved.