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 DiagramElement
createContained(org.eclipse.emf.ecore.EClass eClass)
Creates a newDiagram Element
typedeClass
.GraphConnector
createContainedConnector(GraphEdge graphEdge)
Creates a connection, aGraph Connector
to the specifiedGraph Edge
.GraphEdge
createContainedEdge(Element element)
Creates a newGraph Edge
.<E extends GraphElement>
EcreateContainedGraphElement(Element element, org.eclipse.emf.ecore.EClass eClass)
Creates a newGraph Element
typedeClass
.GraphNode
createContainedNode(Element element)
Creates a newGraph Node
contained by the currentGraph Element
.GraphNode
createContainedTextElement(String text)
Creates a newGraph Node
contained by the currentGraph Element
.GraphNode
createSimpleContainedNode(String typeInfo)
Creates a newGraph Node
contained by the currentGraph Element
.MDWList<GraphEdge>
getAllContainedEdges()
Returns the list ofGraph Edges
recursively contained by the currentGraph Element
.MDWList<GraphEdge>
getAllContainedEdges(Element element)
Returns the list ofGraph Edges
contained by the currentGraph Element
.MDWList<GraphEdge>
getAllContainedEdges(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Edges
recursively contained by the currentGraph Element
.MDWList<GraphNode>
getAllContainedNodes()
Returns the list ofGraph Nodes
recursively contained by the currentGraph Element
.MDWList<GraphNode>
getAllContainedNodes(Element element)
Returns the list ofGraph Nodes
recursively contained by the currentGraph Element
.MDWList<GraphNode>
getAllContainedNodes(String typeInfo)
Returns the list ofGraph Nodes
recursively contained by the currentGraph Element
.MDWList<GraphNode>
getAllContainedNodes(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Nodes
recursively 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 Edges
contained by the currentGraph Element
.MDWList<GraphEdge>
getContainedEdges(Element element)
Returns the list ofGraph Edges
contained by the currentGraph Element
.MDWList<GraphEdge>
getContainedEdges(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Edges
contained by the currentGraph Element
.MDWList<GraphNode>
getContainedNodes()
Returns the list ofGraph Nodes
contained by the currentGraph Element
.MDWList<GraphNode>
getContainedNodes(Element element)
Returns the list ofGraph Nodes
contained by the currentGraph Element
.MDWList<GraphNode>
getContainedNodes(String typeInfo)
Returns the list ofGraph Nodes
contained by the currentGraph Element
.MDWList<GraphNode>
getContainedNodes(org.eclipse.emf.ecore.EClass eClass)
Returns the list ofGraph Nodes
contained by the currentGraph Element
.MDWEList<DiagramLink>
getLink()
Returns the value of the 'Link' containment reference list.Point
getPosition()
Returns the value of the 'Position' containment reference.Element
getSemanticElement()
Returns the semanticElement
represented by the currentGraph Element
.SemanticModelBridge
getSemanticModel()
Returns the value of the 'Semantic Model' containment reference.String
getSemanticTypeInfo()
Returns thetype info
value of the currentGraph Element
.void
setPosition(double x, double y)
Creates a newPoint
with abscissax
and ordinatey
, and set theposition
of the currentGraph Element
.void
setPosition(Point value)
Sets the value of the 'Position
' containment reference.void
setSemanticElement(Element element)
Sets the semantic specifiedElement
to the currentGraph Element
.void
setSemanticModel(SemanticModelBridge value)
Sets the value of the 'Semantic Model
' containment reference.void
setSemanticTypeInfo(String typeInfo)
Sets the specifiedtype info
attribute 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 newPoint
with abscissax
and ordinatey
, and set theposition
of 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 Element
typedeClass
. TheDiagram Element
created 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 Element
typedeClass
. TheGraph Element
created is linked to aCore Semantic Model Bridge
having a relationelement
to the semanticelement
. TheGraph Element
created 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 Node
contained by the currentGraph Element
. TheGraph Node
created is linked to aCore Semantic Model Bridge
, having a relationelement
to 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 Node
contained by the currentGraph Element
. TheGraph Node
is linked to aSimple Semantic Model Element
having the attributetype info
set 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 Node
contained by the currentGraph Element
. TheGraph Element
created contains aText Element
, which attributetext
is 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 Edge
created is linked to aCore Semantic Model Bridge
, having a relationelement
to the specified semanticelement
. TheGraph Edge
created 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 semanticElement
represented by the currentGraph Element
. TheElement
is linked to theGraph Element
through 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 info
value of the currentGraph Element
. The currentGraph Element
is 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 specifiedElement
to the currentGraph Element
. The specifiedElement
is linked to theGraph Element
through 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 info
attribute to the 'typeInfo' value. The currentGraph Element
is 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 Nodes
contained 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 Edges
contained 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 Nodes
contained by the currentGraph Element
. The semanticElement
represented by theGraph Node
is 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 Edges
contained by the currentGraph Element
. The semanticElement
represented by theGraph Edge
is 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 Nodes
recursively 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 Edges
recursively 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 Nodes
recursively contained by the currentGraph Element
. The semanticElement
represented by theGraph Node
is 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 Edges
recursively contained by the currentGraph Element
. The semanticElement
represented by theGraph Edge
is 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 Connector
to the specifiedGraph Edge
. TheGraph Connector
is 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 Nodes
contained by the currentGraph Element
. TheGraph Nodes
are linked to the specifiedelement
through 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 Nodes
recursively contained by the currentGraph Element
. TheGraph Nodes
are linked to the specifiedelement
through 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 Nodes
contained by the currentGraph Element
. TheGraph Nodes
are linked to aSimple Semantic Model Element
, having atype info
attribute 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 Nodes
recursively contained by the currentGraph Element
. TheGraph Nodes
are linked to aSimple Semantic Model Element
, having atype info
attribute 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 Edges
contained by the currentGraph Element
. TheGraph Edges
are linked to the specifiedelement
through 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 Edges
contained by the currentGraph Element
. TheGraph Edges
are linked to the specifiedelement
through 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()
-
-