Package com.sodius.mdw.metamodel.uml21
Interface GraphElement
-
- All Superinterfaces:
Comparable<Object>,DiagramElement,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier
public interface GraphElement extends DiagramElement
A representation of the model object 'Graph Element'.The following features are supported:
- See Also:
com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiagramElementcreateContained(org.eclipse.emf.ecore.EClass eClass)Creates a newDiagram ElementtypedeClass.GraphConnectorcreateContainedConnector(GraphEdge graphEdge)Creates a connection, aGraph Connectorto the specifiedGraph Edge.GraphEdgecreateContainedEdge(Element element)Creates a newGraph Edge.<E extends GraphElement>
EcreateContainedGraphElement(Element element, org.eclipse.emf.ecore.EClass eClass)Creates a newGraph ElementtypedeClass.GraphNodecreateContainedNode(Element element)Creates a newGraph Nodecontained by the currentGraph Element.GraphNodecreateContainedTextElement(String text)Creates a newGraph Nodecontained by the currentGraph Element.GraphNodecreateSimpleContainedNode(String typeInfo)Creates a newGraph Nodecontained by the currentGraph Element.MDWList<GraphEdge>getAllContainedEdges()Returns the list ofGraph Edgesrecursively contained by the currentGraph Element.MDWList<GraphEdge>getAllContainedEdges(Element element)Returns the list ofGraph Edgescontained by the currentGraph Element.MDWList<GraphEdge>getAllContainedEdges(org.eclipse.emf.ecore.EClass eClass)Returns the list ofGraph Edgesrecursively contained by the currentGraph Element.MDWList<GraphNode>getAllContainedNodes()Returns the list ofGraph Nodesrecursively contained by the currentGraph Element.MDWList<GraphNode>getAllContainedNodes(Element element)Returns the list ofGraph Nodesrecursively contained by the currentGraph Element.MDWList<GraphNode>getAllContainedNodes(String typeInfo)Returns the list ofGraph Nodesrecursively contained by the currentGraph Element.MDWList<GraphNode>getAllContainedNodes(org.eclipse.emf.ecore.EClass eClass)Returns the list ofGraph Nodesrecursively contained by the currentGraph Element.MDWEList<GraphConnector>getAnchorage()Returns the value of the 'Anchorage' containment reference list.MDWEList<DiagramElement>getContained()Returns the value of the 'Contained' containment reference list.MDWList<GraphEdge>getContainedEdges()Returns the list ofGraph Edgescontained by the currentGraph Element.MDWList<GraphEdge>getContainedEdges(Element element)Returns the list ofGraph Edgescontained by the currentGraph Element.MDWList<GraphEdge>getContainedEdges(org.eclipse.emf.ecore.EClass eClass)Returns the list ofGraph Edgescontained by the currentGraph Element.MDWList<GraphNode>getContainedNodes()Returns the list ofGraph Nodescontained by the currentGraph Element.MDWList<GraphNode>getContainedNodes(Element element)Returns the list ofGraph Nodescontained by the currentGraph Element.MDWList<GraphNode>getContainedNodes(String typeInfo)Returns the list ofGraph Nodescontained by the currentGraph Element.MDWList<GraphNode>getContainedNodes(org.eclipse.emf.ecore.EClass eClass)Returns the list ofGraph Nodescontained by the currentGraph Element.MDWEList<DiagramLink>getLink()Returns the value of the 'Link' containment reference list.PointgetPosition()Returns the value of the 'Position' containment reference.ElementgetSemanticElement()Returns the semanticElementrepresented by the currentGraph Element.SemanticModelBridgegetSemanticModel()Returns the value of the 'Semantic Model' containment reference.StringgetSemanticTypeInfo()Returns thetype infovalue of the currentGraph Element.voidsetPosition(double x, double y)Creates a newPointwith abscissaxand ordinatey, and set thepositionof the currentGraph Element.voidsetPosition(Point value)Sets the value of the 'Position' containment reference.voidsetSemanticElement(Element element)Sets the semantic specifiedElementto the currentGraph Element.voidsetSemanticModel(SemanticModelBridge value)Sets the value of the 'Semantic Model' containment reference.voidsetSemanticTypeInfo(String typeInfo)Sets the specifiedtype infoattribute to the 'typeInfo' value.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DiagramElement
getContainer, getDiagram, getProperty, getProperty, getProperty, getProperty, getReference, isSetIsVisible, isVisible, removeProperty, setContainer, setIsVisible, setProperty, setProperty, unsetIsVisible
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
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 com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
-
-
-
Method Detail
-
getPosition
Point getPosition()
Returns the value of the 'Position' containment reference.- Returns:
- the value of the 'Position' containment reference.
- See Also:
setPosition(Point),com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement_Position()
-
setPosition
void setPosition(Point value)
Sets the value of the 'Position' containment reference.- Parameters:
value- the new value of the 'Position' containment reference.- See Also:
getPosition()
-
getAnchorage
MDWEList<GraphConnector> getAnchorage()
Returns the value of the 'Anchorage' containment reference list. The list contents are of typeGraphConnector. It is bidirectional and its opposite is 'Graph Element'.- Returns:
- the value of the 'Anchorage' containment reference list.
- See Also:
com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement_Anchorage(),GraphConnector.getGraphElement()
-
getContained
MDWEList<DiagramElement> getContained()
Returns the value of the 'Contained' containment reference list. The list contents are of typeDiagramElement. It is bidirectional and its opposite is 'Container'.- Returns:
- the value of the 'Contained' containment reference list.
- See Also:
com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement_Contained(),DiagramElement.getContainer()
-
getSemanticModel
SemanticModelBridge getSemanticModel()
Returns the value of the 'Semantic Model' containment reference. The default value is"". It is bidirectional and its opposite is 'Graph Element'.- Returns:
- the value of the 'Semantic Model' containment reference.
- See Also:
setSemanticModel(SemanticModelBridge),com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement_SemanticModel(),SemanticModelBridge.getGraphElement()
-
setSemanticModel
void setSemanticModel(SemanticModelBridge value)
Sets the value of the 'Semantic Model' containment reference.- Parameters:
value- the new value of the 'Semantic Model' containment reference.- See Also:
getSemanticModel()
-
getLink
MDWEList<DiagramLink> getLink()
Returns the value of the 'Link' containment reference list. The list contents are of typeDiagramLink. It is bidirectional and its opposite is 'Graph Element'.- Returns:
- the value of the 'Link' containment reference list.
- See Also:
com.sodius.mdw.metamodel.uml21.Uml21Package#getGraphElement_Link(),DiagramLink.getGraphElement()
-
setPosition
void setPosition(double x, double y)Creates a newPointwith abscissaxand ordinatey, and set thepositionof the currentGraph Element.- Parameters:
x- the abscissay- the ordinate- Since:
- 3.3.0
- See Also:
Point.getX(),Point.getY(),getPosition()
-
createContained
DiagramElement createContained(org.eclipse.emf.ecore.EClass eClass)
Creates a newDiagram ElementtypedeClass. TheDiagram Elementcreated is contained by the currentGraph Element.- Parameters:
eClass- the type of the DiagramElement created- Returns:
- the DiagramElement created
- Since:
- 3.3.0
- See Also:
createContainedGraphElement(Element, EClass)
-
createContainedGraphElement
<E extends GraphElement> E createContainedGraphElement(Element element, org.eclipse.emf.ecore.EClass eClass)
Creates a newGraph ElementtypedeClass. TheGraph Elementcreated is linked to aCore Semantic Model Bridgehaving a relationelementto the semanticelement. TheGraph Elementcreated is contained by the currentGraph Element.- Parameters:
element- the semantic Element represented by the GraphElementeClass- the type of the GraphElement created- Returns:
- the GraphElement created
- Since:
- 3.3.0
- See Also:
createContained(EClass)
-
createContainedNode
GraphNode createContainedNode(Element element)
Creates a newGraph Nodecontained by the currentGraph Element. TheGraph Nodecreated is linked to aCore Semantic Model Bridge, having a relationelementto the specified semanticelement.- Parameters:
element- the semantic Element represented by the GraphNode- Returns:
- the GraphNode created
- Since:
- 3.3.0
- See Also:
createContained(EClass)
-
createSimpleContainedNode
GraphNode createSimpleContainedNode(String typeInfo)
Creates a newGraph Nodecontained by the currentGraph Element. TheGraph Nodeis linked to aSimple Semantic Model Elementhaving the attributetype infoset to the specified 'typeInfo' value. This method is typically used to create Notes in a Diagram.- Parameters:
typeInfo- the type info of the GraphNode.- Returns:
- the GraphNode created
- Since:
- 3.3.0
-
createContainedTextElement
GraphNode createContainedTextElement(String text)
Creates a newGraph Nodecontained by the currentGraph Element. TheGraph Elementcreated contains aText Element, which attributetextis set to the specified 'text' value.- Parameters:
text- the text of the TextElement.- Returns:
- the GraphNode created
- Since:
- 3.3.0
-
createContainedEdge
GraphEdge createContainedEdge(Element element)
Creates a newGraph Edge. TheGraph Edgecreated is linked to aCore Semantic Model Bridge, having a relationelementto the specified semanticelement. TheGraph Edgecreated is contained by the currentGraph Element.- Parameters:
element- the semantic Element represented by the GraphEdge- Returns:
- the GraphEdge created
- Since:
- 3.3.0
- See Also:
createContained(EClass)
-
getSemanticElement
Element getSemanticElement()
Returns the semanticElementrepresented by the currentGraph Element. TheElementis linked to theGraph Elementthrough aCore Semantic Model Bridge- Returns:
- the semantic UML Element
- Since:
- 3.3.0
- See Also:
com.sodius.mdw.metamodel.uml21.CoreSemanticModelBridge#getSemanticElement
-
getSemanticTypeInfo
String getSemanticTypeInfo()
Returns thetype infovalue of the currentGraph Element. The currentGraph Elementis linked to aSimple Semantic Model Element.- Returns:
- the semantic type info
- Since:
- 3.3.0
- See Also:
SimpleSemanticModelElement.getTypeInfo()
-
setSemanticElement
void setSemanticElement(Element element)
Sets the semantic specifiedElementto the currentGraph Element. The specifiedElementis linked to theGraph Elementthrough aCore Semantic Model Bridge- Parameters:
element- the semantic UML Element- Since:
- 3.3.0
- See Also:
CoreSemanticModelBridge.setElement(Element)
-
setSemanticTypeInfo
void setSemanticTypeInfo(String typeInfo)
Sets the specifiedtype infoattribute to the 'typeInfo' value. The currentGraph Elementis linked to aSimple Semantic Model Element.- Parameters:
typeInfo- the semantic type info- Since:
- 3.3.0
- See Also:
com.sodius.mdw.metamodel.uml21.SimpleSemanticModelElement#setTypeInfo()
-
getContainedNodes
MDWList<GraphNode> getContainedNodes()
Returns the list ofGraph Nodescontained by the currentGraph Element.- Returns:
- MDWList of GraphNodes
- Since:
- 3.3.0
- See Also:
getContainedNodes(Element),getContainedNodes(EClass),getContainedNodes(String),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(Element),getAllContainedNodes(String)
-
getContainedEdges
MDWList<GraphEdge> getContainedEdges()
Returns the list ofGraph Edgescontained by the currentGraph Element.- Returns:
- MDWList of GraphEdges
- Since:
- 3.3.0
- See Also:
getAllContainedEdges(),getAllContainedEdges(EClass),getAllContainedEdges(Element)
-
getContainedNodes
MDWList<GraphNode> getContainedNodes(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Nodescontained by the currentGraph Element. The semanticElementrepresented by theGraph Nodeis typed by the specifiedeClass.- Parameters:
eClass- the type of the semantic Element- Returns:
- MDWList of GraphNodes
- Since:
- 3.3.0
- See Also:
getContainedNodes(EClass),getContainedNodes(Element),getContainedNodes(String),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(Element),getAllContainedNodes(String)
-
getContainedEdges
MDWList<GraphEdge> getContainedEdges(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Edgescontained by the currentGraph Element. The semanticElementrepresented by theGraph Edgeis typed by the specifiedeClass.- Parameters:
eClass- the type of the semantic Element- Returns:
- MDWList of GraphEdges
- Since:
- 3.3.0
- See Also:
getContainedEdges(),getContainedEdges(Element),getAllContainedEdges(),getAllContainedEdges(EClass),getAllContainedEdges(Element)
-
getAllContainedNodes
MDWList<GraphNode> getAllContainedNodes()
Returns the list ofGraph Nodesrecursively contained by the currentGraph Element.- Returns:
- MDWList of GraphNodes
- Since:
- 3.3.0
- See Also:
getContainedNodes(),getContainedNodes(Element),getContainedNodes(String),getAllContainedNodes(EClass),getAllContainedNodes(Element),getAllContainedNodes(String)
-
getAllContainedEdges
MDWList<GraphEdge> getAllContainedEdges()
Returns the list ofGraph Edgesrecursively contained by the currentGraph Element.- Returns:
- MDWList of GraphEdges
- Since:
- 3.3.0
- See Also:
getContainedEdges(),getContainedEdges(Element),getContainedEdges(EClass),getAllContainedEdges(EClass),getAllContainedEdges(Element)
-
getAllContainedNodes
MDWList<GraphNode> getAllContainedNodes(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Nodesrecursively contained by the currentGraph Element. The semanticElementrepresented by theGraph Nodeis typed by the specifiedeClass.- Returns:
- MDWList of GraphNodes
- Since:
- 3.3.0
- See Also:
getContainedNodes(),getContainedNodes(Element),getContainedNodes(String),getAllContainedNodes(),getAllContainedNodes(Element),getAllContainedNodes(String)
-
getAllContainedEdges
MDWList<GraphEdge> getAllContainedEdges(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Edgesrecursively contained by the currentGraph Element. The semanticElementrepresented by theGraph Edgeis typed by the specifiedeClass.- Returns:
- MDWList of GraphEdges
- Since:
- 3.3.0
- See Also:
getContainedEdges(),getContainedEdges(Element),getContainedEdges(EClass),getAllContainedEdges(),getAllContainedEdges(Element)
-
createContainedConnector
GraphConnector createContainedConnector(GraphEdge graphEdge)
Creates a connection, aGraph Connectorto the specifiedGraph Edge. TheGraph Connectoris contained by the currentGraph Element.- Parameters:
the- GraphEdge having the connection to another GraphElement.- Returns:
- a GraphConnector
- Since:
- 3.5.0
- See Also:
getAnchorage(),GraphConnector.getGraphEdge()
-
getContainedNodes
MDWList<GraphNode> getContainedNodes(Element element)
Returns the list ofGraph Nodescontained by the currentGraph Element. TheGraph Nodesare linked to the specifiedelementthrough aCore Semantic Model Bridge- Parameters:
element- the semantic Element represented by the GraphNodes- Returns:
- MDWList of GraphNodes
- Since:
- 3.5.0
- See Also:
getContainedNodes(),getContainedNodes(EClass),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(Element),getAllContainedNodes(String)
-
getAllContainedNodes
MDWList<GraphNode> getAllContainedNodes(Element element)
Returns the list ofGraph Nodesrecursively contained by the currentGraph Element. TheGraph Nodesare linked to the specifiedelementthrough aCore Semantic Model Bridge- Parameters:
element- the semantic Element represented by the GraphNodes- Returns:
- MDWList of GraphNodes
- Since:
- 3.5.0
- See Also:
getContainedNodes(),getContainedNodes(EClass),getContainedNodes(Element),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(String),CoreSemanticModelBridge.getElement()
-
getContainedNodes
MDWList<GraphNode> getContainedNodes(String typeInfo)
Returns the list ofGraph Nodescontained by the currentGraph Element. TheGraph Nodesare linked to aSimple Semantic Model Element, having atype infoattribute set to the specified 'typeInfo'.- Parameters:
typeInfo- the type info of the SimpleSemanticModelElement linked to the GraphNode- Returns:
- MDWList of GraphNodes
- Since:
- 3.5.0
- See Also:
getContainedNodes(),getContainedNodes(EClass),getContainedNodes(Element),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(Element),getAllContainedNodes(String),SimpleSemanticModelElement.getTypeInfo()
-
getAllContainedNodes
MDWList<GraphNode> getAllContainedNodes(String typeInfo)
Returns the list ofGraph Nodesrecursively contained by the currentGraph Element. TheGraph Nodesare linked to aSimple Semantic Model Element, having atype infoattribute set to the specified 'typeInfo'.- Parameters:
typeInfo- the type info of the SimpleSemanticModelElement linked to the GraphNode- Returns:
- MDWList of GraphNodes
- Since:
- 3.5.0
- See Also:
getContainedNodes(),getContainedNodes(EClass),getContainedNodes(Element),getContainedNodes(String),getAllContainedNodes(),getAllContainedNodes(EClass),getAllContainedNodes(Element),SimpleSemanticModelElement.getTypeInfo()
-
getContainedEdges
MDWList<GraphEdge> getContainedEdges(Element element)
Returns the list ofGraph Edgescontained by the currentGraph Element. TheGraph Edgesare linked to the specifiedelementthrough aCore Semantic Model Bridge- Parameters:
element- the semantic Element represented by the GraphEdges- Returns:
- MDWList of GraphEdges
- Since:
- 3.5.0
- See Also:
getContainedEdges(),getContainedEdges(EClass),getAllContainedEdges(),getAllContainedEdges(EClass),getAllContainedEdges(Element),CoreSemanticModelBridge.getElement()
-
getAllContainedEdges
MDWList<GraphEdge> getAllContainedEdges(Element element)
Returns the list ofGraph Edgescontained by the currentGraph Element. TheGraph Edgesare linked to the specifiedelementthrough aCore Semantic Model Bridge- Parameters:
element- the semantic Element represented by the GraphEdges- Returns:
- MDWList of GraphEdges
- Since:
- 3.5.0
- See Also:
getContainedEdges(),getContainedEdges(EClass),getContainedEdges(Element),getAllContainedEdges(),getAllContainedEdges(EClass),CoreSemanticModelBridge.getElement()
-
-