Package com.sodius.mdw.metamodel.uml21
Interface DiagramElement
-
- All Superinterfaces:
Comparable<Object>,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
Diagram,DiagramImage,Ellipse,GraphEdge,GraphElement,GraphicPrimitive,GraphNode,LeafElement,Polyline,Reference,TextElement
public interface DiagramElement extends MDWEObject
A representation of the model object 'Diagram Element'.The following features are supported:
- See Also:
UMLPackage.getDiagramElement()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphElementgetContainer()Returns the value of the 'Container' container reference.DiagramgetDiagram()Returns the owningDiagramof the currentDiagram Element.MDWEList<DiagramProperty>getProperty()Returns the value of the 'Property' containment reference list.StringgetProperty(String key)Returns theDiagram PropertyString value corresponding to the specified property key for the currentDiagram Element.booleangetProperty(String key, boolean defaultValue)Returns theDiagram Propertyboolean value corresponding to the specified property key for the currentDiagram Element.StringgetProperty(String key, String defaultValue)Returns theDiagram PropertyString value corresponding to the specified property key for the currentDiagram Element.MDWEList<Reference>getReference()Returns the value of the 'Reference' reference list.booleanisSetIsVisible()Returns whether the value of the 'Is Visible' attribute is set.booleanisVisible()Returns the value of the 'Is Visible' attribute.DiagramPropertyremoveProperty(String key)Removes theDiagram Propertyhaving the key 'key' from the list of properties of the currentDiagram Element.voidsetContainer(GraphElement value)Sets the value of the 'Container' container reference.voidsetIsVisible(boolean value)Sets the value of the 'Is Visible' attribute.voidsetProperty(String key, boolean value)Set the value with the specified boolean 'value' to theDiagram Propertyhaving a key set to the specified 'key'.
If noDiagram Propertyexists with the key, a newDiagram Propertyis created.voidsetProperty(String key, String value)Set the value with the specified String 'value' to theDiagram Propertyhaving a key set to the specified 'key'.
If noDiagram Propertyexists with the key, a newDiagram Propertyis created.voidunsetIsVisible()Unsets the value of the 'Is Visible' attribute.-
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
-
getProperty
MDWEList<DiagramProperty> getProperty()
Returns the value of the 'Property' containment reference list. The list contents are of typeDiagramProperty.- Returns:
- the value of the 'Property' containment reference list.
- See Also:
UMLPackage.getDiagramElement_Property()
-
getReference
MDWEList<Reference> getReference()
Returns the value of the 'Reference' reference list. The list contents are of typeReference. It is bidirectional and its opposite is 'Referenced'.- Returns:
- the value of the 'Reference' reference list.
- See Also:
UMLPackage.getDiagramElement_Reference(),Reference.getReferenced()
-
isVisible
boolean isVisible()
Returns the value of the 'Is Visible' attribute.- Returns:
- the value of the 'Is Visible' attribute.
- See Also:
isSetIsVisible(),unsetIsVisible(),setIsVisible(boolean),UMLPackage.getDiagramElement_IsVisible()
-
setIsVisible
void setIsVisible(boolean value)
Sets the value of the 'Is Visible' attribute.- Parameters:
value- the new value of the 'Is Visible' attribute.- See Also:
isSetIsVisible(),unsetIsVisible(),isVisible()
-
unsetIsVisible
void unsetIsVisible()
Unsets the value of the 'Is Visible' attribute.- See Also:
isSetIsVisible(),isVisible(),setIsVisible(boolean)
-
isSetIsVisible
boolean isSetIsVisible()
Returns whether the value of the 'Is Visible' attribute is set.- Returns:
- whether the value of the 'Is Visible' attribute is set.
- See Also:
unsetIsVisible(),isVisible(),setIsVisible(boolean)
-
getContainer
GraphElement getContainer()
Returns the value of the 'Container' container reference. It is bidirectional and its opposite is 'Contained'.- Returns:
- the value of the 'Container' container reference.
- See Also:
setContainer(GraphElement),UMLPackage.getDiagramElement_Container(),GraphElement.getContained()
-
setContainer
void setContainer(GraphElement value)
Sets the value of the 'Container' container reference.- Parameters:
value- the new value of the 'Container' container reference.- See Also:
getContainer()
-
getProperty
String getProperty(String key)
Returns theDiagram PropertyString value corresponding to the specified property key for the currentDiagram Element.- Parameters:
key- the Diagram Property key- Returns:
- the Diagram Property value, if the Diagram Property exists, return null otherwise
- Since:
- 3.3.0
- See Also:
getProperty(),getProperty(String, boolean),getProperty(String, String)
-
getProperty
String getProperty(String key, String defaultValue)
Returns theDiagram PropertyString value corresponding to the specified property key for the currentDiagram Element.- Parameters:
key- the Diagram Property keydefaultValue- the String default value- Returns:
- the Diagram Property value, if the Diagram Property exists, return 'defaultValue' otherwise
- Since:
- 3.3.0
- See Also:
getProperty(),getProperty(String),getProperty(String, boolean)
-
getProperty
boolean getProperty(String key, boolean defaultValue)
Returns theDiagram Propertyboolean value corresponding to the specified property key for the currentDiagram Element.- Parameters:
key- the Diagram Property keydefaultValue- the boolean default value- Returns:
- the Diagram Property value, if the Diagram Property exists, return 'defaultValue' otherwise
- Since:
- 3.3.0
- See Also:
getProperty(),getProperty(String),getProperty(String, String)
-
setProperty
void setProperty(String key, String value)
Set the value with the specified String 'value' to theDiagram Propertyhaving a key set to the specified 'key'.
If noDiagram Propertyexists with the key, a newDiagram Propertyis created.- Parameters:
key- the Diagram Property keyvalue- the Diagram Property String value- Since:
- 3.3.0
-
setProperty
void setProperty(String key, boolean value)
Set the value with the specified boolean 'value' to theDiagram Propertyhaving a key set to the specified 'key'.
If noDiagram Propertyexists with the key, a newDiagram Propertyis created.- Parameters:
key- the Diagram Property keyvalue- the Diagram Property boolean value- Since:
- 3.3.0
-
removeProperty
DiagramProperty removeProperty(String key)
Removes theDiagram Propertyhaving the key 'key' from the list of properties of the currentDiagram Element.- Parameters:
key- the Diagram Property key- Returns:
- the removed Diagram Property. If no Diagram Property exists with the key for the current Diagram Element, return null.
- Since:
- 3.3.0
-
getDiagram
Diagram getDiagram()
Returns the owningDiagramof the currentDiagram Element.- Returns:
- the owning Diagram
- Since:
- 3.3.0
-
-