summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlobjectflow.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-26 12:42:46 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-26 16:38:10 +0100
commit77283562898fbf9499ebece65cc068450433cd95 (patch)
tree10b38c6c9a5e5dbe8c5021b33fe889c54dfe5e71 /src/uml/qumlobjectflow.cpp
parent0f13b4f396ac21dee5ba1df2cc4cd482b3b41f88 (diff)
Update UML metamodel implementation
Change-Id: I1aeaa9b3f30e3d7a94bb665a0a53f7d6dd52de59 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlobjectflow.cpp')
-rw-r--r--src/uml/qumlobjectflow.cpp28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/uml/qumlobjectflow.cpp b/src/uml/qumlobjectflow.cpp
index ad12bbf7..f5cfd18a 100644
--- a/src/uml/qumlobjectflow.cpp
+++ b/src/uml/qumlobjectflow.cpp
@@ -84,6 +84,14 @@ QUmlObjectFlow::QUmlObjectFlow(bool createQModelingObject) :
}
/*!
+ Destroys the QUmlObjectFlow.
+ */
+QUmlObjectFlow::~QUmlObjectFlow()
+{
+ QModelingElement::deleteQModelingObject();
+}
+
+/*!
Returns a deep-copied clone of the QUmlObjectFlow.
*/
QModelingElement *QUmlObjectFlow::clone() const
@@ -91,37 +99,17 @@ QModelingElement *QUmlObjectFlow::clone() const
QUmlObjectFlow *c = new QUmlObjectFlow;
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
- foreach (QUmlDependency *element, clientDependencies())
- c->addClientDependency(dynamic_cast<QUmlDependency *>(element->clone()));
c->setName(name());
if (nameExpression())
c->setNameExpression(dynamic_cast<QUmlStringExpression *>(nameExpression()->clone()));
c->setVisibility(visibility());
c->setLeaf(isLeaf());
- if (activity())
- c->setActivity(dynamic_cast<QUmlActivity *>(activity()->clone()));
if (guard())
c->setGuard(dynamic_cast<QUmlValueSpecification *>(guard()->clone()));
- foreach (QUmlActivityPartition *element, inPartitions())
- c->addInPartition(dynamic_cast<QUmlActivityPartition *>(element->clone()));
- if (inStructuredNode())
- c->setInStructuredNode(dynamic_cast<QUmlStructuredActivityNode *>(inStructuredNode()->clone()));
- if (interrupts())
- c->setInterrupts(dynamic_cast<QUmlInterruptibleActivityRegion *>(interrupts()->clone()));
- foreach (QUmlActivityEdge *element, redefinedEdges())
- c->addRedefinedEdge(dynamic_cast<QUmlActivityEdge *>(element->clone()));
- if (source())
- c->setSource(dynamic_cast<QUmlActivityNode *>(source()->clone()));
- if (target())
- c->setTarget(dynamic_cast<QUmlActivityNode *>(target()->clone()));
if (weight())
c->setWeight(dynamic_cast<QUmlValueSpecification *>(weight()->clone()));
c->setMulticast(isMulticast());
c->setMultireceive(isMultireceive());
- if (selection())
- c->setSelection(dynamic_cast<QUmlBehavior *>(selection()->clone()));
- if (transformation())
- c->setTransformation(dynamic_cast<QUmlBehavior *>(transformation()->clone()));
return c;
}