org.eclipse.gmt.umlx.ecore2.impl
Class E2AssociationImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.impl.EModelElementImpl
                  extended by org.eclipse.gmt.umlx.ecore2.impl.E2LinkImpl
                      extended by org.eclipse.gmt.umlx.ecore2.impl.E2TransientLinkImpl
                          extended by org.eclipse.gmt.umlx.ecore2.impl.E2AssociationImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, E2Association, E2Link, E2TransientLink

public class E2AssociationImpl
extends E2TransientLinkImpl
implements E2Association

An implementation of the model object 'EAssociation'. The implementation alwyas has non-null source and target references so that the source and target classes can always be identified, even when source or target references are orphaned (have a null containing class)/

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
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 E2DirectedAssociation basicGetForward()
           
 E2DirectedAssociation basicGetReverse()
           
 org.eclipse.emf.common.notify.NotificationChain basicSetForward(E2DirectedAssociation newForward, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetReverse(E2DirectedAssociation newReverse, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 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, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 E2Direction getDirection()
           
 E2DirectedAssociation getForward()
           
 E2DirectedAssociation getFrom(org.eclipse.emf.ecore.EReference source)
           
 E2DirectedAssociation getReverse()
           
 org.eclipse.emf.ecore.EReference getSource()
           
 org.eclipse.emf.ecore.EClass getSourceClass()
           
 org.eclipse.emf.ecore.EReference getSourceReference()
           
 org.eclipse.emf.ecore.EReference getTarget()
           
 org.eclipse.emf.ecore.EClass getTargetClass()
           
 org.eclipse.emf.ecore.EReference getTargetReference()
           
 org.eclipse.emf.ecore.EClass getThatClass(org.eclipse.emf.ecore.EClass thisClass)
           
 org.eclipse.emf.ecore.EReference getThatReference(org.eclipse.emf.ecore.EReference thisReference)
           
 org.eclipse.emf.ecore.EClass getThisClass(org.eclipse.emf.ecore.EClass thisClass)
           
 org.eclipse.emf.ecore.EReference getThisReference(org.eclipse.emf.ecore.EReference thisReference)
           
 E2DirectedAssociation getTo(org.eclipse.emf.ecore.EReference target)
           
 void initialise(org.eclipse.emf.ecore.EReference source, org.eclipse.emf.ecore.EReference target)
           
 boolean isInModel()
           
 void setDirection(E2Direction newDirection)
           
 void setForward(E2DirectedAssociation newForward)
           
 void setReverse(E2DirectedAssociation newReverse)
           
 void setSource(org.eclipse.emf.ecore.EReference newSource)
           
 void setTarget(org.eclipse.emf.ecore.EReference newTarget)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eInverseAdd, eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getDirection

public E2Direction getDirection()

Specified by:
getDirection in interface E2Association
Returns:
the value of the 'Direction' attribute.
See Also:
E2Direction, E2Association.setDirection(E2Direction), Ecore2Package.getE2Association_Direction()

setDirection

public void setDirection(E2Direction newDirection)

Specified by:
setDirection in interface E2Association
Parameters:
newDirection - the new value of the 'Direction' attribute.
See Also:
E2Direction, E2Association.getDirection()

getForward

public E2DirectedAssociation getForward()

Specified by:
getForward in interface E2Association
Returns:
the value of the 'Forward' containment reference.
See Also:
E2Association.setForward(E2DirectedAssociation), Ecore2Package.getE2Association_Forward()

basicSetForward

public org.eclipse.emf.common.notify.NotificationChain basicSetForward(E2DirectedAssociation newForward,
                                                                       org.eclipse.emf.common.notify.NotificationChain msgs)


setForward

public void setForward(E2DirectedAssociation newForward)

Specified by:
setForward in interface E2Association
Parameters:
newForward - the new value of the 'Forward' containment reference.
See Also:
E2Association.getForward()

getReverse

public E2DirectedAssociation getReverse()

Specified by:
getReverse in interface E2Association
Returns:
the value of the 'Reverse' containment reference.
See Also:
E2Association.setReverse(E2DirectedAssociation), Ecore2Package.getE2Association_Reverse()

basicSetReverse

public org.eclipse.emf.common.notify.NotificationChain basicSetReverse(E2DirectedAssociation newReverse,
                                                                       org.eclipse.emf.common.notify.NotificationChain msgs)


setReverse

public void setReverse(E2DirectedAssociation newReverse)

Specified by:
setReverse in interface E2Association
Parameters:
newReverse - the new value of the 'Reverse' containment reference.
See Also:
E2Association.getReverse()

getSource

public org.eclipse.emf.ecore.EReference getSource()

Specified by:
getSource in interface E2Association
Specified by:
getSource in interface E2Link
Specified by:
getSource in class E2LinkImpl
Returns:
the value of the 'Source' reference.
See Also:
E2Association.setSource(EReference), Ecore2Package.getE2Association_Source()

getSourceClass

public org.eclipse.emf.ecore.EClass getSourceClass()

Specified by:
getSourceClass in interface E2Association

getSourceReference

public org.eclipse.emf.ecore.EReference getSourceReference()

Specified by:
getSourceReference in interface E2Association

getTargetClass

public org.eclipse.emf.ecore.EClass getTargetClass()

Specified by:
getTargetClass in interface E2Association

getTargetReference

public org.eclipse.emf.ecore.EReference getTargetReference()

Specified by:
getTargetReference in interface E2Association

basicGetForward

public E2DirectedAssociation basicGetForward()

Specified by:
basicGetForward in interface E2Association

basicGetReverse

public E2DirectedAssociation basicGetReverse()

Specified by:
basicGetReverse in interface E2Association

getFrom

public E2DirectedAssociation getFrom(org.eclipse.emf.ecore.EReference source)

Specified by:
getFrom in interface E2Association

isInModel

public boolean isInModel()

Specified by:
isInModel in interface E2Association

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 class org.eclipse.emf.ecore.impl.EModelElementImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.EModelElementImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.EModelElementImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.EModelElementImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.EModelElementImpl

getThatClass

public org.eclipse.emf.ecore.EClass getThatClass(org.eclipse.emf.ecore.EClass thisClass)

Specified by:
getThatClass in interface E2Association

getThisClass

public org.eclipse.emf.ecore.EClass getThisClass(org.eclipse.emf.ecore.EClass thisClass)

Specified by:
getThisClass in interface E2Association

getThatReference

public org.eclipse.emf.ecore.EReference getThatReference(org.eclipse.emf.ecore.EReference thisReference)

Specified by:
getThatReference in interface E2Association

getThisReference

public org.eclipse.emf.ecore.EReference getThisReference(org.eclipse.emf.ecore.EReference thisReference)

Specified by:
getThisReference in interface E2Association

getTo

public E2DirectedAssociation getTo(org.eclipse.emf.ecore.EReference target)

Specified by:
getTo in interface E2Association

initialise

public void initialise(org.eclipse.emf.ecore.EReference source,
                       org.eclipse.emf.ecore.EReference target)

Specified by:
initialise in interface E2Association

setSource

public void setSource(org.eclipse.emf.ecore.EReference newSource)

Specified by:
setSource in interface E2Association
Parameters:
newSource - the new value of the 'Source' reference.
See Also:
E2Association.getSource()

getTarget

public org.eclipse.emf.ecore.EReference getTarget()

Specified by:
getTarget in interface E2Association
Specified by:
getTarget in interface E2Link
Specified by:
getTarget in class E2LinkImpl
Returns:
the value of the 'Target' reference.
See Also:
E2Association.setTarget(EReference), Ecore2Package.getE2Association_Target()

setTarget

public void setTarget(org.eclipse.emf.ecore.EReference newTarget)

Specified by:
setTarget in interface E2Association
Parameters:
newTarget - the new value of the 'Target' reference.
See Also:
E2Association.getTarget()