org.eclipse.emf.henshin.model.impl
Class EdgeImpl

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.henshin.model.impl.ModelElementImpl
                  extended by org.eclipse.emf.henshin.model.impl.EdgeImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, Edge, GraphElement, ModelElement

public class EdgeImpl
extends ModelElementImpl
implements Edge

An implementation of the model object 'Edge'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static Action ACTION_EDEFAULT
          The default value of the 'Action' attribute.
protected  String index
          The cached value of the 'Index' attribute.
protected static Integer INDEX_CONSTANT_EDEFAULT
          The default value of the 'Index Constant' attribute.
protected static String INDEX_EDEFAULT
          The default value of the 'Index' attribute.
protected  Integer indexConstant
          The cached value of the 'Index Constant' attribute.
protected  Node source
          The cached value of the 'Source' reference.
protected  Node target
          The cached value of the 'Target' reference.
protected  EReference type
          The cached value of the 'Type' reference.
 
Fields inherited from class org.eclipse.emf.henshin.model.impl.ModelElementImpl
annotations
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
EdgeImpl()
           
EdgeImpl(Node source, Node target, EReference type)
           
 
Method Summary
 Node basicGetSource()
           
 Node basicGetTarget()
           
 EReference basicGetType()
           
 NotificationChain basicSetGraph(Graph newGraph, NotificationChain msgs)
           
 NotificationChain basicSetSource(Node newSource, NotificationChain msgs)
           
 NotificationChain basicSetTarget(Node newTarget, NotificationChain msgs)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 boolean eIsSetGen(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Action getAction()
           
 Edge getActionEdge()
           
 Graph getGraph()
           
 String getIndex()
           
 Integer getIndexConstant()
           
 Node getSource()
           
 Node getTarget()
           
 EReference getType()
           
 void setAction(Action action)
           
 void setGraph(Graph newGraph)
           
 void setIndex(String newIndex)
           
 void setIndexGen(String newIndex)
           
 void setSource(Node newSource)
           
 void setTarget(Node newTarget)
           
 void setType(EReference newType)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.henshin.model.impl.ModelElementImpl
getAnnotations
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.henshin.model.ModelElement
getAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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
 

Field Detail

ACTION_EDEFAULT

protected static final Action ACTION_EDEFAULT
The default value of the 'Action' attribute.

See Also:
getAction()

source

protected Node source
The cached value of the 'Source' reference.

See Also:
getSource()

target

protected Node target
The cached value of the 'Target' reference.

See Also:
getTarget()

type

protected EReference type
The cached value of the 'Type' reference.

See Also:
getType()

INDEX_EDEFAULT

protected static final String INDEX_EDEFAULT
The default value of the 'Index' attribute.

See Also:
getIndex()

index

protected String index
The cached value of the 'Index' attribute.

See Also:
getIndex()

INDEX_CONSTANT_EDEFAULT

protected static final Integer INDEX_CONSTANT_EDEFAULT
The default value of the 'Index Constant' attribute.

See Also:
getIndexConstant()

indexConstant

protected Integer indexConstant
The cached value of the 'Index Constant' attribute.

See Also:
getIndexConstant()
Constructor Detail

EdgeImpl

public EdgeImpl()


EdgeImpl

public EdgeImpl(Node source,
                Node target,
                EReference type)

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class ModelElementImpl

getAction

public Action getAction()

Specified by:
getAction in interface GraphElement
Returns:
the value of the 'Action' attribute.
See Also:
GraphElement.setAction(Action), HenshinPackage.getGraphElement_Action()

setAction

public void setAction(Action action)

Specified by:
setAction in interface GraphElement
Parameters:
action - the new value of the 'Action' attribute.
See Also:
GraphElement.getAction()

getSource

public Node getSource()

Specified by:
getSource in interface Edge
Returns:
the value of the 'Source' reference.
See Also:
Edge.setSource(Node), HenshinPackage.getEdge_Source(), Node.getOutgoing()

basicGetSource

public Node basicGetSource()


basicSetSource

public NotificationChain basicSetSource(Node newSource,
                                        NotificationChain msgs)


setSource

public void setSource(Node newSource)

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

getTarget

public Node getTarget()

Specified by:
getTarget in interface Edge
Returns:
the value of the 'Target' reference.
See Also:
Edge.setTarget(Node), HenshinPackage.getEdge_Target(), Node.getIncoming()

basicGetTarget

public Node basicGetTarget()


basicSetTarget

public NotificationChain basicSetTarget(Node newTarget,
                                        NotificationChain msgs)


setTarget

public void setTarget(Node newTarget)

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

getType

public EReference getType()

Specified by:
getType in interface Edge
Returns:
the value of the 'Type' reference.
See Also:
Edge.setType(EReference), HenshinPackage.getEdge_Type()

basicGetType

public EReference basicGetType()


setType

public void setType(EReference newType)

Specified by:
setType in interface Edge
Parameters:
newType - the new value of the 'Type' reference.
See Also:
Edge.getType()

getGraph

public Graph getGraph()

Specified by:
getGraph in interface Edge
Specified by:
getGraph in interface GraphElement
Returns:
the value of the 'Graph' container reference.
See Also:
Edge.setGraph(Graph), HenshinPackage.getEdge_Graph(), Graph.getEdges()

basicSetGraph

public NotificationChain basicSetGraph(Graph newGraph,
                                       NotificationChain msgs)


setGraph

public void setGraph(Graph newGraph)

Specified by:
setGraph in interface Edge
Parameters:
newGraph - the new value of the 'Graph' container reference.
See Also:
Edge.getGraph()

getIndex

public String getIndex()

Specified by:
getIndex in interface Edge
Returns:
the value of the 'Index' attribute.
See Also:
Edge.setIndex(String), HenshinPackage.getEdge_Index()

setIndex

public void setIndex(String newIndex)

Specified by:
setIndex in interface Edge
Parameters:
newIndex - the new value of the 'Index' attribute.
See Also:
Edge.getIndex()

setIndexGen

public void setIndexGen(String newIndex)


getIndexConstant

public Integer getIndexConstant()

Specified by:
getIndexConstant in interface Edge
Returns:
the value of the 'Index Constant' attribute.
See Also:
HenshinPackage.getEdge_IndexConstant()

getActionEdge

public Edge getActionEdge()

Specified by:
getActionEdge in interface Edge

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class ModelElementImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class ModelElementImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class ModelElementImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class ModelElementImpl

eIsSetGen

public boolean eIsSetGen(int featureID)


eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class ModelElementImpl

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    Class<?> baseClass)

Specified by:
eBaseStructuralFeatureID in interface InternalEObject
Overrides:
eBaseStructuralFeatureID in class BasicEObjectImpl

eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       Class<?> baseClass)

Specified by:
eDerivedStructuralFeatureID in interface InternalEObject
Overrides:
eDerivedStructuralFeatureID in class BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class BasicEObjectImpl