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

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.NamedElementImpl
                      extended by org.eclipse.emf.henshin.model.impl.NodeImpl
All Implemented Interfaces:
Notifier, EObject, InternalEObject, GraphElement, ModelElement, NamedElement, Node

public class NodeImpl
extends NamedElementImpl
implements Node

An implementation of the model object 'Node'.

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  EList<Attribute> attributes
          The cached value of the 'Attributes' containment reference list.
protected  EList<Edge> incoming
          The cached value of the 'Incoming' reference list.
protected  EList<Edge> outgoing
          The cached value of the 'Outgoing' reference list.
protected  EClass type
          The cached value of the 'Type' reference.
 
Fields inherited from class org.eclipse.emf.henshin.model.impl.NamedElementImpl
description, DESCRIPTION_EDEFAULT, name, NAME_EDEFAULT
 
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
NodeImpl()
           
NodeImpl(String name, EClass type)
           
 
Method Summary
 EClass basicGetType()
           
 NotificationChain basicSetGraph(Graph newGraph, 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()
           
 EList<Attribute> getActionAttributes(Action action)
           
 Node getActionNode()
           
 EList<Edge> getAllEdges()
           
 Attribute getAttribute(EAttribute attributeType)
           
 EList<Attribute> getAttributes()
           
 Graph getGraph()
           
 EList<Edge> getIncoming()
           
 EList<Edge> getIncoming(EReference edgeType)
           
 Edge getIncoming(EReference type, Node source)
           
 EList<Edge> getOutgoing()
           
 EList<Edge> getOutgoing(EReference edgeType)
           
 Edge getOutgoing(EReference type, Node target)
           
 EClass getType()
           
 void setAction(Action action)
           
 void setGraph(Graph newGraph)
           
 void setType(EClass newType)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.henshin.model.impl.NamedElementImpl
getDescription, getName, setDescription, setName
 
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.NamedElement
getDescription, getName, setDescription, setName
 
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()

type

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

See Also:
getType()

attributes

protected EList<Attribute> attributes
The cached value of the 'Attributes' containment reference list.

See Also:
getAttributes()

incoming

protected EList<Edge> incoming
The cached value of the 'Incoming' reference list.

See Also:
getIncoming()

outgoing

protected EList<Edge> outgoing
The cached value of the 'Outgoing' reference list.

See Also:
getOutgoing()
Constructor Detail

NodeImpl

public NodeImpl()


NodeImpl

public NodeImpl(String name,
                EClass type)

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class NamedElementImpl

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()

getType

public EClass getType()

Specified by:
getType in interface Node
Returns:
the value of the 'Type' reference.
See Also:
Node.setType(EClass), HenshinPackage.getNode_Type()

basicGetType

public EClass basicGetType()


setType

public void setType(EClass newType)

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

getAttributes

public EList<Attribute> getAttributes()

Specified by:
getAttributes in interface Node
Returns:
the value of the 'Attributes' containment reference list.
See Also:
HenshinPackage.getNode_Attributes(), Attribute.getNode()

getGraph

public Graph getGraph()

Specified by:
getGraph in interface GraphElement
Specified by:
getGraph in interface Node
Returns:
the value of the 'Graph' container reference.
See Also:
Node.setGraph(Graph), HenshinPackage.getNode_Graph(), Graph.getNodes()

basicSetGraph

public NotificationChain basicSetGraph(Graph newGraph,
                                       NotificationChain msgs)


setGraph

public void setGraph(Graph newGraph)

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

getIncoming

public EList<Edge> getIncoming()

Specified by:
getIncoming in interface Node
Returns:
the value of the 'Incoming' reference list.
See Also:
HenshinPackage.getNode_Incoming(), Edge.getTarget()

getOutgoing

public EList<Edge> getOutgoing()

Specified by:
getOutgoing in interface Node
Returns:
the value of the 'Outgoing' reference list.
See Also:
HenshinPackage.getNode_Outgoing(), Edge.getSource()

getAllEdges

public EList<Edge> getAllEdges()

Specified by:
getAllEdges in interface Node

getOutgoing

public EList<Edge> getOutgoing(EReference edgeType)

Specified by:
getOutgoing in interface Node

getIncoming

public EList<Edge> getIncoming(EReference edgeType)

Specified by:
getIncoming in interface Node

getAttribute

public Attribute getAttribute(EAttribute attributeType)

Specified by:
getAttribute in interface Node

getActionAttributes

public EList<Attribute> getActionAttributes(Action action)

Specified by:
getActionAttributes in interface Node

getActionNode

public Node getActionNode()

Specified by:
getActionNode in interface Node

getOutgoing

public Edge getOutgoing(EReference type,
                        Node target)

Specified by:
getOutgoing in interface Node

getIncoming

public Edge getIncoming(EReference type,
                        Node source)

Specified by:
getIncoming in interface Node

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 NamedElementImpl

eSet

public void eSet(int featureID,
                 Object newValue)

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

eUnset

public void eUnset(int featureID)

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

eIsSetGen

public boolean eIsSetGen(int featureID)


eIsSet

public boolean eIsSet(int featureID)

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

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()
Description copied from class: NamedElementImpl

Overrides:
toString in class NamedElementImpl