Package de.cau.cs.kieler.klighd.kgraph
Interface KGraphElement
- All Superinterfaces:
EMapPropertyHolder,org.eclipse.emf.ecore.EObject,org.eclipse.elk.graph.properties.IPropertyHolder,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
KEdge,KLabel,KLabeledGraphElement,KNode,KPort
- All Known Implementing Classes:
KEdgeImpl,KGraphElementImpl,KLabeledGraphElementImpl,KLabelImpl,KNodeImpl,KPortImpl
A representation of the model object '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:
- EMF generated code
- EMF model element
- abstract="true"
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.util.EList<KGraphData>getData()Returns the value of the 'Data' containment reference list.<T extends KGraphData>
TReturns the first data instance that matches the given class.getData(org.eclipse.emf.ecore.EClass type) Returns the first data instance that matches the given class.Methods inherited from interface de.cau.cs.kieler.klighd.kgraph.EMapPropertyHolder
getPersistentEntries, getProperties, makePersistentMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.elk.graph.properties.IPropertyHolder
copyProperties, getAllProperties, getProperty, hasProperty, setPropertyMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getData
org.eclipse.emf.common.util.EList<KGraphData> getData()Returns the value of the 'Data' containment reference list. The list contents are of typeKGraphData. Each element of this list may contain additional data for the model element.- Returns:
- the value of the 'Data' containment reference list.
- See Also:
- EMF generated code
- EMF model element
- containment="true"
-
getData
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
nullif there is none - EMF generated code
- EMF model element
-
getData
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
nullif there is none - EMF generated code
- EMF model element
-