summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-27 07:21:42 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-27 11:17:59 +0100
commit491e464197ee619fa718c1acef9cd555e9ad34b6 (patch)
tree556e47766dde5839351db70adeee6af499df35c4
parent3198bd4e3c7086d4ea112339107eade27a1db58e (diff)
Update UML metamodel implementation
Change-Id: I08dd9f1900e8d90f8d91dc731fe3c8d465c01676 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
-rw-r--r--src/uml/qumlabstraction.cpp2
-rw-r--r--src/uml/qumlacceptcallaction.cpp2
-rw-r--r--src/uml/qumlaccepteventaction.cpp2
-rw-r--r--src/uml/qumlaction.cpp2
-rw-r--r--src/uml/qumlactionexecutionspecification.cpp2
-rw-r--r--src/uml/qumlactioninputpin.cpp2
-rw-r--r--src/uml/qumlactivity.cpp2
-rw-r--r--src/uml/qumlactivityedge.cpp2
-rw-r--r--src/uml/qumlactivityfinalnode.cpp2
-rw-r--r--src/uml/qumlactivitygroup.cpp2
-rw-r--r--src/uml/qumlactivitynode.cpp2
-rw-r--r--src/uml/qumlactivityparameternode.cpp2
-rw-r--r--src/uml/qumlactivitypartition.cpp2
-rw-r--r--src/uml/qumlactor.cpp2
-rw-r--r--src/uml/qumladdstructuralfeaturevalueaction.cpp2
-rw-r--r--src/uml/qumladdvariablevalueaction.cpp2
-rw-r--r--src/uml/qumlanyreceiveevent.cpp2
-rw-r--r--src/uml/qumlartifact.cpp2
-rw-r--r--src/uml/qumlassociation.cpp2
-rw-r--r--src/uml/qumlassociationclass.cpp2
-rw-r--r--src/uml/qumlbehavior.cpp2
-rw-r--r--src/uml/qumlbehavioralfeature.cpp2
-rw-r--r--src/uml/qumlbehavioredclassifier.cpp2
-rw-r--r--src/uml/qumlbehaviorexecutionspecification.cpp2
-rw-r--r--src/uml/qumlbroadcastsignalaction.cpp2
-rw-r--r--src/uml/qumlcallaction.cpp2
-rw-r--r--src/uml/qumlcallbehavioraction.cpp2
-rw-r--r--src/uml/qumlcallevent.cpp2
-rw-r--r--src/uml/qumlcalloperationaction.cpp2
-rw-r--r--src/uml/qumlcentralbuffernode.cpp2
-rw-r--r--src/uml/qumlchangeevent.cpp2
-rw-r--r--src/uml/qumlclass.cpp2
-rw-r--r--src/uml/qumlclassifier.cpp2
-rw-r--r--src/uml/qumlclassifiertemplateparameter.cpp2
-rw-r--r--src/uml/qumlclause.cpp2
-rw-r--r--src/uml/qumlclearassociationaction.cpp2
-rw-r--r--src/uml/qumlclearstructuralfeatureaction.cpp2
-rw-r--r--src/uml/qumlclearvariableaction.cpp2
-rw-r--r--src/uml/qumlcollaboration.cpp2
-rw-r--r--src/uml/qumlcollaborationuse.cpp2
-rw-r--r--src/uml/qumlcombinedfragment.cpp2
-rw-r--r--src/uml/qumlcomment.cpp2
-rw-r--r--src/uml/qumlcommunicationpath.cpp2
-rw-r--r--src/uml/qumlcomponent.cpp2
-rw-r--r--src/uml/qumlcomponentrealization.cpp2
-rw-r--r--src/uml/qumlconditionalnode.cpp2
-rw-r--r--src/uml/qumlconnectableelement.cpp2
-rw-r--r--src/uml/qumlconnectableelementtemplateparameter.cpp2
-rw-r--r--src/uml/qumlconnectionpointreference.cpp2
-rw-r--r--src/uml/qumlconnector.cpp2
-rw-r--r--src/uml/qumlconnectorend.cpp2
-rw-r--r--src/uml/qumlconsiderignorefragment.cpp2
-rw-r--r--src/uml/qumlconstraint.cpp2
-rw-r--r--src/uml/qumlcontinuation.cpp2
-rw-r--r--src/uml/qumlcontrolflow.cpp2
-rw-r--r--src/uml/qumlcontrolnode.cpp2
-rw-r--r--src/uml/qumlcreatelinkaction.cpp2
-rw-r--r--src/uml/qumlcreatelinkobjectaction.cpp2
-rw-r--r--src/uml/qumlcreateobjectaction.cpp2
-rw-r--r--src/uml/qumldatastorenode.cpp2
-rw-r--r--src/uml/qumldatatype.cpp2
-rw-r--r--src/uml/qumldecisionnode.cpp2
-rw-r--r--src/uml/qumldependency.cpp2
-rw-r--r--src/uml/qumldeployedartifact.cpp2
-rw-r--r--src/uml/qumldeployment.cpp2
-rw-r--r--src/uml/qumldeploymentspecification.cpp2
-rw-r--r--src/uml/qumldeploymenttarget.cpp2
-rw-r--r--src/uml/qumldestroylinkaction.cpp2
-rw-r--r--src/uml/qumldestroyobjectaction.cpp2
-rw-r--r--src/uml/qumldestructionoccurrencespecification.cpp2
-rw-r--r--src/uml/qumldevice.cpp2
-rw-r--r--src/uml/qumldirectedrelationship.cpp2
-rw-r--r--src/uml/qumlduration.cpp2
-rw-r--r--src/uml/qumldurationconstraint.cpp2
-rw-r--r--src/uml/qumldurationinterval.cpp2
-rw-r--r--src/uml/qumldurationobservation.cpp2
-rw-r--r--src/uml/qumlelement.cpp2
-rw-r--r--src/uml/qumlelementimport.cpp2
-rw-r--r--src/uml/qumlencapsulatedclassifier.cpp2
-rw-r--r--src/uml/qumlenumeration.cpp2
-rw-r--r--src/uml/qumlenumerationliteral.cpp2
-rw-r--r--src/uml/qumlevent.cpp2
-rw-r--r--src/uml/qumlexceptionhandler.cpp2
-rw-r--r--src/uml/qumlexecutablenode.cpp2
-rw-r--r--src/uml/qumlexecutionenvironment.cpp2
-rw-r--r--src/uml/qumlexecutionoccurrencespecification.cpp2
-rw-r--r--src/uml/qumlexecutionspecification.cpp2
-rw-r--r--src/uml/qumlexpansionnode.cpp2
-rw-r--r--src/uml/qumlexpansionregion.cpp2
-rw-r--r--src/uml/qumlexpression.cpp2
-rw-r--r--src/uml/qumlextend.cpp2
-rw-r--r--src/uml/qumlextension.cpp2
-rw-r--r--src/uml/qumlextensionend.cpp2
-rw-r--r--src/uml/qumlextensionpoint.cpp2
-rw-r--r--src/uml/qumlfeature.cpp2
-rw-r--r--src/uml/qumlfinalnode.cpp2
-rw-r--r--src/uml/qumlfinalstate.cpp2
-rw-r--r--src/uml/qumlflowfinalnode.cpp2
-rw-r--r--src/uml/qumlforknode.cpp2
-rw-r--r--src/uml/qumlfunctionbehavior.cpp2
-rw-r--r--src/uml/qumlgate.cpp2
-rw-r--r--src/uml/qumlgeneralization.cpp2
-rw-r--r--src/uml/qumlgeneralizationset.cpp2
-rw-r--r--src/uml/qumlgeneralordering.cpp2
-rw-r--r--src/uml/qumlimage.cpp2
-rw-r--r--src/uml/qumlinclude.cpp2
-rw-r--r--src/uml/qumlinformationflow.cpp2
-rw-r--r--src/uml/qumlinformationitem.cpp2
-rw-r--r--src/uml/qumlinitialnode.cpp2
-rw-r--r--src/uml/qumlinputpin.cpp2
-rw-r--r--src/uml/qumlinstancespecification.cpp2
-rw-r--r--src/uml/qumlinstancevalue.cpp2
-rw-r--r--src/uml/qumlinteraction.cpp2
-rw-r--r--src/uml/qumlinteractionconstraint.cpp2
-rw-r--r--src/uml/qumlinteractionfragment.cpp2
-rw-r--r--src/uml/qumlinteractionoperand.cpp2
-rw-r--r--src/uml/qumlinteractionuse.cpp2
-rw-r--r--src/uml/qumlinterface.cpp2
-rw-r--r--src/uml/qumlinterfacerealization.cpp2
-rw-r--r--src/uml/qumlinterruptibleactivityregion.cpp2
-rw-r--r--src/uml/qumlinterval.cpp2
-rw-r--r--src/uml/qumlintervalconstraint.cpp2
-rw-r--r--src/uml/qumlinvocationaction.cpp2
-rw-r--r--src/uml/qumljoinnode.cpp2
-rw-r--r--src/uml/qumllifeline.cpp2
-rw-r--r--src/uml/qumllinkaction.cpp2
-rw-r--r--src/uml/qumllinkendcreationdata.cpp2
-rw-r--r--src/uml/qumllinkenddata.cpp2
-rw-r--r--src/uml/qumllinkenddestructiondata.cpp2
-rw-r--r--src/uml/qumlliteralboolean.cpp2
-rw-r--r--src/uml/qumlliteralinteger.cpp2
-rw-r--r--src/uml/qumlliteralnull.cpp2
-rw-r--r--src/uml/qumlliteralreal.cpp2
-rw-r--r--src/uml/qumlliteralspecification.cpp2
-rw-r--r--src/uml/qumlliteralstring.cpp2
-rw-r--r--src/uml/qumlliteralunlimitednatural.cpp2
-rw-r--r--src/uml/qumlloopnode.cpp2
-rw-r--r--src/uml/qumlmanifestation.cpp2
-rw-r--r--src/uml/qumlmergenode.cpp2
-rw-r--r--src/uml/qumlmessage.cpp2
-rw-r--r--src/uml/qumlmessageend.cpp2
-rw-r--r--src/uml/qumlmessageevent.cpp2
-rw-r--r--src/uml/qumlmessageoccurrencespecification.cpp2
-rw-r--r--src/uml/qumlmodel.cpp2
-rw-r--r--src/uml/qumlmultiplicityelement.cpp2
-rw-r--r--src/uml/qumlnamedelement.cpp2
-rw-r--r--src/uml/qumlnamespace.cpp2
-rw-r--r--src/uml/qumlnode.cpp2
-rw-r--r--src/uml/qumlobjectflow.cpp2
-rw-r--r--src/uml/qumlobjectnode.cpp2
-rw-r--r--src/uml/qumlobservation.cpp2
-rw-r--r--src/uml/qumloccurrencespecification.cpp2
-rw-r--r--src/uml/qumlopaqueaction.cpp2
-rw-r--r--src/uml/qumlopaquebehavior.cpp2
-rw-r--r--src/uml/qumlopaqueexpression.cpp2
-rw-r--r--src/uml/qumloperation.cpp2
-rw-r--r--src/uml/qumloperationtemplateparameter.cpp2
-rw-r--r--src/uml/qumloutputpin.cpp2
-rw-r--r--src/uml/qumlpackage.cpp2
-rw-r--r--src/uml/qumlpackageableelement.cpp2
-rw-r--r--src/uml/qumlpackageimport.cpp2
-rw-r--r--src/uml/qumlpackagemerge.cpp2
-rw-r--r--src/uml/qumlparameter.cpp2
-rw-r--r--src/uml/qumlparameterableelement.cpp2
-rw-r--r--src/uml/qumlparameterset.cpp2
-rw-r--r--src/uml/qumlpartdecomposition.cpp2
-rw-r--r--src/uml/qumlpin.cpp2
-rw-r--r--src/uml/qumlport.cpp2
-rw-r--r--src/uml/qumlprimitivetype.cpp2
-rw-r--r--src/uml/qumlprofile.cpp2
-rw-r--r--src/uml/qumlprofileapplication.cpp2
-rw-r--r--src/uml/qumlproperty.cpp2
-rw-r--r--src/uml/qumlprotocolconformance.cpp2
-rw-r--r--src/uml/qumlprotocolstatemachine.cpp2
-rw-r--r--src/uml/qumlprotocoltransition.cpp2
-rw-r--r--src/uml/qumlpseudostate.cpp2
-rw-r--r--src/uml/qumlqualifiervalue.cpp2
-rw-r--r--src/uml/qumlraiseexceptionaction.cpp2
-rw-r--r--src/uml/qumlreadextentaction.cpp2
-rw-r--r--src/uml/qumlreadisclassifiedobjectaction.cpp2
-rw-r--r--src/uml/qumlreadlinkaction.cpp2
-rw-r--r--src/uml/qumlreadlinkobjectendaction.cpp2
-rw-r--r--src/uml/qumlreadlinkobjectendqualifieraction.cpp2
-rw-r--r--src/uml/qumlreadselfaction.cpp2
-rw-r--r--src/uml/qumlreadstructuralfeatureaction.cpp2
-rw-r--r--src/uml/qumlreadvariableaction.cpp2
-rw-r--r--src/uml/qumlrealization.cpp2
-rw-r--r--src/uml/qumlreception.cpp2
-rw-r--r--src/uml/qumlreclassifyobjectaction.cpp2
-rw-r--r--src/uml/qumlredefinableelement.cpp2
-rw-r--r--src/uml/qumlredefinabletemplatesignature.cpp2
-rw-r--r--src/uml/qumlreduceaction.cpp2
-rw-r--r--src/uml/qumlregion.cpp2
-rw-r--r--src/uml/qumlrelationship.cpp2
-rw-r--r--src/uml/qumlremovestructuralfeaturevalueaction.cpp2
-rw-r--r--src/uml/qumlremovevariablevalueaction.cpp2
-rw-r--r--src/uml/qumlreplyaction.cpp2
-rw-r--r--src/uml/qumlsendobjectaction.cpp2
-rw-r--r--src/uml/qumlsendsignalaction.cpp2
-rw-r--r--src/uml/qumlsequencenode.cpp2
-rw-r--r--src/uml/qumlsignal.cpp2
-rw-r--r--src/uml/qumlsignalevent.cpp2
-rw-r--r--src/uml/qumlslot.cpp2
-rw-r--r--src/uml/qumlstartclassifierbehavioraction.cpp2
-rw-r--r--src/uml/qumlstartobjectbehavioraction.cpp2
-rw-r--r--src/uml/qumlstate.cpp2
-rw-r--r--src/uml/qumlstateinvariant.cpp2
-rw-r--r--src/uml/qumlstatemachine.cpp2
-rw-r--r--src/uml/qumlstereotype.cpp2
-rw-r--r--src/uml/qumlstringexpression.cpp2
-rw-r--r--src/uml/qumlstructuralfeature.cpp2
-rw-r--r--src/uml/qumlstructuralfeatureaction.cpp2
-rw-r--r--src/uml/qumlstructuredactivitynode.cpp2
-rw-r--r--src/uml/qumlstructuredclassifier.cpp2
-rw-r--r--src/uml/qumlsubstitution.cpp2
-rw-r--r--src/uml/qumltemplateableelement.cpp2
-rw-r--r--src/uml/qumltemplatebinding.cpp2
-rw-r--r--src/uml/qumltemplateparameter.cpp2
-rw-r--r--src/uml/qumltemplateparametersubstitution.cpp2
-rw-r--r--src/uml/qumltemplatesignature.cpp2
-rw-r--r--src/uml/qumltestidentityaction.cpp2
-rw-r--r--src/uml/qumltimeconstraint.cpp2
-rw-r--r--src/uml/qumltimeevent.cpp2
-rw-r--r--src/uml/qumltimeexpression.cpp2
-rw-r--r--src/uml/qumltimeinterval.cpp2
-rw-r--r--src/uml/qumltimeobservation.cpp2
-rw-r--r--src/uml/qumltransition.cpp2
-rw-r--r--src/uml/qumltrigger.cpp2
-rw-r--r--src/uml/qumltype.cpp2
-rw-r--r--src/uml/qumltypedelement.cpp2
-rw-r--r--src/uml/qumlunmarshallaction.cpp2
-rw-r--r--src/uml/qumlusage.cpp2
-rw-r--r--src/uml/qumlusecase.cpp2
-rw-r--r--src/uml/qumlvaluepin.cpp2
-rw-r--r--src/uml/qumlvaluespecification.cpp2
-rw-r--r--src/uml/qumlvaluespecificationaction.cpp2
-rw-r--r--src/uml/qumlvariable.cpp2
-rw-r--r--src/uml/qumlvariableaction.cpp2
-rw-r--r--src/uml/qumlvertex.cpp2
-rw-r--r--src/uml/qumlwritelinkaction.cpp2
-rw-r--r--src/uml/qumlwritestructuralfeatureaction.cpp2
-rw-r--r--src/uml/qumlwritevariableaction.cpp2
242 files changed, 484 insertions, 0 deletions
diff --git a/src/uml/qumlabstraction.cpp b/src/uml/qumlabstraction.cpp
index c9e6fc83..7b5856f9 100644
--- a/src/uml/qumlabstraction.cpp
+++ b/src/uml/qumlabstraction.cpp
@@ -87,6 +87,8 @@ QUmlAbstraction::~QUmlAbstraction()
QModelingElement *QUmlAbstraction::clone() const
{
QUmlAbstraction *c = new QUmlAbstraction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlacceptcallaction.cpp b/src/uml/qumlacceptcallaction.cpp
index 25b0c58f..4ffae440 100644
--- a/src/uml/qumlacceptcallaction.cpp
+++ b/src/uml/qumlacceptcallaction.cpp
@@ -99,6 +99,8 @@ QUmlAcceptCallAction::~QUmlAcceptCallAction()
QModelingElement *QUmlAcceptCallAction::clone() const
{
QUmlAcceptCallAction *c = new QUmlAcceptCallAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlaccepteventaction.cpp b/src/uml/qumlaccepteventaction.cpp
index 956d5f43..f1566b0b 100644
--- a/src/uml/qumlaccepteventaction.cpp
+++ b/src/uml/qumlaccepteventaction.cpp
@@ -98,6 +98,8 @@ QUmlAcceptEventAction::~QUmlAcceptEventAction()
QModelingElement *QUmlAcceptEventAction::clone() const
{
QUmlAcceptEventAction *c = new QUmlAcceptEventAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlaction.cpp b/src/uml/qumlaction.cpp
index 164e5bbe..964bb046 100644
--- a/src/uml/qumlaction.cpp
+++ b/src/uml/qumlaction.cpp
@@ -95,6 +95,8 @@ QUmlAction::~QUmlAction()
QModelingElement *QUmlAction::clone() const
{
QUmlAction *c = new QUmlAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactionexecutionspecification.cpp b/src/uml/qumlactionexecutionspecification.cpp
index 66ccbc07..9cec0473 100644
--- a/src/uml/qumlactionexecutionspecification.cpp
+++ b/src/uml/qumlactionexecutionspecification.cpp
@@ -90,6 +90,8 @@ QUmlActionExecutionSpecification::~QUmlActionExecutionSpecification()
QModelingElement *QUmlActionExecutionSpecification::clone() const
{
QUmlActionExecutionSpecification *c = new QUmlActionExecutionSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactioninputpin.cpp b/src/uml/qumlactioninputpin.cpp
index 30267b39..8417897b 100644
--- a/src/uml/qumlactioninputpin.cpp
+++ b/src/uml/qumlactioninputpin.cpp
@@ -100,6 +100,8 @@ QUmlActionInputPin::~QUmlActionInputPin()
QModelingElement *QUmlActionInputPin::clone() const
{
QUmlActionInputPin *c = new QUmlActionInputPin;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlactivity.cpp b/src/uml/qumlactivity.cpp
index ce8d3241..bdd8179e 100644
--- a/src/uml/qumlactivity.cpp
+++ b/src/uml/qumlactivity.cpp
@@ -123,6 +123,8 @@ QUmlActivity::~QUmlActivity()
QModelingElement *QUmlActivity::clone() const
{
QUmlActivity *c = new QUmlActivity;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivityedge.cpp b/src/uml/qumlactivityedge.cpp
index f5cce48d..feea6685 100644
--- a/src/uml/qumlactivityedge.cpp
+++ b/src/uml/qumlactivityedge.cpp
@@ -96,6 +96,8 @@ QUmlActivityEdge::~QUmlActivityEdge()
QModelingElement *QUmlActivityEdge::clone() const
{
QUmlActivityEdge *c = new QUmlActivityEdge;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivityfinalnode.cpp b/src/uml/qumlactivityfinalnode.cpp
index 2c1c0ca0..6d899939 100644
--- a/src/uml/qumlactivityfinalnode.cpp
+++ b/src/uml/qumlactivityfinalnode.cpp
@@ -92,6 +92,8 @@ QUmlActivityFinalNode::~QUmlActivityFinalNode()
QModelingElement *QUmlActivityFinalNode::clone() const
{
QUmlActivityFinalNode *c = new QUmlActivityFinalNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivitygroup.cpp b/src/uml/qumlactivitygroup.cpp
index 7503f0fe..54027e29 100644
--- a/src/uml/qumlactivitygroup.cpp
+++ b/src/uml/qumlactivitygroup.cpp
@@ -85,6 +85,8 @@ QUmlActivityGroup::~QUmlActivityGroup()
QModelingElement *QUmlActivityGroup::clone() const
{
QUmlActivityGroup *c = new QUmlActivityGroup;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivitynode.cpp b/src/uml/qumlactivitynode.cpp
index 4dfcac72..f17832f4 100644
--- a/src/uml/qumlactivitynode.cpp
+++ b/src/uml/qumlactivitynode.cpp
@@ -90,6 +90,8 @@ QUmlActivityNode::~QUmlActivityNode()
QModelingElement *QUmlActivityNode::clone() const
{
QUmlActivityNode *c = new QUmlActivityNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivityparameternode.cpp b/src/uml/qumlactivityparameternode.cpp
index 07f30a0b..cd2cf38a 100644
--- a/src/uml/qumlactivityparameternode.cpp
+++ b/src/uml/qumlactivityparameternode.cpp
@@ -98,6 +98,8 @@ QUmlActivityParameterNode::~QUmlActivityParameterNode()
QModelingElement *QUmlActivityParameterNode::clone() const
{
QUmlActivityParameterNode *c = new QUmlActivityParameterNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactivitypartition.cpp b/src/uml/qumlactivitypartition.cpp
index bb956095..b4617c78 100644
--- a/src/uml/qumlactivitypartition.cpp
+++ b/src/uml/qumlactivitypartition.cpp
@@ -90,6 +90,8 @@ QUmlActivityPartition::~QUmlActivityPartition()
QModelingElement *QUmlActivityPartition::clone() const
{
QUmlActivityPartition *c = new QUmlActivityPartition;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlactor.cpp b/src/uml/qumlactor.cpp
index 6432481d..442ac8bd 100644
--- a/src/uml/qumlactor.cpp
+++ b/src/uml/qumlactor.cpp
@@ -105,6 +105,8 @@ QUmlActor::~QUmlActor()
QModelingElement *QUmlActor::clone() const
{
QUmlActor *c = new QUmlActor;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumladdstructuralfeaturevalueaction.cpp b/src/uml/qumladdstructuralfeaturevalueaction.cpp
index 0e711858..e8553016 100644
--- a/src/uml/qumladdstructuralfeaturevalueaction.cpp
+++ b/src/uml/qumladdstructuralfeaturevalueaction.cpp
@@ -99,6 +99,8 @@ QUmlAddStructuralFeatureValueAction::~QUmlAddStructuralFeatureValueAction()
QModelingElement *QUmlAddStructuralFeatureValueAction::clone() const
{
QUmlAddStructuralFeatureValueAction *c = new QUmlAddStructuralFeatureValueAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumladdvariablevalueaction.cpp b/src/uml/qumladdvariablevalueaction.cpp
index c3003312..a72d547a 100644
--- a/src/uml/qumladdvariablevalueaction.cpp
+++ b/src/uml/qumladdvariablevalueaction.cpp
@@ -99,6 +99,8 @@ QUmlAddVariableValueAction::~QUmlAddVariableValueAction()
QModelingElement *QUmlAddVariableValueAction::clone() const
{
QUmlAddVariableValueAction *c = new QUmlAddVariableValueAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlanyreceiveevent.cpp b/src/uml/qumlanyreceiveevent.cpp
index 548b23b6..be09010f 100644
--- a/src/uml/qumlanyreceiveevent.cpp
+++ b/src/uml/qumlanyreceiveevent.cpp
@@ -85,6 +85,8 @@ QUmlAnyReceiveEvent::~QUmlAnyReceiveEvent()
QModelingElement *QUmlAnyReceiveEvent::clone() const
{
QUmlAnyReceiveEvent *c = new QUmlAnyReceiveEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlartifact.cpp b/src/uml/qumlartifact.cpp
index e254be70..f6b56623 100644
--- a/src/uml/qumlartifact.cpp
+++ b/src/uml/qumlartifact.cpp
@@ -104,6 +104,8 @@ QUmlArtifact::~QUmlArtifact()
QModelingElement *QUmlArtifact::clone() const
{
QUmlArtifact *c = new QUmlArtifact;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlassociation.cpp b/src/uml/qumlassociation.cpp
index f972209c..2298ba5a 100644
--- a/src/uml/qumlassociation.cpp
+++ b/src/uml/qumlassociation.cpp
@@ -103,6 +103,8 @@ QUmlAssociation::~QUmlAssociation()
QModelingElement *QUmlAssociation::clone() const
{
QUmlAssociation *c = new QUmlAssociation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlassociationclass.cpp b/src/uml/qumlassociationclass.cpp
index f76d8be3..4f3cbcc8 100644
--- a/src/uml/qumlassociationclass.cpp
+++ b/src/uml/qumlassociationclass.cpp
@@ -113,6 +113,8 @@ QUmlAssociationClass::~QUmlAssociationClass()
QModelingElement *QUmlAssociationClass::clone() const
{
QUmlAssociationClass *c = new QUmlAssociationClass;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlbehavior.cpp b/src/uml/qumlbehavior.cpp
index d8322252..fda0411a 100644
--- a/src/uml/qumlbehavior.cpp
+++ b/src/uml/qumlbehavior.cpp
@@ -115,6 +115,8 @@ QUmlBehavior::~QUmlBehavior()
QModelingElement *QUmlBehavior::clone() const
{
QUmlBehavior *c = new QUmlBehavior;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlbehavioralfeature.cpp b/src/uml/qumlbehavioralfeature.cpp
index 55e7a816..80f097b3 100644
--- a/src/uml/qumlbehavioralfeature.cpp
+++ b/src/uml/qumlbehavioralfeature.cpp
@@ -92,6 +92,8 @@ QUmlBehavioralFeature::~QUmlBehavioralFeature()
QModelingElement *QUmlBehavioralFeature::clone() const
{
QUmlBehavioralFeature *c = new QUmlBehavioralFeature;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlbehavioredclassifier.cpp b/src/uml/qumlbehavioredclassifier.cpp
index fa926e65..ad23ad2c 100644
--- a/src/uml/qumlbehavioredclassifier.cpp
+++ b/src/uml/qumlbehavioredclassifier.cpp
@@ -103,6 +103,8 @@ QUmlBehavioredClassifier::~QUmlBehavioredClassifier()
QModelingElement *QUmlBehavioredClassifier::clone() const
{
QUmlBehavioredClassifier *c = new QUmlBehavioredClassifier;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlbehaviorexecutionspecification.cpp b/src/uml/qumlbehaviorexecutionspecification.cpp
index f2c38b95..485524f0 100644
--- a/src/uml/qumlbehaviorexecutionspecification.cpp
+++ b/src/uml/qumlbehaviorexecutionspecification.cpp
@@ -90,6 +90,8 @@ QUmlBehaviorExecutionSpecification::~QUmlBehaviorExecutionSpecification()
QModelingElement *QUmlBehaviorExecutionSpecification::clone() const
{
QUmlBehaviorExecutionSpecification *c = new QUmlBehaviorExecutionSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlbroadcastsignalaction.cpp b/src/uml/qumlbroadcastsignalaction.cpp
index 1aeed26c..c3db7563 100644
--- a/src/uml/qumlbroadcastsignalaction.cpp
+++ b/src/uml/qumlbroadcastsignalaction.cpp
@@ -99,6 +99,8 @@ QUmlBroadcastSignalAction::~QUmlBroadcastSignalAction()
QModelingElement *QUmlBroadcastSignalAction::clone() const
{
QUmlBroadcastSignalAction *c = new QUmlBroadcastSignalAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcallaction.cpp b/src/uml/qumlcallaction.cpp
index 7b838035..8f7c4531 100644
--- a/src/uml/qumlcallaction.cpp
+++ b/src/uml/qumlcallaction.cpp
@@ -96,6 +96,8 @@ QUmlCallAction::~QUmlCallAction()
QModelingElement *QUmlCallAction::clone() const
{
QUmlCallAction *c = new QUmlCallAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcallbehavioraction.cpp b/src/uml/qumlcallbehavioraction.cpp
index 9294a980..5a45c59c 100644
--- a/src/uml/qumlcallbehavioraction.cpp
+++ b/src/uml/qumlcallbehavioraction.cpp
@@ -99,6 +99,8 @@ QUmlCallBehaviorAction::~QUmlCallBehaviorAction()
QModelingElement *QUmlCallBehaviorAction::clone() const
{
QUmlCallBehaviorAction *c = new QUmlCallBehaviorAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcallevent.cpp b/src/uml/qumlcallevent.cpp
index 492d258a..7e9ad431 100644
--- a/src/uml/qumlcallevent.cpp
+++ b/src/uml/qumlcallevent.cpp
@@ -87,6 +87,8 @@ QUmlCallEvent::~QUmlCallEvent()
QModelingElement *QUmlCallEvent::clone() const
{
QUmlCallEvent *c = new QUmlCallEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcalloperationaction.cpp b/src/uml/qumlcalloperationaction.cpp
index 66a5df07..29652f05 100644
--- a/src/uml/qumlcalloperationaction.cpp
+++ b/src/uml/qumlcalloperationaction.cpp
@@ -100,6 +100,8 @@ QUmlCallOperationAction::~QUmlCallOperationAction()
QModelingElement *QUmlCallOperationAction::clone() const
{
QUmlCallOperationAction *c = new QUmlCallOperationAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcentralbuffernode.cpp b/src/uml/qumlcentralbuffernode.cpp
index f0170a26..cc8a00ea 100644
--- a/src/uml/qumlcentralbuffernode.cpp
+++ b/src/uml/qumlcentralbuffernode.cpp
@@ -96,6 +96,8 @@ QUmlCentralBufferNode::~QUmlCentralBufferNode()
QModelingElement *QUmlCentralBufferNode::clone() const
{
QUmlCentralBufferNode *c = new QUmlCentralBufferNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlchangeevent.cpp b/src/uml/qumlchangeevent.cpp
index 6298e21a..e091e669 100644
--- a/src/uml/qumlchangeevent.cpp
+++ b/src/uml/qumlchangeevent.cpp
@@ -87,6 +87,8 @@ QUmlChangeEvent::~QUmlChangeEvent()
QModelingElement *QUmlChangeEvent::clone() const
{
QUmlChangeEvent *c = new QUmlChangeEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlclass.cpp b/src/uml/qumlclass.cpp
index 01a972c3..f34fa955 100644
--- a/src/uml/qumlclass.cpp
+++ b/src/uml/qumlclass.cpp
@@ -113,6 +113,8 @@ QUmlClass::~QUmlClass()
QModelingElement *QUmlClass::clone() const
{
QUmlClass *c = new QUmlClass;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlclassifier.cpp b/src/uml/qumlclassifier.cpp
index 94de2289..6cb1193b 100644
--- a/src/uml/qumlclassifier.cpp
+++ b/src/uml/qumlclassifier.cpp
@@ -102,6 +102,8 @@ QUmlClassifier::~QUmlClassifier()
QModelingElement *QUmlClassifier::clone() const
{
QUmlClassifier *c = new QUmlClassifier;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlclassifiertemplateparameter.cpp b/src/uml/qumlclassifiertemplateparameter.cpp
index 1deb8bb5..4e876b54 100644
--- a/src/uml/qumlclassifiertemplateparameter.cpp
+++ b/src/uml/qumlclassifiertemplateparameter.cpp
@@ -84,6 +84,8 @@ QUmlClassifierTemplateParameter::~QUmlClassifierTemplateParameter()
QModelingElement *QUmlClassifierTemplateParameter::clone() const
{
QUmlClassifierTemplateParameter *c = new QUmlClassifierTemplateParameter;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedDefault())
diff --git a/src/uml/qumlclause.cpp b/src/uml/qumlclause.cpp
index ffad4333..8f888687 100644
--- a/src/uml/qumlclause.cpp
+++ b/src/uml/qumlclause.cpp
@@ -80,6 +80,8 @@ QUmlClause::~QUmlClause()
QModelingElement *QUmlClause::clone() const
{
QUmlClause *c = new QUmlClause;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlclearassociationaction.cpp b/src/uml/qumlclearassociationaction.cpp
index f36653dc..85feac14 100644
--- a/src/uml/qumlclearassociationaction.cpp
+++ b/src/uml/qumlclearassociationaction.cpp
@@ -99,6 +99,8 @@ QUmlClearAssociationAction::~QUmlClearAssociationAction()
QModelingElement *QUmlClearAssociationAction::clone() const
{
QUmlClearAssociationAction *c = new QUmlClearAssociationAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlclearstructuralfeatureaction.cpp b/src/uml/qumlclearstructuralfeatureaction.cpp
index 7e10a056..f96a6c51 100644
--- a/src/uml/qumlclearstructuralfeatureaction.cpp
+++ b/src/uml/qumlclearstructuralfeatureaction.cpp
@@ -98,6 +98,8 @@ QUmlClearStructuralFeatureAction::~QUmlClearStructuralFeatureAction()
QModelingElement *QUmlClearStructuralFeatureAction::clone() const
{
QUmlClearStructuralFeatureAction *c = new QUmlClearStructuralFeatureAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlclearvariableaction.cpp b/src/uml/qumlclearvariableaction.cpp
index 289b5c47..b4c1f4ea 100644
--- a/src/uml/qumlclearvariableaction.cpp
+++ b/src/uml/qumlclearvariableaction.cpp
@@ -97,6 +97,8 @@ QUmlClearVariableAction::~QUmlClearVariableAction()
QModelingElement *QUmlClearVariableAction::clone() const
{
QUmlClearVariableAction *c = new QUmlClearVariableAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcollaboration.cpp b/src/uml/qumlcollaboration.cpp
index 7f7d8825..abe897cf 100644
--- a/src/uml/qumlcollaboration.cpp
+++ b/src/uml/qumlcollaboration.cpp
@@ -107,6 +107,8 @@ QUmlCollaboration::~QUmlCollaboration()
QModelingElement *QUmlCollaboration::clone() const
{
QUmlCollaboration *c = new QUmlCollaboration;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcollaborationuse.cpp b/src/uml/qumlcollaborationuse.cpp
index d6fbbd9a..ff2fd03c 100644
--- a/src/uml/qumlcollaborationuse.cpp
+++ b/src/uml/qumlcollaborationuse.cpp
@@ -84,6 +84,8 @@ QUmlCollaborationUse::~QUmlCollaborationUse()
QModelingElement *QUmlCollaborationUse::clone() const
{
QUmlCollaborationUse *c = new QUmlCollaborationUse;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcombinedfragment.cpp b/src/uml/qumlcombinedfragment.cpp
index 6ff582f9..add37ac4 100644
--- a/src/uml/qumlcombinedfragment.cpp
+++ b/src/uml/qumlcombinedfragment.cpp
@@ -89,6 +89,8 @@ QUmlCombinedFragment::~QUmlCombinedFragment()
QModelingElement *QUmlCombinedFragment::clone() const
{
QUmlCombinedFragment *c = new QUmlCombinedFragment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcomment.cpp b/src/uml/qumlcomment.cpp
index 94f5f980..7eddbd9d 100644
--- a/src/uml/qumlcomment.cpp
+++ b/src/uml/qumlcomment.cpp
@@ -75,6 +75,8 @@ QUmlComment::~QUmlComment()
QModelingElement *QUmlComment::clone() const
{
QUmlComment *c = new QUmlComment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setBody(body());
diff --git a/src/uml/qumlcommunicationpath.cpp b/src/uml/qumlcommunicationpath.cpp
index 22a7f050..4eb4c603 100644
--- a/src/uml/qumlcommunicationpath.cpp
+++ b/src/uml/qumlcommunicationpath.cpp
@@ -104,6 +104,8 @@ QUmlCommunicationPath::~QUmlCommunicationPath()
QModelingElement *QUmlCommunicationPath::clone() const
{
QUmlCommunicationPath *c = new QUmlCommunicationPath;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcomponent.cpp b/src/uml/qumlcomponent.cpp
index 0d8e2dd9..91c85db4 100644
--- a/src/uml/qumlcomponent.cpp
+++ b/src/uml/qumlcomponent.cpp
@@ -115,6 +115,8 @@ QUmlComponent::~QUmlComponent()
QModelingElement *QUmlComponent::clone() const
{
QUmlComponent *c = new QUmlComponent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcomponentrealization.cpp b/src/uml/qumlcomponentrealization.cpp
index 02d145e2..ebb4a129 100644
--- a/src/uml/qumlcomponentrealization.cpp
+++ b/src/uml/qumlcomponentrealization.cpp
@@ -90,6 +90,8 @@ QUmlComponentRealization::~QUmlComponentRealization()
QModelingElement *QUmlComponentRealization::clone() const
{
QUmlComponentRealization *c = new QUmlComponentRealization;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconditionalnode.cpp b/src/uml/qumlconditionalnode.cpp
index 7d531b90..1fa75f38 100644
--- a/src/uml/qumlconditionalnode.cpp
+++ b/src/uml/qumlconditionalnode.cpp
@@ -103,6 +103,8 @@ QUmlConditionalNode::~QUmlConditionalNode()
QModelingElement *QUmlConditionalNode::clone() const
{
QUmlConditionalNode *c = new QUmlConditionalNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconnectableelement.cpp b/src/uml/qumlconnectableelement.cpp
index ed8f1825..e806d03e 100644
--- a/src/uml/qumlconnectableelement.cpp
+++ b/src/uml/qumlconnectableelement.cpp
@@ -86,6 +86,8 @@ QUmlConnectableElement::~QUmlConnectableElement()
QModelingElement *QUmlConnectableElement::clone() const
{
QUmlConnectableElement *c = new QUmlConnectableElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconnectableelementtemplateparameter.cpp b/src/uml/qumlconnectableelementtemplateparameter.cpp
index c3f56789..9a818e55 100644
--- a/src/uml/qumlconnectableelementtemplateparameter.cpp
+++ b/src/uml/qumlconnectableelementtemplateparameter.cpp
@@ -83,6 +83,8 @@ QUmlConnectableElementTemplateParameter::~QUmlConnectableElementTemplateParamete
QModelingElement *QUmlConnectableElementTemplateParameter::clone() const
{
QUmlConnectableElementTemplateParameter *c = new QUmlConnectableElementTemplateParameter;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedDefault())
diff --git a/src/uml/qumlconnectionpointreference.cpp b/src/uml/qumlconnectionpointreference.cpp
index ae2a7e99..a8aca763 100644
--- a/src/uml/qumlconnectionpointreference.cpp
+++ b/src/uml/qumlconnectionpointreference.cpp
@@ -89,6 +89,8 @@ QUmlConnectionPointReference::~QUmlConnectionPointReference()
QModelingElement *QUmlConnectionPointReference::clone() const
{
QUmlConnectionPointReference *c = new QUmlConnectionPointReference;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconnector.cpp b/src/uml/qumlconnector.cpp
index 13319c2a..7e033edc 100644
--- a/src/uml/qumlconnector.cpp
+++ b/src/uml/qumlconnector.cpp
@@ -91,6 +91,8 @@ QUmlConnector::~QUmlConnector()
QModelingElement *QUmlConnector::clone() const
{
QUmlConnector *c = new QUmlConnector;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconnectorend.cpp b/src/uml/qumlconnectorend.cpp
index 2c71c24d..a61e36b0 100644
--- a/src/uml/qumlconnectorend.cpp
+++ b/src/uml/qumlconnectorend.cpp
@@ -83,6 +83,8 @@ QUmlConnectorEnd::~QUmlConnectorEnd()
QModelingElement *QUmlConnectorEnd::clone() const
{
QUmlConnectorEnd *c = new QUmlConnectorEnd;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlconsiderignorefragment.cpp b/src/uml/qumlconsiderignorefragment.cpp
index f12d694f..11c588b4 100644
--- a/src/uml/qumlconsiderignorefragment.cpp
+++ b/src/uml/qumlconsiderignorefragment.cpp
@@ -89,6 +89,8 @@ QUmlConsiderIgnoreFragment::~QUmlConsiderIgnoreFragment()
QModelingElement *QUmlConsiderIgnoreFragment::clone() const
{
QUmlConsiderIgnoreFragment *c = new QUmlConsiderIgnoreFragment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlconstraint.cpp b/src/uml/qumlconstraint.cpp
index 467bec8e..f91eee3f 100644
--- a/src/uml/qumlconstraint.cpp
+++ b/src/uml/qumlconstraint.cpp
@@ -88,6 +88,8 @@ QUmlConstraint::~QUmlConstraint()
QModelingElement *QUmlConstraint::clone() const
{
QUmlConstraint *c = new QUmlConstraint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcontinuation.cpp b/src/uml/qumlcontinuation.cpp
index 1628bf48..bb37cb00 100644
--- a/src/uml/qumlcontinuation.cpp
+++ b/src/uml/qumlcontinuation.cpp
@@ -88,6 +88,8 @@ QUmlContinuation::~QUmlContinuation()
QModelingElement *QUmlContinuation::clone() const
{
QUmlContinuation *c = new QUmlContinuation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcontrolflow.cpp b/src/uml/qumlcontrolflow.cpp
index 202155bc..79b6aa71 100644
--- a/src/uml/qumlcontrolflow.cpp
+++ b/src/uml/qumlcontrolflow.cpp
@@ -92,6 +92,8 @@ QUmlControlFlow::~QUmlControlFlow()
QModelingElement *QUmlControlFlow::clone() const
{
QUmlControlFlow *c = new QUmlControlFlow;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcontrolnode.cpp b/src/uml/qumlcontrolnode.cpp
index 3f99d024..9fc0aa58 100644
--- a/src/uml/qumlcontrolnode.cpp
+++ b/src/uml/qumlcontrolnode.cpp
@@ -89,6 +89,8 @@ QUmlControlNode::~QUmlControlNode()
QModelingElement *QUmlControlNode::clone() const
{
QUmlControlNode *c = new QUmlControlNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcreatelinkaction.cpp b/src/uml/qumlcreatelinkaction.cpp
index fe22126d..773532e1 100644
--- a/src/uml/qumlcreatelinkaction.cpp
+++ b/src/uml/qumlcreatelinkaction.cpp
@@ -99,6 +99,8 @@ QUmlCreateLinkAction::~QUmlCreateLinkAction()
QModelingElement *QUmlCreateLinkAction::clone() const
{
QUmlCreateLinkAction *c = new QUmlCreateLinkAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcreatelinkobjectaction.cpp b/src/uml/qumlcreatelinkobjectaction.cpp
index 2b9d1112..283baa91 100644
--- a/src/uml/qumlcreatelinkobjectaction.cpp
+++ b/src/uml/qumlcreatelinkobjectaction.cpp
@@ -101,6 +101,8 @@ QUmlCreateLinkObjectAction::~QUmlCreateLinkObjectAction()
QModelingElement *QUmlCreateLinkObjectAction::clone() const
{
QUmlCreateLinkObjectAction *c = new QUmlCreateLinkObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlcreateobjectaction.cpp b/src/uml/qumlcreateobjectaction.cpp
index b18e8ed8..8a680fa1 100644
--- a/src/uml/qumlcreateobjectaction.cpp
+++ b/src/uml/qumlcreateobjectaction.cpp
@@ -98,6 +98,8 @@ QUmlCreateObjectAction::~QUmlCreateObjectAction()
QModelingElement *QUmlCreateObjectAction::clone() const
{
QUmlCreateObjectAction *c = new QUmlCreateObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldatastorenode.cpp b/src/uml/qumldatastorenode.cpp
index bab9f4f5..6e6f30ca 100644
--- a/src/uml/qumldatastorenode.cpp
+++ b/src/uml/qumldatastorenode.cpp
@@ -97,6 +97,8 @@ QUmlDataStoreNode::~QUmlDataStoreNode()
QModelingElement *QUmlDataStoreNode::clone() const
{
QUmlDataStoreNode *c = new QUmlDataStoreNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldatatype.cpp b/src/uml/qumldatatype.cpp
index a104191a..dc611c8e 100644
--- a/src/uml/qumldatatype.cpp
+++ b/src/uml/qumldatatype.cpp
@@ -103,6 +103,8 @@ QUmlDataType::~QUmlDataType()
QModelingElement *QUmlDataType::clone() const
{
QUmlDataType *c = new QUmlDataType;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldecisionnode.cpp b/src/uml/qumldecisionnode.cpp
index 688a4fb2..7cb7a471 100644
--- a/src/uml/qumldecisionnode.cpp
+++ b/src/uml/qumldecisionnode.cpp
@@ -96,6 +96,8 @@ QUmlDecisionNode::~QUmlDecisionNode()
QModelingElement *QUmlDecisionNode::clone() const
{
QUmlDecisionNode *c = new QUmlDecisionNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldependency.cpp b/src/uml/qumldependency.cpp
index b0dc7e64..12712ea6 100644
--- a/src/uml/qumldependency.cpp
+++ b/src/uml/qumldependency.cpp
@@ -84,6 +84,8 @@ QUmlDependency::~QUmlDependency()
QModelingElement *QUmlDependency::clone() const
{
QUmlDependency *c = new QUmlDependency;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldeployedartifact.cpp b/src/uml/qumldeployedartifact.cpp
index b47546ab..38086082 100644
--- a/src/uml/qumldeployedartifact.cpp
+++ b/src/uml/qumldeployedartifact.cpp
@@ -80,6 +80,8 @@ QUmlDeployedArtifact::~QUmlDeployedArtifact()
QModelingElement *QUmlDeployedArtifact::clone() const
{
QUmlDeployedArtifact *c = new QUmlDeployedArtifact;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldeployment.cpp b/src/uml/qumldeployment.cpp
index 4a1c21e8..97dd7da1 100644
--- a/src/uml/qumldeployment.cpp
+++ b/src/uml/qumldeployment.cpp
@@ -89,6 +89,8 @@ QUmlDeployment::~QUmlDeployment()
QModelingElement *QUmlDeployment::clone() const
{
QUmlDeployment *c = new QUmlDeployment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldeploymentspecification.cpp b/src/uml/qumldeploymentspecification.cpp
index ce5c2a74..23bf2b24 100644
--- a/src/uml/qumldeploymentspecification.cpp
+++ b/src/uml/qumldeploymentspecification.cpp
@@ -108,6 +108,8 @@ QUmlDeploymentSpecification::~QUmlDeploymentSpecification()
QModelingElement *QUmlDeploymentSpecification::clone() const
{
QUmlDeploymentSpecification *c = new QUmlDeploymentSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldeploymenttarget.cpp b/src/uml/qumldeploymenttarget.cpp
index 797eca13..c6ddfa4d 100644
--- a/src/uml/qumldeploymenttarget.cpp
+++ b/src/uml/qumldeploymenttarget.cpp
@@ -82,6 +82,8 @@ QUmlDeploymentTarget::~QUmlDeploymentTarget()
QModelingElement *QUmlDeploymentTarget::clone() const
{
QUmlDeploymentTarget *c = new QUmlDeploymentTarget;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldestroylinkaction.cpp b/src/uml/qumldestroylinkaction.cpp
index c6f61f01..1d0a39aa 100644
--- a/src/uml/qumldestroylinkaction.cpp
+++ b/src/uml/qumldestroylinkaction.cpp
@@ -99,6 +99,8 @@ QUmlDestroyLinkAction::~QUmlDestroyLinkAction()
QModelingElement *QUmlDestroyLinkAction::clone() const
{
QUmlDestroyLinkAction *c = new QUmlDestroyLinkAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldestroyobjectaction.cpp b/src/uml/qumldestroyobjectaction.cpp
index 7e9ea780..6bcc3196 100644
--- a/src/uml/qumldestroyobjectaction.cpp
+++ b/src/uml/qumldestroyobjectaction.cpp
@@ -99,6 +99,8 @@ QUmlDestroyObjectAction::~QUmlDestroyObjectAction()
QModelingElement *QUmlDestroyObjectAction::clone() const
{
QUmlDestroyObjectAction *c = new QUmlDestroyObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldestructionoccurrencespecification.cpp b/src/uml/qumldestructionoccurrencespecification.cpp
index 87ef9fc9..08cbbfeb 100644
--- a/src/uml/qumldestructionoccurrencespecification.cpp
+++ b/src/uml/qumldestructionoccurrencespecification.cpp
@@ -89,6 +89,8 @@ QUmlDestructionOccurrenceSpecification::~QUmlDestructionOccurrenceSpecification(
QModelingElement *QUmlDestructionOccurrenceSpecification::clone() const
{
QUmlDestructionOccurrenceSpecification *c = new QUmlDestructionOccurrenceSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldevice.cpp b/src/uml/qumldevice.cpp
index 7c32fd25..da4e585a 100644
--- a/src/uml/qumldevice.cpp
+++ b/src/uml/qumldevice.cpp
@@ -114,6 +114,8 @@ QUmlDevice::~QUmlDevice()
QModelingElement *QUmlDevice::clone() const
{
QUmlDevice *c = new QUmlDevice;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldirectedrelationship.cpp b/src/uml/qumldirectedrelationship.cpp
index 55b2f628..6c5e5a15 100644
--- a/src/uml/qumldirectedrelationship.cpp
+++ b/src/uml/qumldirectedrelationship.cpp
@@ -76,6 +76,8 @@ QUmlDirectedRelationship::~QUmlDirectedRelationship()
QModelingElement *QUmlDirectedRelationship::clone() const
{
QUmlDirectedRelationship *c = new QUmlDirectedRelationship;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlduration.cpp b/src/uml/qumlduration.cpp
index bcaa563b..b82623ae 100644
--- a/src/uml/qumlduration.cpp
+++ b/src/uml/qumlduration.cpp
@@ -88,6 +88,8 @@ QUmlDuration::~QUmlDuration()
QModelingElement *QUmlDuration::clone() const
{
QUmlDuration *c = new QUmlDuration;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldurationconstraint.cpp b/src/uml/qumldurationconstraint.cpp
index a3a3f76d..8c61d9cf 100644
--- a/src/uml/qumldurationconstraint.cpp
+++ b/src/uml/qumldurationconstraint.cpp
@@ -90,6 +90,8 @@ QUmlDurationConstraint::~QUmlDurationConstraint()
QModelingElement *QUmlDurationConstraint::clone() const
{
QUmlDurationConstraint *c = new QUmlDurationConstraint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldurationinterval.cpp b/src/uml/qumldurationinterval.cpp
index 735806cd..1eae02b8 100644
--- a/src/uml/qumldurationinterval.cpp
+++ b/src/uml/qumldurationinterval.cpp
@@ -91,6 +91,8 @@ QUmlDurationInterval::~QUmlDurationInterval()
QModelingElement *QUmlDurationInterval::clone() const
{
QUmlDurationInterval *c = new QUmlDurationInterval;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumldurationobservation.cpp b/src/uml/qumldurationobservation.cpp
index 1d5ac35f..230e40e1 100644
--- a/src/uml/qumldurationobservation.cpp
+++ b/src/uml/qumldurationobservation.cpp
@@ -86,6 +86,8 @@ QUmlDurationObservation::~QUmlDurationObservation()
QModelingElement *QUmlDurationObservation::clone() const
{
QUmlDurationObservation *c = new QUmlDurationObservation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlelement.cpp b/src/uml/qumlelement.cpp
index 44651bba..d765120e 100644
--- a/src/uml/qumlelement.cpp
+++ b/src/uml/qumlelement.cpp
@@ -76,6 +76,8 @@ QUmlElement::~QUmlElement()
QModelingElement *QUmlElement::clone() const
{
QUmlElement *c = new QUmlElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlelementimport.cpp b/src/uml/qumlelementimport.cpp
index 1fb7efd8..819a6de5 100644
--- a/src/uml/qumlelementimport.cpp
+++ b/src/uml/qumlelementimport.cpp
@@ -83,6 +83,8 @@ QUmlElementImport::~QUmlElementImport()
QModelingElement *QUmlElementImport::clone() const
{
QUmlElementImport *c = new QUmlElementImport;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setAlias(alias());
diff --git a/src/uml/qumlencapsulatedclassifier.cpp b/src/uml/qumlencapsulatedclassifier.cpp
index f84af8da..6d9ac50c 100644
--- a/src/uml/qumlencapsulatedclassifier.cpp
+++ b/src/uml/qumlencapsulatedclassifier.cpp
@@ -104,6 +104,8 @@ QUmlEncapsulatedClassifier::~QUmlEncapsulatedClassifier()
QModelingElement *QUmlEncapsulatedClassifier::clone() const
{
QUmlEncapsulatedClassifier *c = new QUmlEncapsulatedClassifier;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlenumeration.cpp b/src/uml/qumlenumeration.cpp
index 033491a9..a0dfdedc 100644
--- a/src/uml/qumlenumeration.cpp
+++ b/src/uml/qumlenumeration.cpp
@@ -106,6 +106,8 @@ QUmlEnumeration::~QUmlEnumeration()
QModelingElement *QUmlEnumeration::clone() const
{
QUmlEnumeration *c = new QUmlEnumeration;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlenumerationliteral.cpp b/src/uml/qumlenumerationliteral.cpp
index a81a85ee..42ce40f4 100644
--- a/src/uml/qumlenumerationliteral.cpp
+++ b/src/uml/qumlenumerationliteral.cpp
@@ -93,6 +93,8 @@ QUmlEnumerationLiteral::~QUmlEnumerationLiteral()
QModelingElement *QUmlEnumerationLiteral::clone() const
{
QUmlEnumerationLiteral *c = new QUmlEnumerationLiteral;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlevent.cpp b/src/uml/qumlevent.cpp
index 6ed4c311..7e3d4028 100644
--- a/src/uml/qumlevent.cpp
+++ b/src/uml/qumlevent.cpp
@@ -83,6 +83,8 @@ QUmlEvent::~QUmlEvent()
QModelingElement *QUmlEvent::clone() const
{
QUmlEvent *c = new QUmlEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexceptionhandler.cpp b/src/uml/qumlexceptionhandler.cpp
index ef39714a..649d4cf0 100644
--- a/src/uml/qumlexceptionhandler.cpp
+++ b/src/uml/qumlexceptionhandler.cpp
@@ -83,6 +83,8 @@ QUmlExceptionHandler::~QUmlExceptionHandler()
QModelingElement *QUmlExceptionHandler::clone() const
{
QUmlExceptionHandler *c = new QUmlExceptionHandler;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlexecutablenode.cpp b/src/uml/qumlexecutablenode.cpp
index e013bc22..b242efd2 100644
--- a/src/uml/qumlexecutablenode.cpp
+++ b/src/uml/qumlexecutablenode.cpp
@@ -90,6 +90,8 @@ QUmlExecutableNode::~QUmlExecutableNode()
QModelingElement *QUmlExecutableNode::clone() const
{
QUmlExecutableNode *c = new QUmlExecutableNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexecutionenvironment.cpp b/src/uml/qumlexecutionenvironment.cpp
index 98cca5a1..6973e98d 100644
--- a/src/uml/qumlexecutionenvironment.cpp
+++ b/src/uml/qumlexecutionenvironment.cpp
@@ -114,6 +114,8 @@ QUmlExecutionEnvironment::~QUmlExecutionEnvironment()
QModelingElement *QUmlExecutionEnvironment::clone() const
{
QUmlExecutionEnvironment *c = new QUmlExecutionEnvironment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexecutionoccurrencespecification.cpp b/src/uml/qumlexecutionoccurrencespecification.cpp
index 521847f9..27d0280f 100644
--- a/src/uml/qumlexecutionoccurrencespecification.cpp
+++ b/src/uml/qumlexecutionoccurrencespecification.cpp
@@ -90,6 +90,8 @@ QUmlExecutionOccurrenceSpecification::~QUmlExecutionOccurrenceSpecification()
QModelingElement *QUmlExecutionOccurrenceSpecification::clone() const
{
QUmlExecutionOccurrenceSpecification *c = new QUmlExecutionOccurrenceSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexecutionspecification.cpp b/src/uml/qumlexecutionspecification.cpp
index 6c84e7d3..8520b83b 100644
--- a/src/uml/qumlexecutionspecification.cpp
+++ b/src/uml/qumlexecutionspecification.cpp
@@ -88,6 +88,8 @@ QUmlExecutionSpecification::~QUmlExecutionSpecification()
QModelingElement *QUmlExecutionSpecification::clone() const
{
QUmlExecutionSpecification *c = new QUmlExecutionSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexpansionnode.cpp b/src/uml/qumlexpansionnode.cpp
index c957f81d..4f3ce884 100644
--- a/src/uml/qumlexpansionnode.cpp
+++ b/src/uml/qumlexpansionnode.cpp
@@ -99,6 +99,8 @@ QUmlExpansionNode::~QUmlExpansionNode()
QModelingElement *QUmlExpansionNode::clone() const
{
QUmlExpansionNode *c = new QUmlExpansionNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexpansionregion.cpp b/src/uml/qumlexpansionregion.cpp
index 88c1e848..3670be64 100644
--- a/src/uml/qumlexpansionregion.cpp
+++ b/src/uml/qumlexpansionregion.cpp
@@ -102,6 +102,8 @@ QUmlExpansionRegion::~QUmlExpansionRegion()
QModelingElement *QUmlExpansionRegion::clone() const
{
QUmlExpansionRegion *c = new QUmlExpansionRegion;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlexpression.cpp b/src/uml/qumlexpression.cpp
index 2863ea60..5d62e9a5 100644
--- a/src/uml/qumlexpression.cpp
+++ b/src/uml/qumlexpression.cpp
@@ -86,6 +86,8 @@ QUmlExpression::~QUmlExpression()
QModelingElement *QUmlExpression::clone() const
{
QUmlExpression *c = new QUmlExpression;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlextend.cpp b/src/uml/qumlextend.cpp
index 9d6a5411..8ecd5c3a 100644
--- a/src/uml/qumlextend.cpp
+++ b/src/uml/qumlextend.cpp
@@ -88,6 +88,8 @@ QUmlExtend::~QUmlExtend()
QModelingElement *QUmlExtend::clone() const
{
QUmlExtend *c = new QUmlExtend;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlextension.cpp b/src/uml/qumlextension.cpp
index 2958b5cd..7585ac5a 100644
--- a/src/uml/qumlextension.cpp
+++ b/src/uml/qumlextension.cpp
@@ -107,6 +107,8 @@ QUmlExtension::~QUmlExtension()
QModelingElement *QUmlExtension::clone() const
{
QUmlExtension *c = new QUmlExtension;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlextensionend.cpp b/src/uml/qumlextensionend.cpp
index 15baae1a..fdb30590 100644
--- a/src/uml/qumlextensionend.cpp
+++ b/src/uml/qumlextensionend.cpp
@@ -101,6 +101,8 @@ QUmlExtensionEnd::~QUmlExtensionEnd()
QModelingElement *QUmlExtensionEnd::clone() const
{
QUmlExtensionEnd *c = new QUmlExtensionEnd;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlextensionpoint.cpp b/src/uml/qumlextensionpoint.cpp
index 4f4a6a44..dd2e9308 100644
--- a/src/uml/qumlextensionpoint.cpp
+++ b/src/uml/qumlextensionpoint.cpp
@@ -86,6 +86,8 @@ QUmlExtensionPoint::~QUmlExtensionPoint()
QModelingElement *QUmlExtensionPoint::clone() const
{
QUmlExtensionPoint *c = new QUmlExtensionPoint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlfeature.cpp b/src/uml/qumlfeature.cpp
index c80ac95d..b7723b7e 100644
--- a/src/uml/qumlfeature.cpp
+++ b/src/uml/qumlfeature.cpp
@@ -83,6 +83,8 @@ QUmlFeature::~QUmlFeature()
QModelingElement *QUmlFeature::clone() const
{
QUmlFeature *c = new QUmlFeature;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlfinalnode.cpp b/src/uml/qumlfinalnode.cpp
index 9207a788..e9033fba 100644
--- a/src/uml/qumlfinalnode.cpp
+++ b/src/uml/qumlfinalnode.cpp
@@ -90,6 +90,8 @@ QUmlFinalNode::~QUmlFinalNode()
QModelingElement *QUmlFinalNode::clone() const
{
QUmlFinalNode *c = new QUmlFinalNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlfinalstate.cpp b/src/uml/qumlfinalstate.cpp
index 7ada8332..561fbfa6 100644
--- a/src/uml/qumlfinalstate.cpp
+++ b/src/uml/qumlfinalstate.cpp
@@ -97,6 +97,8 @@ QUmlFinalState::~QUmlFinalState()
QModelingElement *QUmlFinalState::clone() const
{
QUmlFinalState *c = new QUmlFinalState;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlflowfinalnode.cpp b/src/uml/qumlflowfinalnode.cpp
index 2bfff382..0b5c7eb1 100644
--- a/src/uml/qumlflowfinalnode.cpp
+++ b/src/uml/qumlflowfinalnode.cpp
@@ -92,6 +92,8 @@ QUmlFlowFinalNode::~QUmlFlowFinalNode()
QModelingElement *QUmlFlowFinalNode::clone() const
{
QUmlFlowFinalNode *c = new QUmlFlowFinalNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlforknode.cpp b/src/uml/qumlforknode.cpp
index b44b83d1..c830705a 100644
--- a/src/uml/qumlforknode.cpp
+++ b/src/uml/qumlforknode.cpp
@@ -92,6 +92,8 @@ QUmlForkNode::~QUmlForkNode()
QModelingElement *QUmlForkNode::clone() const
{
QUmlForkNode *c = new QUmlForkNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlfunctionbehavior.cpp b/src/uml/qumlfunctionbehavior.cpp
index 52e3f672..8274b7f1 100644
--- a/src/uml/qumlfunctionbehavior.cpp
+++ b/src/uml/qumlfunctionbehavior.cpp
@@ -117,6 +117,8 @@ QUmlFunctionBehavior::~QUmlFunctionBehavior()
QModelingElement *QUmlFunctionBehavior::clone() const
{
QUmlFunctionBehavior *c = new QUmlFunctionBehavior;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlgate.cpp b/src/uml/qumlgate.cpp
index 0fcde83a..c6280522 100644
--- a/src/uml/qumlgate.cpp
+++ b/src/uml/qumlgate.cpp
@@ -84,6 +84,8 @@ QUmlGate::~QUmlGate()
QModelingElement *QUmlGate::clone() const
{
QUmlGate *c = new QUmlGate;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlgeneralization.cpp b/src/uml/qumlgeneralization.cpp
index 40e1bc0e..a19dd7de 100644
--- a/src/uml/qumlgeneralization.cpp
+++ b/src/uml/qumlgeneralization.cpp
@@ -83,6 +83,8 @@ QUmlGeneralization::~QUmlGeneralization()
QModelingElement *QUmlGeneralization::clone() const
{
QUmlGeneralization *c = new QUmlGeneralization;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setSubstitutable(isSubstitutable());
diff --git a/src/uml/qumlgeneralizationset.cpp b/src/uml/qumlgeneralizationset.cpp
index 2a00b984..52219fba 100644
--- a/src/uml/qumlgeneralizationset.cpp
+++ b/src/uml/qumlgeneralizationset.cpp
@@ -90,6 +90,8 @@ QUmlGeneralizationSet::~QUmlGeneralizationSet()
QModelingElement *QUmlGeneralizationSet::clone() const
{
QUmlGeneralizationSet *c = new QUmlGeneralizationSet;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlgeneralordering.cpp b/src/uml/qumlgeneralordering.cpp
index 8152224e..4404c576 100644
--- a/src/uml/qumlgeneralordering.cpp
+++ b/src/uml/qumlgeneralordering.cpp
@@ -85,6 +85,8 @@ QUmlGeneralOrdering::~QUmlGeneralOrdering()
QModelingElement *QUmlGeneralOrdering::clone() const
{
QUmlGeneralOrdering *c = new QUmlGeneralOrdering;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlimage.cpp b/src/uml/qumlimage.cpp
index 48c255ab..c8c2dfd9 100644
--- a/src/uml/qumlimage.cpp
+++ b/src/uml/qumlimage.cpp
@@ -77,6 +77,8 @@ QUmlImage::~QUmlImage()
QModelingElement *QUmlImage::clone() const
{
QUmlImage *c = new QUmlImage;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setContent(content());
diff --git a/src/uml/qumlinclude.cpp b/src/uml/qumlinclude.cpp
index 4a8d06a3..420d534e 100644
--- a/src/uml/qumlinclude.cpp
+++ b/src/uml/qumlinclude.cpp
@@ -85,6 +85,8 @@ QUmlInclude::~QUmlInclude()
QModelingElement *QUmlInclude::clone() const
{
QUmlInclude *c = new QUmlInclude;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinformationflow.cpp b/src/uml/qumlinformationflow.cpp
index ed587a8f..e935537f 100644
--- a/src/uml/qumlinformationflow.cpp
+++ b/src/uml/qumlinformationflow.cpp
@@ -90,6 +90,8 @@ QUmlInformationFlow::~QUmlInformationFlow()
QModelingElement *QUmlInformationFlow::clone() const
{
QUmlInformationFlow *c = new QUmlInformationFlow;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinformationitem.cpp b/src/uml/qumlinformationitem.cpp
index c6fa7799..f85cc513 100644
--- a/src/uml/qumlinformationitem.cpp
+++ b/src/uml/qumlinformationitem.cpp
@@ -102,6 +102,8 @@ QUmlInformationItem::~QUmlInformationItem()
QModelingElement *QUmlInformationItem::clone() const
{
QUmlInformationItem *c = new QUmlInformationItem;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinitialnode.cpp b/src/uml/qumlinitialnode.cpp
index ee354c5a..92e5099a 100644
--- a/src/uml/qumlinitialnode.cpp
+++ b/src/uml/qumlinitialnode.cpp
@@ -92,6 +92,8 @@ QUmlInitialNode::~QUmlInitialNode()
QModelingElement *QUmlInitialNode::clone() const
{
QUmlInitialNode *c = new QUmlInitialNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinputpin.cpp b/src/uml/qumlinputpin.cpp
index c9b5bec0..c7c6865c 100644
--- a/src/uml/qumlinputpin.cpp
+++ b/src/uml/qumlinputpin.cpp
@@ -97,6 +97,8 @@ QUmlInputPin::~QUmlInputPin()
QModelingElement *QUmlInputPin::clone() const
{
QUmlInputPin *c = new QUmlInputPin;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlinstancespecification.cpp b/src/uml/qumlinstancespecification.cpp
index 34f73f62..e76df6c3 100644
--- a/src/uml/qumlinstancespecification.cpp
+++ b/src/uml/qumlinstancespecification.cpp
@@ -90,6 +90,8 @@ QUmlInstanceSpecification::~QUmlInstanceSpecification()
QModelingElement *QUmlInstanceSpecification::clone() const
{
QUmlInstanceSpecification *c = new QUmlInstanceSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinstancevalue.cpp b/src/uml/qumlinstancevalue.cpp
index 3e52b021..a541e9d4 100644
--- a/src/uml/qumlinstancevalue.cpp
+++ b/src/uml/qumlinstancevalue.cpp
@@ -88,6 +88,8 @@ QUmlInstanceValue::~QUmlInstanceValue()
QModelingElement *QUmlInstanceValue::clone() const
{
QUmlInstanceValue *c = new QUmlInstanceValue;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinteraction.cpp b/src/uml/qumlinteraction.cpp
index 8395d373..12305598 100644
--- a/src/uml/qumlinteraction.cpp
+++ b/src/uml/qumlinteraction.cpp
@@ -121,6 +121,8 @@ QUmlInteraction::~QUmlInteraction()
QModelingElement *QUmlInteraction::clone() const
{
QUmlInteraction *c = new QUmlInteraction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinteractionconstraint.cpp b/src/uml/qumlinteractionconstraint.cpp
index f40021c0..ae9fd82d 100644
--- a/src/uml/qumlinteractionconstraint.cpp
+++ b/src/uml/qumlinteractionconstraint.cpp
@@ -89,6 +89,8 @@ QUmlInteractionConstraint::~QUmlInteractionConstraint()
QModelingElement *QUmlInteractionConstraint::clone() const
{
QUmlInteractionConstraint *c = new QUmlInteractionConstraint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinteractionfragment.cpp b/src/uml/qumlinteractionfragment.cpp
index f546ee3f..aea2c18d 100644
--- a/src/uml/qumlinteractionfragment.cpp
+++ b/src/uml/qumlinteractionfragment.cpp
@@ -86,6 +86,8 @@ QUmlInteractionFragment::~QUmlInteractionFragment()
QModelingElement *QUmlInteractionFragment::clone() const
{
QUmlInteractionFragment *c = new QUmlInteractionFragment;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinteractionoperand.cpp b/src/uml/qumlinteractionoperand.cpp
index a27f3095..76167745 100644
--- a/src/uml/qumlinteractionoperand.cpp
+++ b/src/uml/qumlinteractionoperand.cpp
@@ -91,6 +91,8 @@ QUmlInteractionOperand::~QUmlInteractionOperand()
QModelingElement *QUmlInteractionOperand::clone() const
{
QUmlInteractionOperand *c = new QUmlInteractionOperand;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinteractionuse.cpp b/src/uml/qumlinteractionuse.cpp
index 5de04ad4..2546999a 100644
--- a/src/uml/qumlinteractionuse.cpp
+++ b/src/uml/qumlinteractionuse.cpp
@@ -93,6 +93,8 @@ QUmlInteractionUse::~QUmlInteractionUse()
QModelingElement *QUmlInteractionUse::clone() const
{
QUmlInteractionUse *c = new QUmlInteractionUse;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinterface.cpp b/src/uml/qumlinterface.cpp
index 0058f1b5..64691c34 100644
--- a/src/uml/qumlinterface.cpp
+++ b/src/uml/qumlinterface.cpp
@@ -106,6 +106,8 @@ QUmlInterface::~QUmlInterface()
QModelingElement *QUmlInterface::clone() const
{
QUmlInterface *c = new QUmlInterface;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinterfacerealization.cpp b/src/uml/qumlinterfacerealization.cpp
index 37610318..cd8fbdf4 100644
--- a/src/uml/qumlinterfacerealization.cpp
+++ b/src/uml/qumlinterfacerealization.cpp
@@ -91,6 +91,8 @@ QUmlInterfaceRealization::~QUmlInterfaceRealization()
QModelingElement *QUmlInterfaceRealization::clone() const
{
QUmlInterfaceRealization *c = new QUmlInterfaceRealization;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinterruptibleactivityregion.cpp b/src/uml/qumlinterruptibleactivityregion.cpp
index 81d56115..956d7e83 100644
--- a/src/uml/qumlinterruptibleactivityregion.cpp
+++ b/src/uml/qumlinterruptibleactivityregion.cpp
@@ -86,6 +86,8 @@ QUmlInterruptibleActivityRegion::~QUmlInterruptibleActivityRegion()
QModelingElement *QUmlInterruptibleActivityRegion::clone() const
{
QUmlInterruptibleActivityRegion *c = new QUmlInterruptibleActivityRegion;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinterval.cpp b/src/uml/qumlinterval.cpp
index de45e7dd..ab7c75ac 100644
--- a/src/uml/qumlinterval.cpp
+++ b/src/uml/qumlinterval.cpp
@@ -88,6 +88,8 @@ QUmlInterval::~QUmlInterval()
QModelingElement *QUmlInterval::clone() const
{
QUmlInterval *c = new QUmlInterval;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlintervalconstraint.cpp b/src/uml/qumlintervalconstraint.cpp
index 17a9724f..d1660457 100644
--- a/src/uml/qumlintervalconstraint.cpp
+++ b/src/uml/qumlintervalconstraint.cpp
@@ -89,6 +89,8 @@ QUmlIntervalConstraint::~QUmlIntervalConstraint()
QModelingElement *QUmlIntervalConstraint::clone() const
{
QUmlIntervalConstraint *c = new QUmlIntervalConstraint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlinvocationaction.cpp b/src/uml/qumlinvocationaction.cpp
index 5d34aac6..5cecbd8e 100644
--- a/src/uml/qumlinvocationaction.cpp
+++ b/src/uml/qumlinvocationaction.cpp
@@ -96,6 +96,8 @@ QUmlInvocationAction::~QUmlInvocationAction()
QModelingElement *QUmlInvocationAction::clone() const
{
QUmlInvocationAction *c = new QUmlInvocationAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumljoinnode.cpp b/src/uml/qumljoinnode.cpp
index 52866200..34c567cf 100644
--- a/src/uml/qumljoinnode.cpp
+++ b/src/uml/qumljoinnode.cpp
@@ -95,6 +95,8 @@ QUmlJoinNode::~QUmlJoinNode()
QModelingElement *QUmlJoinNode::clone() const
{
QUmlJoinNode *c = new QUmlJoinNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumllifeline.cpp b/src/uml/qumllifeline.cpp
index 18598ede..1f3fc35f 100644
--- a/src/uml/qumllifeline.cpp
+++ b/src/uml/qumllifeline.cpp
@@ -91,6 +91,8 @@ QUmlLifeline::~QUmlLifeline()
QModelingElement *QUmlLifeline::clone() const
{
QUmlLifeline *c = new QUmlLifeline;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumllinkaction.cpp b/src/uml/qumllinkaction.cpp
index e14c88df..78b17e7f 100644
--- a/src/uml/qumllinkaction.cpp
+++ b/src/uml/qumllinkaction.cpp
@@ -96,6 +96,8 @@ QUmlLinkAction::~QUmlLinkAction()
QModelingElement *QUmlLinkAction::clone() const
{
QUmlLinkAction *c = new QUmlLinkAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumllinkendcreationdata.cpp b/src/uml/qumllinkendcreationdata.cpp
index 05730f50..c1f8decf 100644
--- a/src/uml/qumllinkendcreationdata.cpp
+++ b/src/uml/qumllinkendcreationdata.cpp
@@ -84,6 +84,8 @@ QUmlLinkEndCreationData::~QUmlLinkEndCreationData()
QModelingElement *QUmlLinkEndCreationData::clone() const
{
QUmlLinkEndCreationData *c = new QUmlLinkEndCreationData;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlQualifierValue *element, qualifiers())
diff --git a/src/uml/qumllinkenddata.cpp b/src/uml/qumllinkenddata.cpp
index 9633ecbb..c4c71688 100644
--- a/src/uml/qumllinkenddata.cpp
+++ b/src/uml/qumllinkenddata.cpp
@@ -82,6 +82,8 @@ QUmlLinkEndData::~QUmlLinkEndData()
QModelingElement *QUmlLinkEndData::clone() const
{
QUmlLinkEndData *c = new QUmlLinkEndData;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlQualifierValue *element, qualifiers())
diff --git a/src/uml/qumllinkenddestructiondata.cpp b/src/uml/qumllinkenddestructiondata.cpp
index b9e3df56..f9f87117 100644
--- a/src/uml/qumllinkenddestructiondata.cpp
+++ b/src/uml/qumllinkenddestructiondata.cpp
@@ -84,6 +84,8 @@ QUmlLinkEndDestructionData::~QUmlLinkEndDestructionData()
QModelingElement *QUmlLinkEndDestructionData::clone() const
{
QUmlLinkEndDestructionData *c = new QUmlLinkEndDestructionData;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlQualifierValue *element, qualifiers())
diff --git a/src/uml/qumlliteralboolean.cpp b/src/uml/qumlliteralboolean.cpp
index f8b1da47..29990a88 100644
--- a/src/uml/qumlliteralboolean.cpp
+++ b/src/uml/qumlliteralboolean.cpp
@@ -87,6 +87,8 @@ QUmlLiteralBoolean::~QUmlLiteralBoolean()
QModelingElement *QUmlLiteralBoolean::clone() const
{
QUmlLiteralBoolean *c = new QUmlLiteralBoolean;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralinteger.cpp b/src/uml/qumlliteralinteger.cpp
index edbeb1fe..7049efdd 100644
--- a/src/uml/qumlliteralinteger.cpp
+++ b/src/uml/qumlliteralinteger.cpp
@@ -87,6 +87,8 @@ QUmlLiteralInteger::~QUmlLiteralInteger()
QModelingElement *QUmlLiteralInteger::clone() const
{
QUmlLiteralInteger *c = new QUmlLiteralInteger;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralnull.cpp b/src/uml/qumlliteralnull.cpp
index b0ce9352..561f3442 100644
--- a/src/uml/qumlliteralnull.cpp
+++ b/src/uml/qumlliteralnull.cpp
@@ -86,6 +86,8 @@ QUmlLiteralNull::~QUmlLiteralNull()
QModelingElement *QUmlLiteralNull::clone() const
{
QUmlLiteralNull *c = new QUmlLiteralNull;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralreal.cpp b/src/uml/qumlliteralreal.cpp
index 86624788..f0127bde 100644
--- a/src/uml/qumlliteralreal.cpp
+++ b/src/uml/qumlliteralreal.cpp
@@ -86,6 +86,8 @@ QUmlLiteralReal::~QUmlLiteralReal()
QModelingElement *QUmlLiteralReal::clone() const
{
QUmlLiteralReal *c = new QUmlLiteralReal;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralspecification.cpp b/src/uml/qumlliteralspecification.cpp
index c6db4183..3c4c214f 100644
--- a/src/uml/qumlliteralspecification.cpp
+++ b/src/uml/qumlliteralspecification.cpp
@@ -84,6 +84,8 @@ QUmlLiteralSpecification::~QUmlLiteralSpecification()
QModelingElement *QUmlLiteralSpecification::clone() const
{
QUmlLiteralSpecification *c = new QUmlLiteralSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralstring.cpp b/src/uml/qumlliteralstring.cpp
index a5c1d18e..e27b3525 100644
--- a/src/uml/qumlliteralstring.cpp
+++ b/src/uml/qumlliteralstring.cpp
@@ -86,6 +86,8 @@ QUmlLiteralString::~QUmlLiteralString()
QModelingElement *QUmlLiteralString::clone() const
{
QUmlLiteralString *c = new QUmlLiteralString;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlliteralunlimitednatural.cpp b/src/uml/qumlliteralunlimitednatural.cpp
index 02db03f6..4b641a4b 100644
--- a/src/uml/qumlliteralunlimitednatural.cpp
+++ b/src/uml/qumlliteralunlimitednatural.cpp
@@ -86,6 +86,8 @@ QUmlLiteralUnlimitedNatural::~QUmlLiteralUnlimitedNatural()
QModelingElement *QUmlLiteralUnlimitedNatural::clone() const
{
QUmlLiteralUnlimitedNatural *c = new QUmlLiteralUnlimitedNatural;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlloopnode.cpp b/src/uml/qumlloopnode.cpp
index c55b2dae..f5f939ef 100644
--- a/src/uml/qumlloopnode.cpp
+++ b/src/uml/qumlloopnode.cpp
@@ -103,6 +103,8 @@ QUmlLoopNode::~QUmlLoopNode()
QModelingElement *QUmlLoopNode::clone() const
{
QUmlLoopNode *c = new QUmlLoopNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmanifestation.cpp b/src/uml/qumlmanifestation.cpp
index 067925bc..795353a5 100644
--- a/src/uml/qumlmanifestation.cpp
+++ b/src/uml/qumlmanifestation.cpp
@@ -89,6 +89,8 @@ QUmlManifestation::~QUmlManifestation()
QModelingElement *QUmlManifestation::clone() const
{
QUmlManifestation *c = new QUmlManifestation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmergenode.cpp b/src/uml/qumlmergenode.cpp
index dc071225..d2920782 100644
--- a/src/uml/qumlmergenode.cpp
+++ b/src/uml/qumlmergenode.cpp
@@ -92,6 +92,8 @@ QUmlMergeNode::~QUmlMergeNode()
QModelingElement *QUmlMergeNode::clone() const
{
QUmlMergeNode *c = new QUmlMergeNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmessage.cpp b/src/uml/qumlmessage.cpp
index 5f933e4c..84c63dfe 100644
--- a/src/uml/qumlmessage.cpp
+++ b/src/uml/qumlmessage.cpp
@@ -92,6 +92,8 @@ QUmlMessage::~QUmlMessage()
QModelingElement *QUmlMessage::clone() const
{
QUmlMessage *c = new QUmlMessage;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmessageend.cpp b/src/uml/qumlmessageend.cpp
index 980cc044..39714d49 100644
--- a/src/uml/qumlmessageend.cpp
+++ b/src/uml/qumlmessageend.cpp
@@ -82,6 +82,8 @@ QUmlMessageEnd::~QUmlMessageEnd()
QModelingElement *QUmlMessageEnd::clone() const
{
QUmlMessageEnd *c = new QUmlMessageEnd;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmessageevent.cpp b/src/uml/qumlmessageevent.cpp
index 1c5dd98b..6f0c73e8 100644
--- a/src/uml/qumlmessageevent.cpp
+++ b/src/uml/qumlmessageevent.cpp
@@ -83,6 +83,8 @@ QUmlMessageEvent::~QUmlMessageEvent()
QModelingElement *QUmlMessageEvent::clone() const
{
QUmlMessageEvent *c = new QUmlMessageEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmessageoccurrencespecification.cpp b/src/uml/qumlmessageoccurrencespecification.cpp
index bdab217a..993fd384 100644
--- a/src/uml/qumlmessageoccurrencespecification.cpp
+++ b/src/uml/qumlmessageoccurrencespecification.cpp
@@ -89,6 +89,8 @@ QUmlMessageOccurrenceSpecification::~QUmlMessageOccurrenceSpecification()
QModelingElement *QUmlMessageOccurrenceSpecification::clone() const
{
QUmlMessageOccurrenceSpecification *c = new QUmlMessageOccurrenceSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmodel.cpp b/src/uml/qumlmodel.cpp
index 15be8172..df35196e 100644
--- a/src/uml/qumlmodel.cpp
+++ b/src/uml/qumlmodel.cpp
@@ -96,6 +96,8 @@ QUmlModel::~QUmlModel()
QModelingElement *QUmlModel::clone() const
{
QUmlModel *c = new QUmlModel;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlmultiplicityelement.cpp b/src/uml/qumlmultiplicityelement.cpp
index f9f5c44e..cb7f49a4 100644
--- a/src/uml/qumlmultiplicityelement.cpp
+++ b/src/uml/qumlmultiplicityelement.cpp
@@ -80,6 +80,8 @@ QUmlMultiplicityElement::~QUmlMultiplicityElement()
QModelingElement *QUmlMultiplicityElement::clone() const
{
QUmlMultiplicityElement *c = new QUmlMultiplicityElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlnamedelement.cpp b/src/uml/qumlnamedelement.cpp
index 9b4d1eb6..69130964 100644
--- a/src/uml/qumlnamedelement.cpp
+++ b/src/uml/qumlnamedelement.cpp
@@ -82,6 +82,8 @@ QUmlNamedElement::~QUmlNamedElement()
QModelingElement *QUmlNamedElement::clone() const
{
QUmlNamedElement *c = new QUmlNamedElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlnamespace.cpp b/src/uml/qumlnamespace.cpp
index 279b7a69..18dea5db 100644
--- a/src/uml/qumlnamespace.cpp
+++ b/src/uml/qumlnamespace.cpp
@@ -83,6 +83,8 @@ QUmlNamespace::~QUmlNamespace()
QModelingElement *QUmlNamespace::clone() const
{
QUmlNamespace *c = new QUmlNamespace;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlnode.cpp b/src/uml/qumlnode.cpp
index 3ccac6fd..184a5b0e 100644
--- a/src/uml/qumlnode.cpp
+++ b/src/uml/qumlnode.cpp
@@ -113,6 +113,8 @@ QUmlNode::~QUmlNode()
QModelingElement *QUmlNode::clone() const
{
QUmlNode *c = new QUmlNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlobjectflow.cpp b/src/uml/qumlobjectflow.cpp
index f5cfd18a..f4a1dd75 100644
--- a/src/uml/qumlobjectflow.cpp
+++ b/src/uml/qumlobjectflow.cpp
@@ -97,6 +97,8 @@ QUmlObjectFlow::~QUmlObjectFlow()
QModelingElement *QUmlObjectFlow::clone() const
{
QUmlObjectFlow *c = new QUmlObjectFlow;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlobjectnode.cpp b/src/uml/qumlobjectnode.cpp
index b3879f11..82bbad1c 100644
--- a/src/uml/qumlobjectnode.cpp
+++ b/src/uml/qumlobjectnode.cpp
@@ -97,6 +97,8 @@ QUmlObjectNode::~QUmlObjectNode()
QModelingElement *QUmlObjectNode::clone() const
{
QUmlObjectNode *c = new QUmlObjectNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlobservation.cpp b/src/uml/qumlobservation.cpp
index b9f1bc71..3b17f78b 100644
--- a/src/uml/qumlobservation.cpp
+++ b/src/uml/qumlobservation.cpp
@@ -83,6 +83,8 @@ QUmlObservation::~QUmlObservation()
QModelingElement *QUmlObservation::clone() const
{
QUmlObservation *c = new QUmlObservation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumloccurrencespecification.cpp b/src/uml/qumloccurrencespecification.cpp
index 603e7d85..bc01d926 100644
--- a/src/uml/qumloccurrencespecification.cpp
+++ b/src/uml/qumloccurrencespecification.cpp
@@ -88,6 +88,8 @@ QUmlOccurrenceSpecification::~QUmlOccurrenceSpecification()
QModelingElement *QUmlOccurrenceSpecification::clone() const
{
QUmlOccurrenceSpecification *c = new QUmlOccurrenceSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlopaqueaction.cpp b/src/uml/qumlopaqueaction.cpp
index cafd0a73..02654730 100644
--- a/src/uml/qumlopaqueaction.cpp
+++ b/src/uml/qumlopaqueaction.cpp
@@ -96,6 +96,8 @@ QUmlOpaqueAction::~QUmlOpaqueAction()
QModelingElement *QUmlOpaqueAction::clone() const
{
QUmlOpaqueAction *c = new QUmlOpaqueAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlopaquebehavior.cpp b/src/uml/qumlopaquebehavior.cpp
index ca885bc9..3c5f7433 100644
--- a/src/uml/qumlopaquebehavior.cpp
+++ b/src/uml/qumlopaquebehavior.cpp
@@ -115,6 +115,8 @@ QUmlOpaqueBehavior::~QUmlOpaqueBehavior()
QModelingElement *QUmlOpaqueBehavior::clone() const
{
QUmlOpaqueBehavior *c = new QUmlOpaqueBehavior;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlopaqueexpression.cpp b/src/uml/qumlopaqueexpression.cpp
index b12b4302..3c462b3c 100644
--- a/src/uml/qumlopaqueexpression.cpp
+++ b/src/uml/qumlopaqueexpression.cpp
@@ -89,6 +89,8 @@ QUmlOpaqueExpression::~QUmlOpaqueExpression()
QModelingElement *QUmlOpaqueExpression::clone() const
{
QUmlOpaqueExpression *c = new QUmlOpaqueExpression;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumloperation.cpp b/src/uml/qumloperation.cpp
index 2e140198..409b5739 100644
--- a/src/uml/qumloperation.cpp
+++ b/src/uml/qumloperation.cpp
@@ -106,6 +106,8 @@ QUmlOperation::~QUmlOperation()
QModelingElement *QUmlOperation::clone() const
{
QUmlOperation *c = new QUmlOperation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedTemplateSignature())
diff --git a/src/uml/qumloperationtemplateparameter.cpp b/src/uml/qumloperationtemplateparameter.cpp
index d1b76220..26d2557f 100644
--- a/src/uml/qumloperationtemplateparameter.cpp
+++ b/src/uml/qumloperationtemplateparameter.cpp
@@ -83,6 +83,8 @@ QUmlOperationTemplateParameter::~QUmlOperationTemplateParameter()
QModelingElement *QUmlOperationTemplateParameter::clone() const
{
QUmlOperationTemplateParameter *c = new QUmlOperationTemplateParameter;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedDefault())
diff --git a/src/uml/qumloutputpin.cpp b/src/uml/qumloutputpin.cpp
index 778895a9..d3cdd1be 100644
--- a/src/uml/qumloutputpin.cpp
+++ b/src/uml/qumloutputpin.cpp
@@ -97,6 +97,8 @@ QUmlOutputPin::~QUmlOutputPin()
QModelingElement *QUmlOutputPin::clone() const
{
QUmlOutputPin *c = new QUmlOutputPin;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlpackage.cpp b/src/uml/qumlpackage.cpp
index c969212d..4fc7c7d8 100644
--- a/src/uml/qumlpackage.cpp
+++ b/src/uml/qumlpackage.cpp
@@ -94,6 +94,8 @@ QUmlPackage::~QUmlPackage()
QModelingElement *QUmlPackage::clone() const
{
QUmlPackage *c = new QUmlPackage;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlpackageableelement.cpp b/src/uml/qumlpackageableelement.cpp
index cf4a603c..2e73fac5 100644
--- a/src/uml/qumlpackageableelement.cpp
+++ b/src/uml/qumlpackageableelement.cpp
@@ -82,6 +82,8 @@ QUmlPackageableElement::~QUmlPackageableElement()
QModelingElement *QUmlPackageableElement::clone() const
{
QUmlPackageableElement *c = new QUmlPackageableElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlpackageimport.cpp b/src/uml/qumlpackageimport.cpp
index bde15820..4023a6dc 100644
--- a/src/uml/qumlpackageimport.cpp
+++ b/src/uml/qumlpackageimport.cpp
@@ -83,6 +83,8 @@ QUmlPackageImport::~QUmlPackageImport()
QModelingElement *QUmlPackageImport::clone() const
{
QUmlPackageImport *c = new QUmlPackageImport;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setVisibility(visibility());
diff --git a/src/uml/qumlpackagemerge.cpp b/src/uml/qumlpackagemerge.cpp
index 4c7dd5a6..33069794 100644
--- a/src/uml/qumlpackagemerge.cpp
+++ b/src/uml/qumlpackagemerge.cpp
@@ -81,6 +81,8 @@ QUmlPackageMerge::~QUmlPackageMerge()
QModelingElement *QUmlPackageMerge::clone() const
{
QUmlPackageMerge *c = new QUmlPackageMerge;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlparameter.cpp b/src/uml/qumlparameter.cpp
index ede76539..9704ce5a 100644
--- a/src/uml/qumlparameter.cpp
+++ b/src/uml/qumlparameter.cpp
@@ -97,6 +97,8 @@ QUmlParameter::~QUmlParameter()
QModelingElement *QUmlParameter::clone() const
{
QUmlParameter *c = new QUmlParameter;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlparameterableelement.cpp b/src/uml/qumlparameterableelement.cpp
index fd188157..7604b73a 100644
--- a/src/uml/qumlparameterableelement.cpp
+++ b/src/uml/qumlparameterableelement.cpp
@@ -78,6 +78,8 @@ QUmlParameterableElement::~QUmlParameterableElement()
QModelingElement *QUmlParameterableElement::clone() const
{
QUmlParameterableElement *c = new QUmlParameterableElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlparameterset.cpp b/src/uml/qumlparameterset.cpp
index e48356c6..caed9a66 100644
--- a/src/uml/qumlparameterset.cpp
+++ b/src/uml/qumlparameterset.cpp
@@ -84,6 +84,8 @@ QUmlParameterSet::~QUmlParameterSet()
QModelingElement *QUmlParameterSet::clone() const
{
QUmlParameterSet *c = new QUmlParameterSet;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlpartdecomposition.cpp b/src/uml/qumlpartdecomposition.cpp
index 559d363f..9a6d415f 100644
--- a/src/uml/qumlpartdecomposition.cpp
+++ b/src/uml/qumlpartdecomposition.cpp
@@ -91,6 +91,8 @@ QUmlPartDecomposition::~QUmlPartDecomposition()
QModelingElement *QUmlPartDecomposition::clone() const
{
QUmlPartDecomposition *c = new QUmlPartDecomposition;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlpin.cpp b/src/uml/qumlpin.cpp
index 39ef1e06..67335651 100644
--- a/src/uml/qumlpin.cpp
+++ b/src/uml/qumlpin.cpp
@@ -95,6 +95,8 @@ QUmlPin::~QUmlPin()
QModelingElement *QUmlPin::clone() const
{
QUmlPin *c = new QUmlPin;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlport.cpp b/src/uml/qumlport.cpp
index 943894d7..9b85b401 100644
--- a/src/uml/qumlport.cpp
+++ b/src/uml/qumlport.cpp
@@ -107,6 +107,8 @@ QUmlPort::~QUmlPort()
QModelingElement *QUmlPort::clone() const
{
QUmlPort *c = new QUmlPort;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlprimitivetype.cpp b/src/uml/qumlprimitivetype.cpp
index b11dd67d..83976a8c 100644
--- a/src/uml/qumlprimitivetype.cpp
+++ b/src/uml/qumlprimitivetype.cpp
@@ -105,6 +105,8 @@ QUmlPrimitiveType::~QUmlPrimitiveType()
QModelingElement *QUmlPrimitiveType::clone() const
{
QUmlPrimitiveType *c = new QUmlPrimitiveType;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlprofile.cpp b/src/uml/qumlprofile.cpp
index 4d2fb93a..d3b02e56 100644
--- a/src/uml/qumlprofile.cpp
+++ b/src/uml/qumlprofile.cpp
@@ -95,6 +95,8 @@ QUmlProfile::~QUmlProfile()
QModelingElement *QUmlProfile::clone() const
{
QUmlProfile *c = new QUmlProfile;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlprofileapplication.cpp b/src/uml/qumlprofileapplication.cpp
index 8e765037..3882affb 100644
--- a/src/uml/qumlprofileapplication.cpp
+++ b/src/uml/qumlprofileapplication.cpp
@@ -83,6 +83,8 @@ QUmlProfileApplication::~QUmlProfileApplication()
QModelingElement *QUmlProfileApplication::clone() const
{
QUmlProfileApplication *c = new QUmlProfileApplication;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setStrict(isStrict());
diff --git a/src/uml/qumlproperty.cpp b/src/uml/qumlproperty.cpp
index cf481efc..7ce1eeb4 100644
--- a/src/uml/qumlproperty.cpp
+++ b/src/uml/qumlproperty.cpp
@@ -110,6 +110,8 @@ QUmlProperty::~QUmlProperty()
QModelingElement *QUmlProperty::clone() const
{
QUmlProperty *c = new QUmlProperty;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlprotocolconformance.cpp b/src/uml/qumlprotocolconformance.cpp
index da273f5c..a2218ced 100644
--- a/src/uml/qumlprotocolconformance.cpp
+++ b/src/uml/qumlprotocolconformance.cpp
@@ -81,6 +81,8 @@ QUmlProtocolConformance::~QUmlProtocolConformance()
QModelingElement *QUmlProtocolConformance::clone() const
{
QUmlProtocolConformance *c = new QUmlProtocolConformance;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlprotocolstatemachine.cpp b/src/uml/qumlprotocolstatemachine.cpp
index a648dab1..44a48f74 100644
--- a/src/uml/qumlprotocolstatemachine.cpp
+++ b/src/uml/qumlprotocolstatemachine.cpp
@@ -121,6 +121,8 @@ QUmlProtocolStateMachine::~QUmlProtocolStateMachine()
QModelingElement *QUmlProtocolStateMachine::clone() const
{
QUmlProtocolStateMachine *c = new QUmlProtocolStateMachine;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlprotocoltransition.cpp b/src/uml/qumlprotocoltransition.cpp
index 3aa6b99b..b68111ed 100644
--- a/src/uml/qumlprotocoltransition.cpp
+++ b/src/uml/qumlprotocoltransition.cpp
@@ -98,6 +98,8 @@ QUmlProtocolTransition::~QUmlProtocolTransition()
QModelingElement *QUmlProtocolTransition::clone() const
{
QUmlProtocolTransition *c = new QUmlProtocolTransition;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlpseudostate.cpp b/src/uml/qumlpseudostate.cpp
index 0e44b0af..b114ee43 100644
--- a/src/uml/qumlpseudostate.cpp
+++ b/src/uml/qumlpseudostate.cpp
@@ -90,6 +90,8 @@ QUmlPseudostate::~QUmlPseudostate()
QModelingElement *QUmlPseudostate::clone() const
{
QUmlPseudostate *c = new QUmlPseudostate;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlqualifiervalue.cpp b/src/uml/qumlqualifiervalue.cpp
index 226c6917..f1134f86 100644
--- a/src/uml/qumlqualifiervalue.cpp
+++ b/src/uml/qumlqualifiervalue.cpp
@@ -81,6 +81,8 @@ QUmlQualifierValue::~QUmlQualifierValue()
QModelingElement *QUmlQualifierValue::clone() const
{
QUmlQualifierValue *c = new QUmlQualifierValue;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlraiseexceptionaction.cpp b/src/uml/qumlraiseexceptionaction.cpp
index 15aa913f..4998c7b9 100644
--- a/src/uml/qumlraiseexceptionaction.cpp
+++ b/src/uml/qumlraiseexceptionaction.cpp
@@ -97,6 +97,8 @@ QUmlRaiseExceptionAction::~QUmlRaiseExceptionAction()
QModelingElement *QUmlRaiseExceptionAction::clone() const
{
QUmlRaiseExceptionAction *c = new QUmlRaiseExceptionAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadextentaction.cpp b/src/uml/qumlreadextentaction.cpp
index 6b0195b8..a625fbc6 100644
--- a/src/uml/qumlreadextentaction.cpp
+++ b/src/uml/qumlreadextentaction.cpp
@@ -98,6 +98,8 @@ QUmlReadExtentAction::~QUmlReadExtentAction()
QModelingElement *QUmlReadExtentAction::clone() const
{
QUmlReadExtentAction *c = new QUmlReadExtentAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadisclassifiedobjectaction.cpp b/src/uml/qumlreadisclassifiedobjectaction.cpp
index 268e8b3e..2c8b251a 100644
--- a/src/uml/qumlreadisclassifiedobjectaction.cpp
+++ b/src/uml/qumlreadisclassifiedobjectaction.cpp
@@ -100,6 +100,8 @@ QUmlReadIsClassifiedObjectAction::~QUmlReadIsClassifiedObjectAction()
QModelingElement *QUmlReadIsClassifiedObjectAction::clone() const
{
QUmlReadIsClassifiedObjectAction *c = new QUmlReadIsClassifiedObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadlinkaction.cpp b/src/uml/qumlreadlinkaction.cpp
index a2eaca9f..2f3e937e 100644
--- a/src/uml/qumlreadlinkaction.cpp
+++ b/src/uml/qumlreadlinkaction.cpp
@@ -99,6 +99,8 @@ QUmlReadLinkAction::~QUmlReadLinkAction()
QModelingElement *QUmlReadLinkAction::clone() const
{
QUmlReadLinkAction *c = new QUmlReadLinkAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadlinkobjectendaction.cpp b/src/uml/qumlreadlinkobjectendaction.cpp
index 543f973a..1d1dd3b0 100644
--- a/src/uml/qumlreadlinkobjectendaction.cpp
+++ b/src/uml/qumlreadlinkobjectendaction.cpp
@@ -100,6 +100,8 @@ QUmlReadLinkObjectEndAction::~QUmlReadLinkObjectEndAction()
QModelingElement *QUmlReadLinkObjectEndAction::clone() const
{
QUmlReadLinkObjectEndAction *c = new QUmlReadLinkObjectEndAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadlinkobjectendqualifieraction.cpp b/src/uml/qumlreadlinkobjectendqualifieraction.cpp
index a45071eb..74291b25 100644
--- a/src/uml/qumlreadlinkobjectendqualifieraction.cpp
+++ b/src/uml/qumlreadlinkobjectendqualifieraction.cpp
@@ -100,6 +100,8 @@ QUmlReadLinkObjectEndQualifierAction::~QUmlReadLinkObjectEndQualifierAction()
QModelingElement *QUmlReadLinkObjectEndQualifierAction::clone() const
{
QUmlReadLinkObjectEndQualifierAction *c = new QUmlReadLinkObjectEndQualifierAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadselfaction.cpp b/src/uml/qumlreadselfaction.cpp
index edc5c969..b99ef912 100644
--- a/src/uml/qumlreadselfaction.cpp
+++ b/src/uml/qumlreadselfaction.cpp
@@ -97,6 +97,8 @@ QUmlReadSelfAction::~QUmlReadSelfAction()
QModelingElement *QUmlReadSelfAction::clone() const
{
QUmlReadSelfAction *c = new QUmlReadSelfAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadstructuralfeatureaction.cpp b/src/uml/qumlreadstructuralfeatureaction.cpp
index fdb799aa..8567a43b 100644
--- a/src/uml/qumlreadstructuralfeatureaction.cpp
+++ b/src/uml/qumlreadstructuralfeatureaction.cpp
@@ -98,6 +98,8 @@ QUmlReadStructuralFeatureAction::~QUmlReadStructuralFeatureAction()
QModelingElement *QUmlReadStructuralFeatureAction::clone() const
{
QUmlReadStructuralFeatureAction *c = new QUmlReadStructuralFeatureAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreadvariableaction.cpp b/src/uml/qumlreadvariableaction.cpp
index b2666c66..b3230929 100644
--- a/src/uml/qumlreadvariableaction.cpp
+++ b/src/uml/qumlreadvariableaction.cpp
@@ -98,6 +98,8 @@ QUmlReadVariableAction::~QUmlReadVariableAction()
QModelingElement *QUmlReadVariableAction::clone() const
{
QUmlReadVariableAction *c = new QUmlReadVariableAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlrealization.cpp b/src/uml/qumlrealization.cpp
index 7d00149b..3c172404 100644
--- a/src/uml/qumlrealization.cpp
+++ b/src/uml/qumlrealization.cpp
@@ -87,6 +87,8 @@ QUmlRealization::~QUmlRealization()
QModelingElement *QUmlRealization::clone() const
{
QUmlRealization *c = new QUmlRealization;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreception.cpp b/src/uml/qumlreception.cpp
index 2a41a329..bf143393 100644
--- a/src/uml/qumlreception.cpp
+++ b/src/uml/qumlreception.cpp
@@ -95,6 +95,8 @@ QUmlReception::~QUmlReception()
QModelingElement *QUmlReception::clone() const
{
QUmlReception *c = new QUmlReception;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreclassifyobjectaction.cpp b/src/uml/qumlreclassifyobjectaction.cpp
index 3df0a31b..adcac561 100644
--- a/src/uml/qumlreclassifyobjectaction.cpp
+++ b/src/uml/qumlreclassifyobjectaction.cpp
@@ -98,6 +98,8 @@ QUmlReclassifyObjectAction::~QUmlReclassifyObjectAction()
QModelingElement *QUmlReclassifyObjectAction::clone() const
{
QUmlReclassifyObjectAction *c = new QUmlReclassifyObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlredefinableelement.cpp b/src/uml/qumlredefinableelement.cpp
index fbb755e4..ca09bbd2 100644
--- a/src/uml/qumlredefinableelement.cpp
+++ b/src/uml/qumlredefinableelement.cpp
@@ -82,6 +82,8 @@ QUmlRedefinableElement::~QUmlRedefinableElement()
QModelingElement *QUmlRedefinableElement::clone() const
{
QUmlRedefinableElement *c = new QUmlRedefinableElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlredefinabletemplatesignature.cpp b/src/uml/qumlredefinabletemplatesignature.cpp
index 4e4aa0ad..6ed6caf6 100644
--- a/src/uml/qumlredefinabletemplatesignature.cpp
+++ b/src/uml/qumlredefinabletemplatesignature.cpp
@@ -88,6 +88,8 @@ QUmlRedefinableTemplateSignature::~QUmlRedefinableTemplateSignature()
QModelingElement *QUmlRedefinableTemplateSignature::clone() const
{
QUmlRedefinableTemplateSignature *c = new QUmlRedefinableTemplateSignature;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlTemplateParameter *element, ownedParameters())
diff --git a/src/uml/qumlreduceaction.cpp b/src/uml/qumlreduceaction.cpp
index ee98cd8c..2ed2bb0b 100644
--- a/src/uml/qumlreduceaction.cpp
+++ b/src/uml/qumlreduceaction.cpp
@@ -101,6 +101,8 @@ QUmlReduceAction::~QUmlReduceAction()
QModelingElement *QUmlReduceAction::clone() const
{
QUmlReduceAction *c = new QUmlReduceAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlregion.cpp b/src/uml/qumlregion.cpp
index 26b528de..9bacebbb 100644
--- a/src/uml/qumlregion.cpp
+++ b/src/uml/qumlregion.cpp
@@ -94,6 +94,8 @@ QUmlRegion::~QUmlRegion()
QModelingElement *QUmlRegion::clone() const
{
QUmlRegion *c = new QUmlRegion;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlrelationship.cpp b/src/uml/qumlrelationship.cpp
index 1870bdc0..ddd6533a 100644
--- a/src/uml/qumlrelationship.cpp
+++ b/src/uml/qumlrelationship.cpp
@@ -75,6 +75,8 @@ QUmlRelationship::~QUmlRelationship()
QModelingElement *QUmlRelationship::clone() const
{
QUmlRelationship *c = new QUmlRelationship;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
return c;
diff --git a/src/uml/qumlremovestructuralfeaturevalueaction.cpp b/src/uml/qumlremovestructuralfeaturevalueaction.cpp
index b6d539fc..cb40181b 100644
--- a/src/uml/qumlremovestructuralfeaturevalueaction.cpp
+++ b/src/uml/qumlremovestructuralfeaturevalueaction.cpp
@@ -99,6 +99,8 @@ QUmlRemoveStructuralFeatureValueAction::~QUmlRemoveStructuralFeatureValueAction(
QModelingElement *QUmlRemoveStructuralFeatureValueAction::clone() const
{
QUmlRemoveStructuralFeatureValueAction *c = new QUmlRemoveStructuralFeatureValueAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlremovevariablevalueaction.cpp b/src/uml/qumlremovevariablevalueaction.cpp
index 5d1e66ca..a441a45d 100644
--- a/src/uml/qumlremovevariablevalueaction.cpp
+++ b/src/uml/qumlremovevariablevalueaction.cpp
@@ -99,6 +99,8 @@ QUmlRemoveVariableValueAction::~QUmlRemoveVariableValueAction()
QModelingElement *QUmlRemoveVariableValueAction::clone() const
{
QUmlRemoveVariableValueAction *c = new QUmlRemoveVariableValueAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlreplyaction.cpp b/src/uml/qumlreplyaction.cpp
index 5a334fbe..52d97415 100644
--- a/src/uml/qumlreplyaction.cpp
+++ b/src/uml/qumlreplyaction.cpp
@@ -99,6 +99,8 @@ QUmlReplyAction::~QUmlReplyAction()
QModelingElement *QUmlReplyAction::clone() const
{
QUmlReplyAction *c = new QUmlReplyAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsendobjectaction.cpp b/src/uml/qumlsendobjectaction.cpp
index 118485ac..af4f8260 100644
--- a/src/uml/qumlsendobjectaction.cpp
+++ b/src/uml/qumlsendobjectaction.cpp
@@ -99,6 +99,8 @@ QUmlSendObjectAction::~QUmlSendObjectAction()
QModelingElement *QUmlSendObjectAction::clone() const
{
QUmlSendObjectAction *c = new QUmlSendObjectAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsendsignalaction.cpp b/src/uml/qumlsendsignalaction.cpp
index c04b3431..4b87eac5 100644
--- a/src/uml/qumlsendsignalaction.cpp
+++ b/src/uml/qumlsendsignalaction.cpp
@@ -100,6 +100,8 @@ QUmlSendSignalAction::~QUmlSendSignalAction()
QModelingElement *QUmlSendSignalAction::clone() const
{
QUmlSendSignalAction *c = new QUmlSendSignalAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsequencenode.cpp b/src/uml/qumlsequencenode.cpp
index c7312611..b797c8af 100644
--- a/src/uml/qumlsequencenode.cpp
+++ b/src/uml/qumlsequencenode.cpp
@@ -101,6 +101,8 @@ QUmlSequenceNode::~QUmlSequenceNode()
QModelingElement *QUmlSequenceNode::clone() const
{
QUmlSequenceNode *c = new QUmlSequenceNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsignal.cpp b/src/uml/qumlsignal.cpp
index c4e3039f..ea64aa68 100644
--- a/src/uml/qumlsignal.cpp
+++ b/src/uml/qumlsignal.cpp
@@ -102,6 +102,8 @@ QUmlSignal::~QUmlSignal()
QModelingElement *QUmlSignal::clone() const
{
QUmlSignal *c = new QUmlSignal;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsignalevent.cpp b/src/uml/qumlsignalevent.cpp
index 7866b7bd..cc5c22b0 100644
--- a/src/uml/qumlsignalevent.cpp
+++ b/src/uml/qumlsignalevent.cpp
@@ -87,6 +87,8 @@ QUmlSignalEvent::~QUmlSignalEvent()
QModelingElement *QUmlSignalEvent::clone() const
{
QUmlSignalEvent *c = new QUmlSignalEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlslot.cpp b/src/uml/qumlslot.cpp
index 1c3dcc75..af72595f 100644
--- a/src/uml/qumlslot.cpp
+++ b/src/uml/qumlslot.cpp
@@ -82,6 +82,8 @@ QUmlSlot::~QUmlSlot()
QModelingElement *QUmlSlot::clone() const
{
QUmlSlot *c = new QUmlSlot;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlValueSpecification *element, values())
diff --git a/src/uml/qumlstartclassifierbehavioraction.cpp b/src/uml/qumlstartclassifierbehavioraction.cpp
index 6aaf6501..3d6db9cb 100644
--- a/src/uml/qumlstartclassifierbehavioraction.cpp
+++ b/src/uml/qumlstartclassifierbehavioraction.cpp
@@ -97,6 +97,8 @@ QUmlStartClassifierBehaviorAction::~QUmlStartClassifierBehaviorAction()
QModelingElement *QUmlStartClassifierBehaviorAction::clone() const
{
QUmlStartClassifierBehaviorAction *c = new QUmlStartClassifierBehaviorAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstartobjectbehavioraction.cpp b/src/uml/qumlstartobjectbehavioraction.cpp
index aaf0b9a8..9eee8ab9 100644
--- a/src/uml/qumlstartobjectbehavioraction.cpp
+++ b/src/uml/qumlstartobjectbehavioraction.cpp
@@ -98,6 +98,8 @@ QUmlStartObjectBehaviorAction::~QUmlStartObjectBehaviorAction()
QModelingElement *QUmlStartObjectBehaviorAction::clone() const
{
QUmlStartObjectBehaviorAction *c = new QUmlStartObjectBehaviorAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstate.cpp b/src/uml/qumlstate.cpp
index 4edda4e6..83e58647 100644
--- a/src/uml/qumlstate.cpp
+++ b/src/uml/qumlstate.cpp
@@ -100,6 +100,8 @@ QUmlState::~QUmlState()
QModelingElement *QUmlState::clone() const
{
QUmlState *c = new QUmlState;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstateinvariant.cpp b/src/uml/qumlstateinvariant.cpp
index 5e2613d4..116597fe 100644
--- a/src/uml/qumlstateinvariant.cpp
+++ b/src/uml/qumlstateinvariant.cpp
@@ -90,6 +90,8 @@ QUmlStateInvariant::~QUmlStateInvariant()
QModelingElement *QUmlStateInvariant::clone() const
{
QUmlStateInvariant *c = new QUmlStateInvariant;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstatemachine.cpp b/src/uml/qumlstatemachine.cpp
index ffb641ab..918f0d43 100644
--- a/src/uml/qumlstatemachine.cpp
+++ b/src/uml/qumlstatemachine.cpp
@@ -118,6 +118,8 @@ QUmlStateMachine::~QUmlStateMachine()
QModelingElement *QUmlStateMachine::clone() const
{
QUmlStateMachine *c = new QUmlStateMachine;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstereotype.cpp b/src/uml/qumlstereotype.cpp
index 43141a82..862bfc67 100644
--- a/src/uml/qumlstereotype.cpp
+++ b/src/uml/qumlstereotype.cpp
@@ -114,6 +114,8 @@ QUmlStereotype::~QUmlStereotype()
QModelingElement *QUmlStereotype::clone() const
{
QUmlStereotype *c = new QUmlStereotype;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstringexpression.cpp b/src/uml/qumlstringexpression.cpp
index 0bbbc07f..8fcb4028 100644
--- a/src/uml/qumlstringexpression.cpp
+++ b/src/uml/qumlstringexpression.cpp
@@ -90,6 +90,8 @@ QUmlStringExpression::~QUmlStringExpression()
QModelingElement *QUmlStringExpression::clone() const
{
QUmlStringExpression *c = new QUmlStringExpression;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstructuralfeature.cpp b/src/uml/qumlstructuralfeature.cpp
index 579798fa..f0596344 100644
--- a/src/uml/qumlstructuralfeature.cpp
+++ b/src/uml/qumlstructuralfeature.cpp
@@ -86,6 +86,8 @@ QUmlStructuralFeature::~QUmlStructuralFeature()
QModelingElement *QUmlStructuralFeature::clone() const
{
QUmlStructuralFeature *c = new QUmlStructuralFeature;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstructuralfeatureaction.cpp b/src/uml/qumlstructuralfeatureaction.cpp
index 0cda0cc1..b84531d3 100644
--- a/src/uml/qumlstructuralfeatureaction.cpp
+++ b/src/uml/qumlstructuralfeatureaction.cpp
@@ -97,6 +97,8 @@ QUmlStructuralFeatureAction::~QUmlStructuralFeatureAction()
QModelingElement *QUmlStructuralFeatureAction::clone() const
{
QUmlStructuralFeatureAction *c = new QUmlStructuralFeatureAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstructuredactivitynode.cpp b/src/uml/qumlstructuredactivitynode.cpp
index 9f3bc8ae..06ecbde9 100644
--- a/src/uml/qumlstructuredactivitynode.cpp
+++ b/src/uml/qumlstructuredactivitynode.cpp
@@ -99,6 +99,8 @@ QUmlStructuredActivityNode::~QUmlStructuredActivityNode()
QModelingElement *QUmlStructuredActivityNode::clone() const
{
QUmlStructuredActivityNode *c = new QUmlStructuredActivityNode;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlstructuredclassifier.cpp b/src/uml/qumlstructuredclassifier.cpp
index 8e2ae985..6562a1e1 100644
--- a/src/uml/qumlstructuredclassifier.cpp
+++ b/src/uml/qumlstructuredclassifier.cpp
@@ -102,6 +102,8 @@ QUmlStructuredClassifier::~QUmlStructuredClassifier()
QModelingElement *QUmlStructuredClassifier::clone() const
{
QUmlStructuredClassifier *c = new QUmlStructuredClassifier;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlsubstitution.cpp b/src/uml/qumlsubstitution.cpp
index 1a904cca..c98d45be 100644
--- a/src/uml/qumlsubstitution.cpp
+++ b/src/uml/qumlsubstitution.cpp
@@ -90,6 +90,8 @@ QUmlSubstitution::~QUmlSubstitution()
QModelingElement *QUmlSubstitution::clone() const
{
QUmlSubstitution *c = new QUmlSubstitution;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltemplateableelement.cpp b/src/uml/qumltemplateableelement.cpp
index bc6369db..52ee9051 100644
--- a/src/uml/qumltemplateableelement.cpp
+++ b/src/uml/qumltemplateableelement.cpp
@@ -79,6 +79,8 @@ QUmlTemplateableElement::~QUmlTemplateableElement()
QModelingElement *QUmlTemplateableElement::clone() const
{
QUmlTemplateableElement *c = new QUmlTemplateableElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedTemplateSignature())
diff --git a/src/uml/qumltemplatebinding.cpp b/src/uml/qumltemplatebinding.cpp
index 9bd24a35..50959681 100644
--- a/src/uml/qumltemplatebinding.cpp
+++ b/src/uml/qumltemplatebinding.cpp
@@ -83,6 +83,8 @@ QUmlTemplateBinding::~QUmlTemplateBinding()
QModelingElement *QUmlTemplateBinding::clone() const
{
QUmlTemplateBinding *c = new QUmlTemplateBinding;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlTemplateParameterSubstitution *element, parameterSubstitutions())
diff --git a/src/uml/qumltemplateparameter.cpp b/src/uml/qumltemplateparameter.cpp
index c6904c92..4c926484 100644
--- a/src/uml/qumltemplateparameter.cpp
+++ b/src/uml/qumltemplateparameter.cpp
@@ -84,6 +84,8 @@ QUmlTemplateParameter::~QUmlTemplateParameter()
QModelingElement *QUmlTemplateParameter::clone() const
{
QUmlTemplateParameter *c = new QUmlTemplateParameter;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedDefault())
diff --git a/src/uml/qumltemplateparametersubstitution.cpp b/src/uml/qumltemplateparametersubstitution.cpp
index 5ba31ce2..e971c062 100644
--- a/src/uml/qumltemplateparametersubstitution.cpp
+++ b/src/uml/qumltemplateparametersubstitution.cpp
@@ -84,6 +84,8 @@ QUmlTemplateParameterSubstitution::~QUmlTemplateParameterSubstitution()
QModelingElement *QUmlTemplateParameterSubstitution::clone() const
{
QUmlTemplateParameterSubstitution *c = new QUmlTemplateParameterSubstitution;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (ownedActual())
diff --git a/src/uml/qumltemplatesignature.cpp b/src/uml/qumltemplatesignature.cpp
index c14e3faa..0d6a0ec0 100644
--- a/src/uml/qumltemplatesignature.cpp
+++ b/src/uml/qumltemplatesignature.cpp
@@ -80,6 +80,8 @@ QUmlTemplateSignature::~QUmlTemplateSignature()
QModelingElement *QUmlTemplateSignature::clone() const
{
QUmlTemplateSignature *c = new QUmlTemplateSignature;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
foreach (QUmlTemplateParameter *element, ownedParameters())
diff --git a/src/uml/qumltestidentityaction.cpp b/src/uml/qumltestidentityaction.cpp
index ce1c54e3..d44fa8f0 100644
--- a/src/uml/qumltestidentityaction.cpp
+++ b/src/uml/qumltestidentityaction.cpp
@@ -99,6 +99,8 @@ QUmlTestIdentityAction::~QUmlTestIdentityAction()
QModelingElement *QUmlTestIdentityAction::clone() const
{
QUmlTestIdentityAction *c = new QUmlTestIdentityAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltimeconstraint.cpp b/src/uml/qumltimeconstraint.cpp
index 23b7e723..e8d67990 100644
--- a/src/uml/qumltimeconstraint.cpp
+++ b/src/uml/qumltimeconstraint.cpp
@@ -91,6 +91,8 @@ QUmlTimeConstraint::~QUmlTimeConstraint()
QModelingElement *QUmlTimeConstraint::clone() const
{
QUmlTimeConstraint *c = new QUmlTimeConstraint;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltimeevent.cpp b/src/uml/qumltimeevent.cpp
index b540c051..8ab9a6b4 100644
--- a/src/uml/qumltimeevent.cpp
+++ b/src/uml/qumltimeevent.cpp
@@ -88,6 +88,8 @@ QUmlTimeEvent::~QUmlTimeEvent()
QModelingElement *QUmlTimeEvent::clone() const
{
QUmlTimeEvent *c = new QUmlTimeEvent;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltimeexpression.cpp b/src/uml/qumltimeexpression.cpp
index 872d16a2..8e1bb5fc 100644
--- a/src/uml/qumltimeexpression.cpp
+++ b/src/uml/qumltimeexpression.cpp
@@ -88,6 +88,8 @@ QUmlTimeExpression::~QUmlTimeExpression()
QModelingElement *QUmlTimeExpression::clone() const
{
QUmlTimeExpression *c = new QUmlTimeExpression;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltimeinterval.cpp b/src/uml/qumltimeinterval.cpp
index ff5ea40c..7a63b868 100644
--- a/src/uml/qumltimeinterval.cpp
+++ b/src/uml/qumltimeinterval.cpp
@@ -91,6 +91,8 @@ QUmlTimeInterval::~QUmlTimeInterval()
QModelingElement *QUmlTimeInterval::clone() const
{
QUmlTimeInterval *c = new QUmlTimeInterval;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltimeobservation.cpp b/src/uml/qumltimeobservation.cpp
index 69b09e7e..895117de 100644
--- a/src/uml/qumltimeobservation.cpp
+++ b/src/uml/qumltimeobservation.cpp
@@ -87,6 +87,8 @@ QUmlTimeObservation::~QUmlTimeObservation()
QModelingElement *QUmlTimeObservation::clone() const
{
QUmlTimeObservation *c = new QUmlTimeObservation;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltransition.cpp b/src/uml/qumltransition.cpp
index 0d8d7fb3..4943b8bd 100644
--- a/src/uml/qumltransition.cpp
+++ b/src/uml/qumltransition.cpp
@@ -99,6 +99,8 @@ QUmlTransition::~QUmlTransition()
QModelingElement *QUmlTransition::clone() const
{
QUmlTransition *c = new QUmlTransition;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltrigger.cpp b/src/uml/qumltrigger.cpp
index f601fe17..2095b4c5 100644
--- a/src/uml/qumltrigger.cpp
+++ b/src/uml/qumltrigger.cpp
@@ -85,6 +85,8 @@ QUmlTrigger::~QUmlTrigger()
QModelingElement *QUmlTrigger::clone() const
{
QUmlTrigger *c = new QUmlTrigger;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltype.cpp b/src/uml/qumltype.cpp
index 3cdde1b7..2a3b5a17 100644
--- a/src/uml/qumltype.cpp
+++ b/src/uml/qumltype.cpp
@@ -84,6 +84,8 @@ QUmlType::~QUmlType()
QModelingElement *QUmlType::clone() const
{
QUmlType *c = new QUmlType;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumltypedelement.cpp b/src/uml/qumltypedelement.cpp
index 784ca2ab..27a6c900 100644
--- a/src/uml/qumltypedelement.cpp
+++ b/src/uml/qumltypedelement.cpp
@@ -82,6 +82,8 @@ QUmlTypedElement::~QUmlTypedElement()
QModelingElement *QUmlTypedElement::clone() const
{
QUmlTypedElement *c = new QUmlTypedElement;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlunmarshallaction.cpp b/src/uml/qumlunmarshallaction.cpp
index 42ece27c..184eadbc 100644
--- a/src/uml/qumlunmarshallaction.cpp
+++ b/src/uml/qumlunmarshallaction.cpp
@@ -98,6 +98,8 @@ QUmlUnmarshallAction::~QUmlUnmarshallAction()
QModelingElement *QUmlUnmarshallAction::clone() const
{
QUmlUnmarshallAction *c = new QUmlUnmarshallAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlusage.cpp b/src/uml/qumlusage.cpp
index 5883bbbb..103d7ef3 100644
--- a/src/uml/qumlusage.cpp
+++ b/src/uml/qumlusage.cpp
@@ -85,6 +85,8 @@ QUmlUsage::~QUmlUsage()
QModelingElement *QUmlUsage::clone() const
{
QUmlUsage *c = new QUmlUsage;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlusecase.cpp b/src/uml/qumlusecase.cpp
index a174972e..e5840e9c 100644
--- a/src/uml/qumlusecase.cpp
+++ b/src/uml/qumlusecase.cpp
@@ -107,6 +107,8 @@ QUmlUseCase::~QUmlUseCase()
QModelingElement *QUmlUseCase::clone() const
{
QUmlUseCase *c = new QUmlUseCase;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlvaluepin.cpp b/src/uml/qumlvaluepin.cpp
index ac4d8110..8eea4a6c 100644
--- a/src/uml/qumlvaluepin.cpp
+++ b/src/uml/qumlvaluepin.cpp
@@ -99,6 +99,8 @@ QUmlValuePin::~QUmlValuePin()
QModelingElement *QUmlValuePin::clone() const
{
QUmlValuePin *c = new QUmlValuePin;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlvaluespecification.cpp b/src/uml/qumlvaluespecification.cpp
index ded01bef..853cf954 100644
--- a/src/uml/qumlvaluespecification.cpp
+++ b/src/uml/qumlvaluespecification.cpp
@@ -84,6 +84,8 @@ QUmlValueSpecification::~QUmlValueSpecification()
QModelingElement *QUmlValueSpecification::clone() const
{
QUmlValueSpecification *c = new QUmlValueSpecification;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlvaluespecificationaction.cpp b/src/uml/qumlvaluespecificationaction.cpp
index b567bfaa..2cc1bfa0 100644
--- a/src/uml/qumlvaluespecificationaction.cpp
+++ b/src/uml/qumlvaluespecificationaction.cpp
@@ -99,6 +99,8 @@ QUmlValueSpecificationAction::~QUmlValueSpecificationAction()
QModelingElement *QUmlValueSpecificationAction::clone() const
{
QUmlValueSpecificationAction *c = new QUmlValueSpecificationAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlvariable.cpp b/src/uml/qumlvariable.cpp
index e1c47878..893366cb 100644
--- a/src/uml/qumlvariable.cpp
+++ b/src/uml/qumlvariable.cpp
@@ -94,6 +94,8 @@ QUmlVariable::~QUmlVariable()
QModelingElement *QUmlVariable::clone() const
{
QUmlVariable *c = new QUmlVariable;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setOrdered(isOrdered());
diff --git a/src/uml/qumlvariableaction.cpp b/src/uml/qumlvariableaction.cpp
index 3989b49b..84322eca 100644
--- a/src/uml/qumlvariableaction.cpp
+++ b/src/uml/qumlvariableaction.cpp
@@ -96,6 +96,8 @@ QUmlVariableAction::~QUmlVariableAction()
QModelingElement *QUmlVariableAction::clone() const
{
QUmlVariableAction *c = new QUmlVariableAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlvertex.cpp b/src/uml/qumlvertex.cpp
index f657a910..38910f2f 100644
--- a/src/uml/qumlvertex.cpp
+++ b/src/uml/qumlvertex.cpp
@@ -84,6 +84,8 @@ QUmlVertex::~QUmlVertex()
QModelingElement *QUmlVertex::clone() const
{
QUmlVertex *c = new QUmlVertex;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlwritelinkaction.cpp b/src/uml/qumlwritelinkaction.cpp
index dfafc5a7..3d05c728 100644
--- a/src/uml/qumlwritelinkaction.cpp
+++ b/src/uml/qumlwritelinkaction.cpp
@@ -96,6 +96,8 @@ QUmlWriteLinkAction::~QUmlWriteLinkAction()
QModelingElement *QUmlWriteLinkAction::clone() const
{
QUmlWriteLinkAction *c = new QUmlWriteLinkAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlwritestructuralfeatureaction.cpp b/src/uml/qumlwritestructuralfeatureaction.cpp
index 4c765f77..319db242 100644
--- a/src/uml/qumlwritestructuralfeatureaction.cpp
+++ b/src/uml/qumlwritestructuralfeatureaction.cpp
@@ -97,6 +97,8 @@ QUmlWriteStructuralFeatureAction::~QUmlWriteStructuralFeatureAction()
QModelingElement *QUmlWriteStructuralFeatureAction::clone() const
{
QUmlWriteStructuralFeatureAction *c = new QUmlWriteStructuralFeatureAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());
diff --git a/src/uml/qumlwritevariableaction.cpp b/src/uml/qumlwritevariableaction.cpp
index 2dddb8d2..787eebb5 100644
--- a/src/uml/qumlwritevariableaction.cpp
+++ b/src/uml/qumlwritevariableaction.cpp
@@ -96,6 +96,8 @@ QUmlWriteVariableAction::~QUmlWriteVariableAction()
QModelingElement *QUmlWriteVariableAction::clone() const
{
QUmlWriteVariableAction *c = new QUmlWriteVariableAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());