org.eclipse.emf.henshin.model
Interface Node

All Superinterfaces:
EObject, GraphElement, ModelElement, NamedElement, Notifier
All Known Implementing Classes:
NodeImpl

public interface Node
extends NamedElement, GraphElement

A representation of the model object 'Node'.

The following features are supported:

See Also:
HenshinPackage.getNode()

Method Summary
 EList<Attribute> getActionAttributes(Action action)
           
 Node getActionNode()
           
 EList<Edge> getAllEdges()
          Returns an unmodifiable list of all coinciding edges of a node.
Remark: This list is a snapshot of the current set of incoming and outgoing edges i.e.
 Attribute getAttribute(EAttribute type)
          Returns an Attribute instance according to the give attribute type.
 EList<Attribute> getAttributes()
          Returns the value of the 'Attributes' containment reference list.
 Graph getGraph()
          Returns the value of the 'Graph' container reference.
 EList<Edge> getIncoming()
          Returns the value of the 'Incoming' reference list.
 EList<Edge> getIncoming(EReference type)
          Returns an unmodifiable list which contains all incoming edges this node contains, which are of the given type.
Remark: This list is a snapshot according to the current set of incoming edges i.e.
 Edge getIncoming(EReference type, Node source)
          Returns an Edge with this node as target, the given node as source and the given type as edge type.
 EList<Edge> getOutgoing()
          Returns the value of the 'Outgoing' reference list.
 EList<Edge> getOutgoing(EReference type)
          Returns an unmodifiable list which contains all outgoing edges this node contains, which are of the given type.
Remark: This list is a snapshot according to the current set of outgoing edges i.e.
 Edge getOutgoing(EReference type, Node target)
          Returns an Edge with this node as source, the given node as target and the given type as edge type.
 EClass getType()
          Returns the value of the 'Type' reference.
 void setGraph(Graph value)
          Sets the value of the 'Graph' container reference.
 void setType(EClass value)
          Sets the value of the 'Type' reference.
 
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.henshin.model.GraphElement
getAction, setAction
 

Method Detail

getType

EClass getType()
Returns the value of the 'Type' reference.

Returns:
the value of the 'Type' reference.
See Also:
setType(EClass), HenshinPackage.getNode_Type()

setType

void setType(EClass value)
Sets the value of the 'Type' reference.

Parameters:
value - the new value of the 'Type' reference.
See Also:
getType()

getAttributes

EList<Attribute> getAttributes()
Returns the value of the 'Attributes' containment reference list. The list contents are of type Attribute. It is bidirectional and its opposite is 'Node'.

Returns:
the value of the 'Attributes' containment reference list.
See Also:
HenshinPackage.getNode_Attributes(), Attribute.getNode()

getGraph

Graph getGraph()
Returns the value of the 'Graph' container reference. It is bidirectional and its opposite is 'Nodes'.

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

setGraph

void setGraph(Graph value)
Sets the value of the 'Graph' container reference.

Parameters:
value - the new value of the 'Graph' container reference.
See Also:
getGraph()

getIncoming

EList<Edge> getIncoming()
Returns the value of the 'Incoming' reference list. The list contents are of type Edge. It is bidirectional and its opposite is 'Target'.

Returns:
the value of the 'Incoming' reference list.
See Also:
HenshinPackage.getNode_Incoming(), Edge.getTarget()

getOutgoing

EList<Edge> getOutgoing()
Returns the value of the 'Outgoing' reference list. The list contents are of type Edge. It is bidirectional and its opposite is 'Source'.

Returns:
the value of the 'Outgoing' reference list.
See Also:
HenshinPackage.getNode_Outgoing(), Edge.getSource()

getAllEdges

EList<Edge> getAllEdges()
Returns an unmodifiable list of all coinciding edges of a node.
Remark: This list is a snapshot of the current set of incoming and outgoing edges i.e. it is not synchronized with subsequent changes of the sets of incoming and outgoing edges. After such changes this method has to be called again to retrieve an updated list of edges.


getOutgoing

EList<Edge> getOutgoing(EReference type)
Returns an unmodifiable list which contains all outgoing edges this node contains, which are of the given type.
Remark: This list is a snapshot according to the current set of outgoing edges i.e. it is not synchronized with subsequent changes of that set. After such changes this method has to be called again to retrieve an updated list of edges.


getIncoming

EList<Edge> getIncoming(EReference type)
Returns an unmodifiable list which contains all incoming edges this node contains, which are of the given type.
Remark: This list is a snapshot according to the current set of incoming edges i.e. it is not synchronized with subsequent changes of that set. After such changes this method has to be called again to retrieve an updated list of edges.


getOutgoing

Edge getOutgoing(EReference type,
                 Node target)
Returns an Edge with this node as source, the given node as target and the given type as edge type. If no such instance can be found, null is returned


getIncoming

Edge getIncoming(EReference type,
                 Node source)
Returns an Edge with this node as target, the given node as source and the given type as edge type. If no such instance can be found, null is returned


getAttribute

Attribute getAttribute(EAttribute type)
Returns an Attribute instance according to the give attribute type. If no such instance can be found, null is returned


getActionAttributes

EList<Attribute> getActionAttributes(Action action)


getActionNode

Node getActionNode()