diff options
Diffstat (limited to 'src/uml/qobjects/qumlreadvariableactionobject.cpp')
-rw-r--r-- | src/uml/qobjects/qumlreadvariableactionobject.cpp | 303 |
1 files changed, 188 insertions, 115 deletions
diff --git a/src/uml/qobjects/qumlreadvariableactionobject.cpp b/src/uml/qobjects/qumlreadvariableactionobject.cpp index 54b1d93d..8ac9edfe 100644 --- a/src/uml/qobjects/qumlreadvariableactionobject.cpp +++ b/src/uml/qobjects/qumlreadvariableactionobject.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include "qumlreadvariableactionobject_p.h" +#include "private/qmodelingobject_p.h" #include <QtUml/QUmlReadVariableAction> #include <QtUml/QUmlActivity> @@ -65,16 +66,18 @@ QT_BEGIN_NAMESPACE -QUmlReadVariableActionObject::QUmlReadVariableActionObject(QUmlReadVariableAction *qModelingObject) +QUmlReadVariableActionObject::QUmlReadVariableActionObject(QUmlReadVariableAction *qModelingElement) { - setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject))); + setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement))); + setGroupProperties(); + setPropertyData(); } QUmlReadVariableActionObject::~QUmlReadVariableActionObject() { if (!property("deletingFromModelingObject").isValid()) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->deletingFromQObject = true; - delete qmodelingobjectproperty_cast<QUmlComment *>(this); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->deletingFromQModelingObject = true; + delete qmodelingelementproperty_cast<QUmlComment *>(this); } } @@ -83,25 +86,25 @@ QUmlReadVariableActionObject::~QUmlReadVariableActionObject() const QSet<QObject *> QUmlReadVariableActionObject::ownedComments() const { QSet<QObject *> set; - foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->ownedComments()) - set.insert(element->asQObject()); + foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->ownedComments()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::ownedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->ownedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->ownedElements()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlReadVariableActionObject::owner() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->owner()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->owner()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->owner()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] @@ -109,62 +112,62 @@ QObject *QUmlReadVariableActionObject::owner() const const QSet<QObject *> QUmlReadVariableActionObject::clientDependencies() const { QSet<QObject *> set; - foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->clientDependencies()) - set.insert(element->asQObject()); + foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->clientDependencies()) + set.insert(element->asQModelingObject()); return set; } QString QUmlReadVariableActionObject::name() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->name(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->name(); } QObject *QUmlReadVariableActionObject::nameExpression() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->nameExpression()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->nameExpression()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->nameExpression()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->nameExpression()->asQModelingObject(); } QObject *QUmlReadVariableActionObject::namespace_() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->namespace_()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->namespace_()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->namespace_()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->namespace_()->asQModelingObject(); } QString QUmlReadVariableActionObject::qualifiedName() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->qualifiedName(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->qualifiedName(); } QtUml::VisibilityKind QUmlReadVariableActionObject::visibility() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->visibility(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->visibility(); } // OWNED ATTRIBUTES [RedefinableElement] bool QUmlReadVariableActionObject::isLeaf() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->isLeaf(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->isLeaf(); } const QSet<QObject *> QUmlReadVariableActionObject::redefinedElements() const { QSet<QObject *> set; - foreach (QUmlRedefinableElement *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->redefinedElements()) - set.insert(element->asQObject()); + foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->redefinedElements()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::redefinitionContexts() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->redefinitionContexts()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->redefinitionContexts()) + set.insert(element->asQModelingObject()); return set; } @@ -172,65 +175,65 @@ const QSet<QObject *> QUmlReadVariableActionObject::redefinitionContexts() const QObject *QUmlReadVariableActionObject::activity() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->activity()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->activity()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->activity()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->activity()->asQModelingObject(); } const QSet<QObject *> QUmlReadVariableActionObject::inGroups() const { QSet<QObject *> set; - foreach (QUmlActivityGroup *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inGroups()) - set.insert(element->asQObject()); + foreach (QUmlActivityGroup *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inGroups()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::inInterruptibleRegions() const { QSet<QObject *> set; - foreach (QUmlInterruptibleActivityRegion *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inInterruptibleRegions()) - set.insert(element->asQObject()); + foreach (QUmlInterruptibleActivityRegion *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inInterruptibleRegions()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::inPartitions() const { QSet<QObject *> set; - foreach (QUmlActivityPartition *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inPartitions()) - set.insert(element->asQObject()); + foreach (QUmlActivityPartition *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inPartitions()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlReadVariableActionObject::inStructuredNode() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inStructuredNode()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inStructuredNode()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inStructuredNode()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inStructuredNode()->asQModelingObject(); } const QSet<QObject *> QUmlReadVariableActionObject::incomings() const { QSet<QObject *> set; - foreach (QUmlActivityEdge *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->incomings()) - set.insert(element->asQObject()); + foreach (QUmlActivityEdge *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->incomings()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::outgoings() const { QSet<QObject *> set; - foreach (QUmlActivityEdge *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->outgoings()) - set.insert(element->asQObject()); + foreach (QUmlActivityEdge *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->outgoings()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::redefinedNodes() const { QSet<QObject *> set; - foreach (QUmlActivityNode *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->redefinedNodes()) - set.insert(element->asQObject()); + foreach (QUmlActivityNode *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->redefinedNodes()) + set.insert(element->asQModelingObject()); return set; } @@ -239,8 +242,8 @@ const QSet<QObject *> QUmlReadVariableActionObject::redefinedNodes() const const QSet<QObject *> QUmlReadVariableActionObject::handlers() const { QSet<QObject *> set; - foreach (QUmlExceptionHandler *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->handlers()) - set.insert(element->asQObject()); + foreach (QUmlExceptionHandler *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->handlers()) + set.insert(element->asQModelingObject()); return set; } @@ -248,46 +251,46 @@ const QSet<QObject *> QUmlReadVariableActionObject::handlers() const QObject *QUmlReadVariableActionObject::context() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->context()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->context()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->context()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->context()->asQModelingObject(); } const QList<QObject *> QUmlReadVariableActionObject::inputs() const { QList<QObject *> list; - foreach (QUmlInputPin *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->inputs()) - list.append(element->asQObject()); + foreach (QUmlInputPin *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->inputs()) + list.append(element->asQModelingObject()); return list; } bool QUmlReadVariableActionObject::isLocallyReentrant() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->isLocallyReentrant(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->isLocallyReentrant(); } const QSet<QObject *> QUmlReadVariableActionObject::localPostconditions() const { QSet<QObject *> set; - foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->localPostconditions()) - set.insert(element->asQObject()); + foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->localPostconditions()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlReadVariableActionObject::localPreconditions() const { QSet<QObject *> set; - foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->localPreconditions()) - set.insert(element->asQObject()); + foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->localPreconditions()) + set.insert(element->asQModelingObject()); return set; } const QList<QObject *> QUmlReadVariableActionObject::outputs() const { QList<QObject *> list; - foreach (QUmlOutputPin *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->outputs()) - list.append(element->asQObject()); + foreach (QUmlOutputPin *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->outputs()) + list.append(element->asQModelingObject()); return list; } @@ -295,20 +298,20 @@ const QList<QObject *> QUmlReadVariableActionObject::outputs() const QObject *QUmlReadVariableActionObject::variable() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->variable()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->variable()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->variable()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->variable()->asQModelingObject(); } // OWNED ATTRIBUTES [ReadVariableAction] QObject *QUmlReadVariableActionObject::result() const { - if (!qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->result()) + if (!qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->result()) return 0; else - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->result()->asQObject(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->result()->asQModelingObject(); } // OPERATIONS [Element] @@ -316,14 +319,14 @@ QObject *QUmlReadVariableActionObject::result() const QSet<QObject *> QUmlReadVariableActionObject::allOwnedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->allOwnedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->allOwnedElements()) + set.insert(element->asQModelingObject()); return set; } bool QUmlReadVariableActionObject::mustBeOwned() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->mustBeOwned(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->mustBeOwned(); } // OPERATIONS [NamedElement] @@ -331,290 +334,360 @@ bool QUmlReadVariableActionObject::mustBeOwned() const QList<QObject *> QUmlReadVariableActionObject::allNamespaces() const { QList<QObject *> set; - foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->allNamespaces()) - set.append(element->asQObject()); + foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->allNamespaces()) + set.append(element->asQModelingObject()); return set; } QSet<QObject *> QUmlReadVariableActionObject::allOwningPackages() const { QSet<QObject *> set; - foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->allOwningPackages()) - set.insert(element->asQObject()); + foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->allOwningPackages()) + set.insert(element->asQModelingObject()); return set; } bool QUmlReadVariableActionObject::isDistinguishableFrom(QObject *n, QObject *ns) const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns)); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns)); } QString QUmlReadVariableActionObject::separator() const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->separator(); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->separator(); } // OPERATIONS [RedefinableElement] bool QUmlReadVariableActionObject::isConsistentWith(QObject *redefinee) const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->isConsistentWith(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinee)); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee)); } bool QUmlReadVariableActionObject::isRedefinitionContextValid(QObject *redefined) const { - return qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->isRedefinitionContextValid(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefined)); + return qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined)); } // SLOTS FOR OWNED ATTRIBUTES [Element] void QUmlReadVariableActionObject::addOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlReadVariableActionObject::removeOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlReadVariableActionObject::addOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlReadVariableActionObject::removeOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlReadVariableActionObject::setOwner(QObject *owner) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner)); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QUmlReadVariableActionObject::addClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlReadVariableActionObject::removeClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlReadVariableActionObject::setName(QString name) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setName(name); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setName(name); } void QUmlReadVariableActionObject::setNameExpression(QObject *nameExpression) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression)); } void QUmlReadVariableActionObject::setNamespace(QObject *namespace_) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_)); } void QUmlReadVariableActionObject::setQualifiedName(QString qualifiedName) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setQualifiedName(qualifiedName); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setQualifiedName(qualifiedName); } void QUmlReadVariableActionObject::setVisibility(QtUml::VisibilityKind visibility) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setVisibility(visibility); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setVisibility(visibility); } // SLOTS FOR OWNED ATTRIBUTES [RedefinableElement] void QUmlReadVariableActionObject::setLeaf(bool isLeaf) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setLeaf(isLeaf); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setLeaf(isLeaf); } void QUmlReadVariableActionObject::unsetLeaf() { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("leaf")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("leaf")); } void QUmlReadVariableActionObject::addRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlReadVariableActionObject::removeRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlReadVariableActionObject::addRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } void QUmlReadVariableActionObject::removeRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } // SLOTS FOR OWNED ATTRIBUTES [ActivityNode] void QUmlReadVariableActionObject::setActivity(QObject *activity) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setActivity(qmodelingobjectproperty_cast<QUmlActivity *>(activity)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setActivity(qmodelingelementproperty_cast<QUmlActivity *>(activity)); } void QUmlReadVariableActionObject::addInGroup(QObject *inGroup) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addInGroup(qmodelingobjectproperty_cast<QUmlActivityGroup *>(inGroup)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup)); } void QUmlReadVariableActionObject::removeInGroup(QObject *inGroup) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeInGroup(qmodelingobjectproperty_cast<QUmlActivityGroup *>(inGroup)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup)); } void QUmlReadVariableActionObject::addInInterruptibleRegion(QObject *inInterruptibleRegion) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addInInterruptibleRegion(qmodelingobjectproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addInInterruptibleRegion(qmodelingelementproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion)); } void QUmlReadVariableActionObject::removeInInterruptibleRegion(QObject *inInterruptibleRegion) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeInInterruptibleRegion(qmodelingobjectproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeInInterruptibleRegion(qmodelingelementproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion)); } void QUmlReadVariableActionObject::addInPartition(QObject *inPartition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addInPartition(qmodelingobjectproperty_cast<QUmlActivityPartition *>(inPartition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition)); } void QUmlReadVariableActionObject::removeInPartition(QObject *inPartition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeInPartition(qmodelingobjectproperty_cast<QUmlActivityPartition *>(inPartition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition)); } void QUmlReadVariableActionObject::setInStructuredNode(QObject *inStructuredNode) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setInStructuredNode(qmodelingobjectproperty_cast<QUmlStructuredActivityNode *>(inStructuredNode)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setInStructuredNode(qmodelingelementproperty_cast<QUmlStructuredActivityNode *>(inStructuredNode)); } void QUmlReadVariableActionObject::addIncoming(QObject *incoming) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addIncoming(qmodelingobjectproperty_cast<QUmlActivityEdge *>(incoming)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addIncoming(qmodelingelementproperty_cast<QUmlActivityEdge *>(incoming)); } void QUmlReadVariableActionObject::removeIncoming(QObject *incoming) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeIncoming(qmodelingobjectproperty_cast<QUmlActivityEdge *>(incoming)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeIncoming(qmodelingelementproperty_cast<QUmlActivityEdge *>(incoming)); } void QUmlReadVariableActionObject::addOutgoing(QObject *outgoing) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addOutgoing(qmodelingobjectproperty_cast<QUmlActivityEdge *>(outgoing)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addOutgoing(qmodelingelementproperty_cast<QUmlActivityEdge *>(outgoing)); } void QUmlReadVariableActionObject::removeOutgoing(QObject *outgoing) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeOutgoing(qmodelingobjectproperty_cast<QUmlActivityEdge *>(outgoing)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeOutgoing(qmodelingelementproperty_cast<QUmlActivityEdge *>(outgoing)); } void QUmlReadVariableActionObject::addRedefinedNode(QObject *redefinedNode) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addRedefinedNode(qmodelingobjectproperty_cast<QUmlActivityNode *>(redefinedNode)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addRedefinedNode(qmodelingelementproperty_cast<QUmlActivityNode *>(redefinedNode)); } void QUmlReadVariableActionObject::removeRedefinedNode(QObject *redefinedNode) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinedNode(qmodelingobjectproperty_cast<QUmlActivityNode *>(redefinedNode)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeRedefinedNode(qmodelingelementproperty_cast<QUmlActivityNode *>(redefinedNode)); } // SLOTS FOR OWNED ATTRIBUTES [ExecutableNode] void QUmlReadVariableActionObject::addHandler(QObject *handler) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addHandler(qmodelingobjectproperty_cast<QUmlExceptionHandler *>(handler)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addHandler(qmodelingelementproperty_cast<QUmlExceptionHandler *>(handler)); } void QUmlReadVariableActionObject::removeHandler(QObject *handler) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeHandler(qmodelingobjectproperty_cast<QUmlExceptionHandler *>(handler)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeHandler(qmodelingelementproperty_cast<QUmlExceptionHandler *>(handler)); } // SLOTS FOR OWNED ATTRIBUTES [Action] void QUmlReadVariableActionObject::setContext(QObject *context) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setContext(qmodelingobjectproperty_cast<QUmlClassifier *>(context)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setContext(qmodelingelementproperty_cast<QUmlClassifier *>(context)); } void QUmlReadVariableActionObject::addInput(QObject *input) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addInput(qmodelingobjectproperty_cast<QUmlInputPin *>(input)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addInput(qmodelingelementproperty_cast<QUmlInputPin *>(input)); } void QUmlReadVariableActionObject::removeInput(QObject *input) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeInput(qmodelingobjectproperty_cast<QUmlInputPin *>(input)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeInput(qmodelingelementproperty_cast<QUmlInputPin *>(input)); } void QUmlReadVariableActionObject::setLocallyReentrant(bool isLocallyReentrant) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setLocallyReentrant(isLocallyReentrant); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setLocallyReentrant(isLocallyReentrant); } void QUmlReadVariableActionObject::unsetLocallyReentrant() { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("locallyReentrant")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("locallyReentrant")); } void QUmlReadVariableActionObject::addLocalPostcondition(QObject *localPostcondition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addLocalPostcondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPostcondition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addLocalPostcondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPostcondition)); } void QUmlReadVariableActionObject::removeLocalPostcondition(QObject *localPostcondition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeLocalPostcondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPostcondition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeLocalPostcondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPostcondition)); } void QUmlReadVariableActionObject::addLocalPrecondition(QObject *localPrecondition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addLocalPrecondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPrecondition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addLocalPrecondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPrecondition)); } void QUmlReadVariableActionObject::removeLocalPrecondition(QObject *localPrecondition) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeLocalPrecondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPrecondition)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeLocalPrecondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPrecondition)); } void QUmlReadVariableActionObject::addOutput(QObject *output) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->addOutput(qmodelingobjectproperty_cast<QUmlOutputPin *>(output)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->addOutput(qmodelingelementproperty_cast<QUmlOutputPin *>(output)); } void QUmlReadVariableActionObject::removeOutput(QObject *output) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->removeOutput(qmodelingobjectproperty_cast<QUmlOutputPin *>(output)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->removeOutput(qmodelingelementproperty_cast<QUmlOutputPin *>(output)); } // SLOTS FOR OWNED ATTRIBUTES [VariableAction] void QUmlReadVariableActionObject::setVariable(QObject *variable) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setVariable(qmodelingobjectproperty_cast<QUmlVariable *>(variable)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setVariable(qmodelingelementproperty_cast<QUmlVariable *>(variable)); } // SLOTS FOR OWNED ATTRIBUTES [ReadVariableAction] void QUmlReadVariableActionObject::setResult(QObject *result) { - qmodelingobjectproperty_cast<QUmlReadVariableAction *>(this)->setResult(qmodelingobjectproperty_cast<QUmlOutputPin *>(result)); + qmodelingelementproperty_cast<QUmlReadVariableAction *>(this)->setResult(qmodelingelementproperty_cast<QUmlOutputPin *>(result)); +} + + +void QUmlReadVariableActionObject::setGroupProperties() +{ + Q_D(QModelingObject); + const QMetaObject *metaObject = this->metaObject(); + + d->propertyGroups << QStringLiteral("QObject"); + d->groupProperties.insert(QStringLiteral("QObject"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("objectName")))); + + d->propertyGroups << QStringLiteral("QUmlElement"); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedComments")))); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedElements")))); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owner")))); + + d->propertyGroups << QStringLiteral("QUmlNamedElement"); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("clientDependencies")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("name")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("nameExpression")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("namespace_")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("qualifiedName")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility")))); + + d->propertyGroups << QStringLiteral("QUmlRedefinableElement"); + d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isLeaf")))); + d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedElements")))); + d->groupProperties.insert(QStringLiteral("QUmlRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinitionContexts")))); + + d->propertyGroups << QStringLiteral("QUmlActivityNode"); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("activity")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inGroups")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inInterruptibleRegions")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inPartitions")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inStructuredNode")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("incomings")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("outgoings")))); + d->groupProperties.insert(QStringLiteral("QUmlActivityNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedNodes")))); + + d->propertyGroups << QStringLiteral("QUmlExecutableNode"); + d->groupProperties.insert(QStringLiteral("QUmlExecutableNode"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("handlers")))); + + d->propertyGroups << QStringLiteral("QUmlAction"); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("context")))); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inputs")))); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isLocallyReentrant")))); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("localPostconditions")))); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("localPreconditions")))); + d->groupProperties.insert(QStringLiteral("QUmlAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("outputs")))); + + d->propertyGroups << QStringLiteral("QUmlVariableAction"); + d->groupProperties.insert(QStringLiteral("QUmlVariableAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("variable")))); + + d->propertyGroups << QStringLiteral("QUmlReadVariableAction"); + d->groupProperties.insert(QStringLiteral("QUmlReadVariableAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("result")))); +} + +void QUmlReadVariableActionObject::setPropertyData() +{ + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, PropertyClassRole, QStringLiteral("QUmlReadVariableAction")); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, DocumentationRole, QStringLiteral("Gives the output pin on which the result is put.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, SubsettedPropertiesRole, QStringLiteral("Action-output")); + Q_DECLARE_METAPROPERTY_INFO(QUmlReadVariableAction, result, OppositeEndRole, QStringLiteral("")); + } QT_END_NAMESPACE |