Class ModelImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.EObjectImpl
-
- org.eclipse.emf.edapt.spi.migration.impl.ModelImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Model
public class ModelImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Model
An implementation of the model object 'Model'.The following features are implemented:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metamodel
basicGetMetamodel()
org.eclipse.emf.common.notify.NotificationChain
basicSetRepository(Repository newRepository, org.eclipse.emf.common.notify.NotificationChain msgs)
void
checkConformance()
void
commit()
Map<org.eclipse.emf.ecore.EClass,Set<Instance>>
createExtentMap()
void
delete(Instance instance)
org.eclipse.emf.common.notify.NotificationChain
eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
Object
eGet(int featureID, boolean resolve, boolean coreType)
org.eclipse.emf.common.notify.NotificationChain
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
boolean
eIsSet(int featureID)
void
eSet(int featureID, Object newValue)
void
eUnset(int featureID)
org.eclipse.emf.common.util.EList<Instance>
getAllInstances(String className)
org.eclipse.emf.common.util.EList<Instance>
getAllInstances(org.eclipse.emf.ecore.EClass eClass)
org.eclipse.emf.common.util.EList<Instance>
getInstances(String className)
org.eclipse.emf.common.util.EList<Instance>
getInstances(org.eclipse.emf.ecore.EClass eClass)
Metamodel
getMetamodel()
Repository
getRepository()
org.eclipse.emf.common.util.EList<ModelResource>
getResources()
Type
getType(org.eclipse.emf.ecore.EClass eClass)
org.eclipse.emf.common.util.EList<Type>
getTypes()
boolean
isReflection()
Instance
newInstance(String className)
Instance
newInstance(org.eclipse.emf.ecore.EClass eClass)
ModelResource
newResource(org.eclipse.emf.common.util.URI uri)
void
setMetamodel(Metamodel newMetamodel)
void
setReflection(boolean newReflection)
void
setRepository(Repository newRepository)
String
toString()
void
validate()
-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getMetamodel
public Metamodel getMetamodel()
- Specified by:
getMetamodel
in interfaceModel
- Returns:
- the value of the 'Metamodel' reference.
- See Also:
Model.setMetamodel(Metamodel)
,MigrationPackage.getModel_Metamodel()
-
basicGetMetamodel
public Metamodel basicGetMetamodel()
-
setMetamodel
public void setMetamodel(Metamodel newMetamodel)
- Specified by:
setMetamodel
in interfaceModel
- Parameters:
newMetamodel
- the new value of the 'Metamodel' reference.- See Also:
Model.getMetamodel()
-
getTypes
public org.eclipse.emf.common.util.EList<Type> getTypes()
- Specified by:
getTypes
in interfaceModel
- Returns:
- the value of the 'Types' containment reference list.
- See Also:
MigrationPackage.getModel_Types()
,Type.getModel()
-
isReflection
public boolean isReflection()
- Specified by:
isReflection
in interfaceModel
- Returns:
- the value of the 'Reflection' attribute.
- See Also:
Model.setReflection(boolean)
,MigrationPackage.getModel_Reflection()
-
setReflection
public void setReflection(boolean newReflection)
- Specified by:
setReflection
in interfaceModel
- Parameters:
newReflection
- the new value of the 'Reflection' attribute.- See Also:
Model.isReflection()
-
getResources
public org.eclipse.emf.common.util.EList<ModelResource> getResources()
- Specified by:
getResources
in interfaceModel
- Returns:
- the value of the 'Resources' containment reference list.
- See Also:
MigrationPackage.getModel_Resources()
,ModelResource.getModel()
-
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interfaceModel
- Returns:
- the value of the 'Repository' container reference.
- See Also:
Model.setRepository(Repository)
,MigrationPackage.getModel_Repository()
,Repository.getModel()
-
basicSetRepository
public org.eclipse.emf.common.notify.NotificationChain basicSetRepository(Repository newRepository, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setRepository
public void setRepository(Repository newRepository)
- Specified by:
setRepository
in interfaceModel
- Parameters:
newRepository
- the new value of the 'Repository' container reference.- See Also:
Model.getRepository()
-
getAllInstances
public org.eclipse.emf.common.util.EList<Instance> getAllInstances(org.eclipse.emf.ecore.EClass eClass)
- Specified by:
getAllInstances
in interfaceModel
-
getInstances
public org.eclipse.emf.common.util.EList<Instance> getInstances(org.eclipse.emf.ecore.EClass eClass)
- Specified by:
getInstances
in interfaceModel
-
getType
public Type getType(org.eclipse.emf.ecore.EClass eClass)
-
createExtentMap
public Map<org.eclipse.emf.ecore.EClass,Set<Instance>> createExtentMap()
- Specified by:
createExtentMap
in interfaceModel
-
newInstance
public Instance newInstance(org.eclipse.emf.ecore.EClass eClass)
- Specified by:
newInstance
in interfaceModel
-
validate
public void validate() throws MigrationException
- Specified by:
validate
in interfaceModel
- Throws:
MigrationException
-
checkConformance
public void checkConformance() throws MigrationException
- Specified by:
checkConformance
in interfaceModel
- Throws:
MigrationException
-
commit
public void commit() throws MigrationException
- Specified by:
commit
in interfaceModel
- Throws:
MigrationException
-
getAllInstances
public org.eclipse.emf.common.util.EList<Instance> getAllInstances(String className)
- Specified by:
getAllInstances
in interfaceModel
-
getInstances
public org.eclipse.emf.common.util.EList<Instance> getInstances(String className)
- Specified by:
getInstances
in interfaceModel
-
newInstance
public Instance newInstance(String className)
- Specified by:
newInstance
in interfaceModel
-
newResource
public ModelResource newResource(org.eclipse.emf.common.util.URI uri)
- Specified by:
newResource
in interfaceModel
-
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseAdd
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eBasicRemoveFromContainerFeature
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eBasicRemoveFromContainerFeature
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, Object newValue)
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
public String toString()
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
-