Class InstanceImpl
- 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.InstanceImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Instance
public class InstanceImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Instance
An implementation of the model object ' Instance'.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 void
add(String featureName, int index, Object value)
void
add(String featureName, Object value)
void
add(org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
void
add(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
org.eclipse.emf.common.notify.NotificationChain
basicSetType(Type newType, org.eclipse.emf.common.notify.NotificationChain msgs)
Instance
copy()
org.eclipse.emf.common.notify.NotificationChain
eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.ecore.EClass
eClass()
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
eContents()
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
eCrossReferences()
Object
eGet(int featureID, boolean resolve, boolean coreType)
Object
eGet(org.eclipse.emf.ecore.EStructuralFeature feature, 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)
boolean
eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
void
eSet(int featureID, Object newValue)
void
eUnset(int featureID)
<V> V
evaluate(String expression)
<V> V
get(String featureName)
<V> V
get(org.eclipse.emf.ecore.EStructuralFeature feature)
Instance
getContainer()
org.eclipse.emf.ecore.EReference
getContainerReference()
org.eclipse.emf.common.util.EList<Instance>
getContents()
org.eclipse.emf.ecore.EClass
getEClass()
org.eclipse.emf.common.util.EList<Instance>
getInverse(String referenceName)
org.eclipse.emf.common.util.EList<Instance>
getInverse(org.eclipse.emf.ecore.EReference reference)
Instance
getLink(String referenceName)
Instance
getLink(org.eclipse.emf.ecore.EReference reference)
org.eclipse.emf.common.util.EList<Instance>
getLinks(String referenceName)
org.eclipse.emf.common.util.EList<Instance>
getLinks(org.eclipse.emf.ecore.EReference reference)
org.eclipse.emf.common.util.EList<ReferenceSlot>
getReferences()
ModelResource
getResource()
Slot
getSlot(org.eclipse.emf.ecore.EStructuralFeature feature)
org.eclipse.emf.common.util.EList<Slot>
getSlots()
Type
getType()
org.eclipse.emf.common.util.URI
getUri()
String
getUuid()
boolean
instanceOf(String className)
boolean
instanceOf(org.eclipse.emf.ecore.EClass eClass)
boolean
isProxy()
boolean
isSet(org.eclipse.emf.ecore.EStructuralFeature feature)
void
migrate(String className)
void
migrate(org.eclipse.emf.ecore.EClass eClass)
void
remove(String featureName, Object value)
void
remove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
void
remove(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
void
set(String featureName, Object value)
void
set(org.eclipse.emf.ecore.EStructuralFeature feature, Object newValue)
void
setType(Type newType)
void
setUri(org.eclipse.emf.common.util.URI newUri)
void
setUuid(String newUuid)
String
toString()
<V> V
unset(org.eclipse.emf.ecore.EStructuralFeature feature)
void
validate()
boolean
validate(org.eclipse.emf.common.util.DiagnosticChain chain)
-
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, 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, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, 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
-
getSlots
public org.eclipse.emf.common.util.EList<Slot> getSlots()
- Specified by:
getSlots
in interfaceInstance
- Returns:
- the value of the 'Slots' containment reference list.
- See Also:
MigrationPackage.getInstance_Slots()
,Slot.getInstance()
-
getType
public Type getType()
- Specified by:
getType
in interfaceInstance
- Returns:
- the value of the 'Type' container reference.
- See Also:
Instance.setType(Type)
,MigrationPackage.getInstance_Type()
,Type.getInstances()
-
basicSetType
public org.eclipse.emf.common.notify.NotificationChain basicSetType(Type newType, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setType
public void setType(Type newType)
- Specified by:
setType
in interfaceInstance
- Parameters:
newType
- the new value of the 'Type' container reference.- See Also:
Instance.getType()
-
getReferences
public org.eclipse.emf.common.util.EList<ReferenceSlot> getReferences()
- Specified by:
getReferences
in interfaceInstance
- Returns:
- the value of the 'References' reference list.
- See Also:
MigrationPackage.getInstance_References()
,ReferenceSlot.getValues()
-
getUri
public org.eclipse.emf.common.util.URI getUri()
- Specified by:
getUri
in interfaceInstance
- Returns:
- the value of the 'Uri' attribute.
- See Also:
Instance.setUri(URI)
,MigrationPackage.getInstance_Uri()
-
setUri
public void setUri(org.eclipse.emf.common.util.URI newUri)
- Specified by:
setUri
in interfaceInstance
- Parameters:
newUri
- the new value of the 'Uri' attribute.- See Also:
Instance.getUri()
-
getUuid
public String getUuid()
- Specified by:
getUuid
in interfaceInstance
- Returns:
- the value of the 'Uuid' attribute.
- See Also:
Instance.setUuid(String)
,MigrationPackage.getInstance_Uuid()
-
setUuid
public void setUuid(String newUuid)
- Specified by:
setUuid
in interfaceInstance
- Parameters:
newUuid
- the new value of the 'Uuid' attribute.- See Also:
Instance.getUuid()
-
get
public <V> V get(org.eclipse.emf.ecore.EStructuralFeature feature)
-
set
public void set(org.eclipse.emf.ecore.EStructuralFeature feature, Object newValue)
-
getSlot
public Slot getSlot(org.eclipse.emf.ecore.EStructuralFeature feature)
-
evaluate
public <V> V evaluate(String expression) throws MigrationException
- Specified by:
evaluate
in interfaceInstance
- Throws:
MigrationException
-
getContainerReference
public org.eclipse.emf.ecore.EReference getContainerReference()
- Specified by:
getContainerReference
in interfaceInstance
-
getResource
public ModelResource getResource()
- Specified by:
getResource
in interfaceInstance
-
getInverse
public org.eclipse.emf.common.util.EList<Instance> getInverse(String referenceName)
- Specified by:
getInverse
in interfaceInstance
-
instanceOf
public boolean instanceOf(String className)
- Specified by:
instanceOf
in interfaceInstance
-
getLink
public Instance getLink(org.eclipse.emf.ecore.EReference reference)
-
getLinks
public org.eclipse.emf.common.util.EList<Instance> getLinks(org.eclipse.emf.ecore.EReference reference)
-
getInverse
public org.eclipse.emf.common.util.EList<Instance> getInverse(org.eclipse.emf.ecore.EReference reference)
- Specified by:
getInverse
in interfaceInstance
-
migrate
public void migrate(org.eclipse.emf.ecore.EClass eClass)
-
unset
public <V> V unset(org.eclipse.emf.ecore.EStructuralFeature feature)
-
add
public void add(org.eclipse.emf.ecore.EStructuralFeature feature, int index, Object value)
-
remove
public void remove(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
-
getEClass
public org.eclipse.emf.ecore.EClass getEClass()
-
validate
public boolean validate(org.eclipse.emf.common.util.DiagnosticChain chain)
-
isSet
public boolean isSet(org.eclipse.emf.ecore.EStructuralFeature feature)
-
instanceOf
public boolean instanceOf(org.eclipse.emf.ecore.EClass eClass)
- Specified by:
instanceOf
in interfaceInstance
-
getContainer
public Instance getContainer()
- Specified by:
getContainer
in interfaceInstance
-
getContents
public org.eclipse.emf.common.util.EList<Instance> getContents()
- Specified by:
getContents
in interfaceInstance
-
add
public void add(org.eclipse.emf.ecore.EStructuralFeature feature, Object value)
-
remove
public void remove(org.eclipse.emf.ecore.EStructuralFeature feature, int index)
-
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
-
eClass
public org.eclipse.emf.ecore.EClass eClass()
- Specified by:
eClass
in interfaceorg.eclipse.emf.ecore.EObject
- Overrides:
eClass
in classorg.eclipse.emf.ecore.impl.EObjectImpl
-
eGet
public Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.EObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eContents
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
- Specified by:
eContents
in interfaceorg.eclipse.emf.ecore.EObject
- Overrides:
eContents
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eCrossReferences
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eCrossReferences()
- Specified by:
eCrossReferences
in interfaceorg.eclipse.emf.ecore.EObject
- Overrides:
eCrossReferences
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
-