public class MetamodelExtent extends Object
Constructor and Description |
---|
MetamodelExtent()
Constructor
|
MetamodelExtent(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRootPackage(org.eclipse.emf.ecore.EPackage rootPackage)
Add a root package
|
void |
addRootPackages(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
Add a collection of root packages
|
void |
addToExtent(Collection<org.eclipse.emf.ecore.EObject> elements)
Add a collection of metamodel elements to the extent
|
void |
addToExtent(org.eclipse.emf.ecore.EObject element)
Add a metamodel element to the extent
|
void |
clearExtentMap()
Clear the extent map
|
void |
dispose()
Dispose the extent
|
Collection<org.eclipse.emf.ecore.EObject> |
getChoiceOfValues(org.eclipse.emf.ecore.EClass type)
Get the extent of a certain type
|
Collection<org.eclipse.emf.ecore.EPackage> |
getRootPackages()
Getter for the root packages
|
boolean |
isConsistent()
Determine whether the metamodel is consistent, i.e.
|
void |
removeFromExtent(Collection<org.eclipse.emf.ecore.EObject> elements)
Remove a collection of element from the extent
|
void |
removeFromExtent(org.eclipse.emf.ecore.EObject element)
Remove a metamodel element from the extent
|
void |
setRootPackages(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
Set the collection of root packages
|
public MetamodelExtent()
public MetamodelExtent(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
public void addRootPackage(org.eclipse.emf.ecore.EPackage rootPackage)
rootPackage
- Root packagepublic void setRootPackages(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
rootPackages
- Collection of root packagespublic void addRootPackages(Collection<org.eclipse.emf.ecore.EPackage> rootPackages)
rootPackages
- Collection of root packagespublic Collection<org.eclipse.emf.ecore.EPackage> getRootPackages()
public Collection<org.eclipse.emf.ecore.EObject> getChoiceOfValues(org.eclipse.emf.ecore.EClass type)
type
- Typepublic void addToExtent(Collection<org.eclipse.emf.ecore.EObject> elements)
public void addToExtent(org.eclipse.emf.ecore.EObject element)
public void removeFromExtent(Collection<org.eclipse.emf.ecore.EObject> elements)
elements
- Collection of objectspublic void removeFromExtent(org.eclipse.emf.ecore.EObject element)
public void dispose()
public void clearExtentMap()
public boolean isConsistent()
Copyright © 2020. All rights reserved.