de.cau.cs.kieler.core.kgraph
Interface KGraphElement

All Superinterfaces:
EObject, Notifier
All Known Subinterfaces:
Edge, KEdge, KLabel, KLabeledGraphElement, KNode, KPort, Node, Port
All Known Implementing Classes:
EdgeImpl, KEdgeImpl, KGraphElementImpl, KLabeledGraphElementImpl, KLabelImpl, KNodeImpl, KPortImpl, NodeImpl, PortImpl

public interface KGraphElement
extends EObject

A representation of the model object 'Graph Element'. This is the superclass of all elements of a graph such as nodes, edges, ports, and labels. A graph element may contain an arbitrary number of additional data instances.

The following features are supported:

See Also:
KGraphPackage.getKGraphElement()
Rating yellow
(2011-02-01) reviewed by cmot, soh
Generated:
This code was automatically generated.
Model element:
abstract=true

Method Summary
 EList<KGraphData> getData()
          Returns the value of the 'Data' containment reference list.
<T extends KGraphData>
T
getData(Class<T> type)
          Returns the first data instance that matches the given class.
 KGraphData getData(EClass type)
          Returns the first data instance that matches the given class.
 
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
 

Method Detail

getData

EList<KGraphData> getData()
Returns the value of the 'Data' containment reference list. The list contents are of type KGraphData. Each element of this list may contain additional data for the model element.

Returns:
the value of the 'Data' containment reference list.
See Also:
KGraphPackage.getKGraphElement_Data()
Generated:
This code was automatically generated.
Model element:
containment=true

getData

KGraphData getData(EClass type)
Returns the first data instance that matches the given class. Classes can be obtained using the static package methods of the corresponding EMF model.

Returns:
graph data for the given type, or null if there is none
Generated:
This code was automatically generated.
Model element

getData

<T extends KGraphData> T getData(Class<T> type)
Returns the first data instance that matches the given class.

Parameters:
type - the class of graph data to retrieve
Returns:
graph data for the given type, or null if there is none
Generated:
This code was automatically generated.
Model element