Interface Metamodel
-
- All Known Implementing Classes:
MetamodelImpl
public interface Metamodel
A representation of the model object 'Metamodel'. The metamodel in the repository consisting of several resourcesThe following features are supported:
- See Also:
MigrationPackage.getMetamodel()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(org.eclipse.emf.ecore.EModelElement metamodelElement)
Delete an instance from the model, including all the contained instancesorg.eclipse.emf.ecore.EPackage
getDefaultPackage()
Returns the value of the 'Default Package' reference.org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EClass>
getEAllSubTypes(org.eclipse.emf.ecore.EClass eClass)
Get the inverse value of the referenceorg.eclipse.emf.ecore.EAttribute
getEAttribute(String name)
Resolve an attribute of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EClass
getEClass(String name)
Resolve a class of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EClassifier
getEClassifier(String name)
Resolve a classifier of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EDataType
getEDataType(String name)
Resolve a data type of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EEnum
getEEnum(String name)
Resolve a data type of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EEnumLiteral
getEEnumLiteral(String name)
Resolve a data type of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EStructuralFeature
getEFeature(String name)
Resolve a feature of the metamodel by its fully qualified nameorg.eclipse.emf.ecore.EModelElement
getElement(String name)
Resolve a metamodel element by its fully qualified nameorg.eclipse.emf.ecore.EPackage
getEPackage(String name)
Resolve a package of the metamodel by its fully qualified nameorg.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EPackage>
getEPackages()
org.eclipse.emf.ecore.EReference
getEReference(String name)
Resolve a reference of the metamodel by its fully qualified nameorg.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EClass>
getESubTypes(org.eclipse.emf.ecore.EClass eClass)
Get the inverse value of the reference<V> org.eclipse.emf.common.util.EList<V>
getInverse(org.eclipse.emf.ecore.EModelElement metamodelElement, org.eclipse.emf.ecore.EReference reference)
Get the inverse value of the referenceRepository
getRepository()
Returns the value of the 'Repository' container reference.org.eclipse.emf.common.util.EList<MetamodelResource>
getResources()
Returns the value of the 'Resources' containment reference list.void
refreshCaches()
Clear the internal caches within the metamodel elements.void
setDefaultPackage(String packageName)
Resolve an attribute of the metamodel by its fully qualified namevoid
setDefaultPackage(org.eclipse.emf.ecore.EPackage value)
Sets the value of the 'Default Package
' reference.void
setEOpposite(org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EReference opposite)
Set the opposite of a reference, adapting opposite values in the modelvoid
setRepository(Repository value)
Sets the value of the 'Repository
' container reference.void
validate()
Validate the metamodel
-
-
-
Method Detail
-
getResources
org.eclipse.emf.common.util.EList<MetamodelResource> getResources()
Returns the value of the 'Resources' containment reference list. The list contents are of typeMetamodelResource
. It is bidirectional and its opposite is 'Metamodel
'.If the meaning of the 'Resources' containment reference list isn't clear, there really should be more of a description here...
The resources of which this metamodel consists- Returns:
- the value of the 'Resources' containment reference list.
- See Also:
MigrationPackage.getMetamodel_Resources()
,MetamodelResource.getMetamodel()
-
getRepository
Repository getRepository()
Returns the value of the 'Repository' container reference. It is bidirectional and its opposite is 'Metamodel
'.If the meaning of the 'Repository' container reference isn't clear, there really should be more of a description here...
The repository to which the metamodel belongs- Returns:
- the value of the 'Repository' container reference.
- See Also:
setRepository(Repository)
,MigrationPackage.getMetamodel_Repository()
,Repository.getMetamodel()
-
setRepository
void setRepository(Repository value)
Sets the value of the 'Repository
' container reference.- Parameters:
value
- the new value of the 'Repository' container reference.- See Also:
getRepository()
-
getDefaultPackage
org.eclipse.emf.ecore.EPackage getDefaultPackage()
Returns the value of the 'Default Package' reference. Packages that constitute the root of a metamodel resource- Returns:
- the value of the 'Default Package' reference.
- See Also:
setDefaultPackage(EPackage)
,MigrationPackage.getMetamodel_DefaultPackage()
-
setDefaultPackage
void setDefaultPackage(org.eclipse.emf.ecore.EPackage value)
Sets the value of the 'Default Package
' reference.- Parameters:
value
- the new value of the 'Default Package' reference.- See Also:
getDefaultPackage()
-
getEPackages
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EPackage> getEPackages()
If the meaning of the 'EPackages' reference list isn't clear, there really should be more of a description here...
The root packages of all resources of which the metamodel consists
-
setDefaultPackage
void setDefaultPackage(String packageName)
Resolve an attribute of the metamodel by its fully qualified name
-
getEEnum
org.eclipse.emf.ecore.EEnum getEEnum(String name)
Resolve a data type of the metamodel by its fully qualified name
-
getEEnumLiteral
org.eclipse.emf.ecore.EEnumLiteral getEEnumLiteral(String name)
Resolve a data type of the metamodel by its fully qualified name
-
delete
void delete(org.eclipse.emf.ecore.EModelElement metamodelElement)
Delete an instance from the model, including all the contained instances
-
getInverse
<V> org.eclipse.emf.common.util.EList<V> getInverse(org.eclipse.emf.ecore.EModelElement metamodelElement, org.eclipse.emf.ecore.EReference reference)
Get the inverse value of the reference
-
getESubTypes
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EClass> getESubTypes(org.eclipse.emf.ecore.EClass eClass)
Get the inverse value of the reference
-
getEAllSubTypes
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EClass> getEAllSubTypes(org.eclipse.emf.ecore.EClass eClass)
Get the inverse value of the reference
-
setEOpposite
void setEOpposite(org.eclipse.emf.ecore.EReference reference, org.eclipse.emf.ecore.EReference opposite)
Set the opposite of a reference, adapting opposite values in the model
-
getEPackage
org.eclipse.emf.ecore.EPackage getEPackage(String name)
Resolve a package of the metamodel by its fully qualified name
-
getEClassifier
org.eclipse.emf.ecore.EClassifier getEClassifier(String name)
Resolve a classifier of the metamodel by its fully qualified name
-
getEFeature
org.eclipse.emf.ecore.EStructuralFeature getEFeature(String name)
Resolve a feature of the metamodel by its fully qualified name
-
getEClass
org.eclipse.emf.ecore.EClass getEClass(String name)
Resolve a class of the metamodel by its fully qualified name
-
getEReference
org.eclipse.emf.ecore.EReference getEReference(String name)
Resolve a reference of the metamodel by its fully qualified name
-
getEAttribute
org.eclipse.emf.ecore.EAttribute getEAttribute(String name)
Resolve an attribute of the metamodel by its fully qualified name
-
getEDataType
org.eclipse.emf.ecore.EDataType getEDataType(String name)
Resolve a data type of the metamodel by its fully qualified name
-
getElement
org.eclipse.emf.ecore.EModelElement getElement(String name)
Resolve a metamodel element by its fully qualified name
-
validate
void validate() throws MigrationException
Validate the metamodel- Throws:
MigrationException
-
refreshCaches
void refreshCaches()
Clear the internal caches within the metamodel elements.
-
-