summaryrefslogtreecommitdiffstats
path: root/src/uml/qobjects/qumlreadselfactionobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qobjects/qumlreadselfactionobject.cpp')
-rw-r--r--src/uml/qobjects/qumlreadselfactionobject.cpp294
1 files changed, 182 insertions, 112 deletions
diff --git a/src/uml/qobjects/qumlreadselfactionobject.cpp b/src/uml/qobjects/qumlreadselfactionobject.cpp
index 39abaed1..7cfbe3fd 100644
--- a/src/uml/qobjects/qumlreadselfactionobject.cpp
+++ b/src/uml/qobjects/qumlreadselfactionobject.cpp
@@ -39,6 +39,7 @@
**
****************************************************************************/
#include "qumlreadselfactionobject_p.h"
+#include "private/qmodelingobject_p.h"
#include <QtUml/QUmlReadSelfAction>
#include <QtUml/QUmlActivity>
@@ -64,16 +65,18 @@
QT_BEGIN_NAMESPACE
-QUmlReadSelfActionObject::QUmlReadSelfActionObject(QUmlReadSelfAction *qModelingObject)
+QUmlReadSelfActionObject::QUmlReadSelfActionObject(QUmlReadSelfAction *qModelingElement)
{
- setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject)));
+ setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement)));
+ setGroupProperties();
+ setPropertyData();
}
QUmlReadSelfActionObject::~QUmlReadSelfActionObject()
{
if (!property("deletingFromModelingObject").isValid()) {
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->deletingFromQObject = true;
- delete qmodelingobjectproperty_cast<QUmlComment *>(this);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->deletingFromQModelingObject = true;
+ delete qmodelingelementproperty_cast<QUmlComment *>(this);
}
}
@@ -82,25 +85,25 @@ QUmlReadSelfActionObject::~QUmlReadSelfActionObject()
const QSet<QObject *> QUmlReadSelfActionObject::ownedComments() const
{
QSet<QObject *> set;
- foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->ownedComments())
- set.insert(element->asQObject());
+ foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->ownedComments())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::ownedElements() const
{
QSet<QObject *> set;
- foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->ownedElements())
- set.insert(element->asQObject());
+ foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->ownedElements())
+ set.insert(element->asQModelingObject());
return set;
}
QObject *QUmlReadSelfActionObject::owner() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->owner())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->owner())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->owner()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->owner()->asQModelingObject();
}
// OWNED ATTRIBUTES [NamedElement]
@@ -108,62 +111,62 @@ QObject *QUmlReadSelfActionObject::owner() const
const QSet<QObject *> QUmlReadSelfActionObject::clientDependencies() const
{
QSet<QObject *> set;
- foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->clientDependencies())
- set.insert(element->asQObject());
+ foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->clientDependencies())
+ set.insert(element->asQModelingObject());
return set;
}
QString QUmlReadSelfActionObject::name() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->name();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->name();
}
QObject *QUmlReadSelfActionObject::nameExpression() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->nameExpression())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->nameExpression())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->nameExpression()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->nameExpression()->asQModelingObject();
}
QObject *QUmlReadSelfActionObject::namespace_() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->namespace_())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->namespace_())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->namespace_()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->namespace_()->asQModelingObject();
}
QString QUmlReadSelfActionObject::qualifiedName() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->qualifiedName();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->qualifiedName();
}
QtUml::VisibilityKind QUmlReadSelfActionObject::visibility() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->visibility();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->visibility();
}
// OWNED ATTRIBUTES [RedefinableElement]
bool QUmlReadSelfActionObject::isLeaf() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->isLeaf();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->isLeaf();
}
const QSet<QObject *> QUmlReadSelfActionObject::redefinedElements() const
{
QSet<QObject *> set;
- foreach (QUmlRedefinableElement *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->redefinedElements())
- set.insert(element->asQObject());
+ foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->redefinedElements())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::redefinitionContexts() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->redefinitionContexts())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->redefinitionContexts())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -171,65 +174,65 @@ const QSet<QObject *> QUmlReadSelfActionObject::redefinitionContexts() const
QObject *QUmlReadSelfActionObject::activity() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->activity())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->activity())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->activity()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->activity()->asQModelingObject();
}
const QSet<QObject *> QUmlReadSelfActionObject::inGroups() const
{
QSet<QObject *> set;
- foreach (QUmlActivityGroup *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inGroups())
- set.insert(element->asQObject());
+ foreach (QUmlActivityGroup *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inGroups())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::inInterruptibleRegions() const
{
QSet<QObject *> set;
- foreach (QUmlInterruptibleActivityRegion *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inInterruptibleRegions())
- set.insert(element->asQObject());
+ foreach (QUmlInterruptibleActivityRegion *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inInterruptibleRegions())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::inPartitions() const
{
QSet<QObject *> set;
- foreach (QUmlActivityPartition *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inPartitions())
- set.insert(element->asQObject());
+ foreach (QUmlActivityPartition *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inPartitions())
+ set.insert(element->asQModelingObject());
return set;
}
QObject *QUmlReadSelfActionObject::inStructuredNode() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inStructuredNode())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inStructuredNode())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inStructuredNode()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inStructuredNode()->asQModelingObject();
}
const QSet<QObject *> QUmlReadSelfActionObject::incomings() const
{
QSet<QObject *> set;
- foreach (QUmlActivityEdge *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->incomings())
- set.insert(element->asQObject());
+ foreach (QUmlActivityEdge *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->incomings())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::outgoings() const
{
QSet<QObject *> set;
- foreach (QUmlActivityEdge *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->outgoings())
- set.insert(element->asQObject());
+ foreach (QUmlActivityEdge *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->outgoings())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::redefinedNodes() const
{
QSet<QObject *> set;
- foreach (QUmlActivityNode *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->redefinedNodes())
- set.insert(element->asQObject());
+ foreach (QUmlActivityNode *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->redefinedNodes())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -238,8 +241,8 @@ const QSet<QObject *> QUmlReadSelfActionObject::redefinedNodes() const
const QSet<QObject *> QUmlReadSelfActionObject::handlers() const
{
QSet<QObject *> set;
- foreach (QUmlExceptionHandler *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->handlers())
- set.insert(element->asQObject());
+ foreach (QUmlExceptionHandler *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->handlers())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -247,46 +250,46 @@ const QSet<QObject *> QUmlReadSelfActionObject::handlers() const
QObject *QUmlReadSelfActionObject::context() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->context())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->context())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->context()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->context()->asQModelingObject();
}
const QList<QObject *> QUmlReadSelfActionObject::inputs() const
{
QList<QObject *> list;
- foreach (QUmlInputPin *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->inputs())
- list.append(element->asQObject());
+ foreach (QUmlInputPin *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->inputs())
+ list.append(element->asQModelingObject());
return list;
}
bool QUmlReadSelfActionObject::isLocallyReentrant() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->isLocallyReentrant();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->isLocallyReentrant();
}
const QSet<QObject *> QUmlReadSelfActionObject::localPostconditions() const
{
QSet<QObject *> set;
- foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->localPostconditions())
- set.insert(element->asQObject());
+ foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->localPostconditions())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlReadSelfActionObject::localPreconditions() const
{
QSet<QObject *> set;
- foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->localPreconditions())
- set.insert(element->asQObject());
+ foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->localPreconditions())
+ set.insert(element->asQModelingObject());
return set;
}
const QList<QObject *> QUmlReadSelfActionObject::outputs() const
{
QList<QObject *> list;
- foreach (QUmlOutputPin *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->outputs())
- list.append(element->asQObject());
+ foreach (QUmlOutputPin *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->outputs())
+ list.append(element->asQModelingObject());
return list;
}
@@ -294,10 +297,10 @@ const QList<QObject *> QUmlReadSelfActionObject::outputs() const
QObject *QUmlReadSelfActionObject::result() const
{
- if (!qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->result())
+ if (!qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->result())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->result()->asQObject();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->result()->asQModelingObject();
}
// OPERATIONS [Element]
@@ -305,14 +308,14 @@ QObject *QUmlReadSelfActionObject::result() const
QSet<QObject *> QUmlReadSelfActionObject::allOwnedElements() const
{
QSet<QObject *> set;
- foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->allOwnedElements())
- set.insert(element->asQObject());
+ foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->allOwnedElements())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlReadSelfActionObject::mustBeOwned() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->mustBeOwned();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->mustBeOwned();
}
// OPERATIONS [NamedElement]
@@ -320,283 +323,350 @@ bool QUmlReadSelfActionObject::mustBeOwned() const
QList<QObject *> QUmlReadSelfActionObject::allNamespaces() const
{
QList<QObject *> set;
- foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->allNamespaces())
- set.append(element->asQObject());
+ foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->allNamespaces())
+ set.append(element->asQModelingObject());
return set;
}
QSet<QObject *> QUmlReadSelfActionObject::allOwningPackages() const
{
QSet<QObject *> set;
- foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->allOwningPackages())
- set.insert(element->asQObject());
+ foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->allOwningPackages())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlReadSelfActionObject::isDistinguishableFrom(QObject *n, QObject *ns) const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns));
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns));
}
QString QUmlReadSelfActionObject::separator() const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->separator();
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->separator();
}
// OPERATIONS [RedefinableElement]
bool QUmlReadSelfActionObject::isConsistentWith(QObject *redefinee) const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->isConsistentWith(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinee));
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee));
}
bool QUmlReadSelfActionObject::isRedefinitionContextValid(QObject *redefined) const
{
- return qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->isRedefinitionContextValid(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefined));
+ return qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined));
}
// SLOTS FOR OWNED ATTRIBUTES [Element]
void QUmlReadSelfActionObject::addOwnedComment(QObject *ownedComment)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
}
void QUmlReadSelfActionObject::removeOwnedComment(QObject *ownedComment)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
}
void QUmlReadSelfActionObject::addOwnedElement(QObject *ownedElement)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
}
void QUmlReadSelfActionObject::removeOwnedElement(QObject *ownedElement)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
}
void QUmlReadSelfActionObject::setOwner(QObject *owner)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner));
}
// SLOTS FOR OWNED ATTRIBUTES [NamedElement]
void QUmlReadSelfActionObject::addClientDependency(QObject *clientDependency)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
}
void QUmlReadSelfActionObject::removeClientDependency(QObject *clientDependency)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
}
void QUmlReadSelfActionObject::setName(QString name)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setName(name);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setName(name);
}
void QUmlReadSelfActionObject::setNameExpression(QObject *nameExpression)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression));
}
void QUmlReadSelfActionObject::setNamespace(QObject *namespace_)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_));
}
void QUmlReadSelfActionObject::setQualifiedName(QString qualifiedName)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setQualifiedName(qualifiedName);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setQualifiedName(qualifiedName);
}
void QUmlReadSelfActionObject::setVisibility(QtUml::VisibilityKind visibility)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setVisibility(visibility);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setVisibility(visibility);
}
// SLOTS FOR OWNED ATTRIBUTES [RedefinableElement]
void QUmlReadSelfActionObject::setLeaf(bool isLeaf)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setLeaf(isLeaf);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setLeaf(isLeaf);
}
void QUmlReadSelfActionObject::unsetLeaf()
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("leaf"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("leaf"));
}
void QUmlReadSelfActionObject::addRedefinedElement(QObject *redefinedElement)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
}
void QUmlReadSelfActionObject::removeRedefinedElement(QObject *redefinedElement)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
}
void QUmlReadSelfActionObject::addRedefinitionContext(QObject *redefinitionContext)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
}
void QUmlReadSelfActionObject::removeRedefinitionContext(QObject *redefinitionContext)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
}
// SLOTS FOR OWNED ATTRIBUTES [ActivityNode]
void QUmlReadSelfActionObject::setActivity(QObject *activity)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setActivity(qmodelingobjectproperty_cast<QUmlActivity *>(activity));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setActivity(qmodelingelementproperty_cast<QUmlActivity *>(activity));
}
void QUmlReadSelfActionObject::addInGroup(QObject *inGroup)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addInGroup(qmodelingobjectproperty_cast<QUmlActivityGroup *>(inGroup));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup));
}
void QUmlReadSelfActionObject::removeInGroup(QObject *inGroup)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeInGroup(qmodelingobjectproperty_cast<QUmlActivityGroup *>(inGroup));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeInGroup(qmodelingelementproperty_cast<QUmlActivityGroup *>(inGroup));
}
void QUmlReadSelfActionObject::addInInterruptibleRegion(QObject *inInterruptibleRegion)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addInInterruptibleRegion(qmodelingobjectproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addInInterruptibleRegion(qmodelingelementproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion));
}
void QUmlReadSelfActionObject::removeInInterruptibleRegion(QObject *inInterruptibleRegion)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeInInterruptibleRegion(qmodelingobjectproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeInInterruptibleRegion(qmodelingelementproperty_cast<QUmlInterruptibleActivityRegion *>(inInterruptibleRegion));
}
void QUmlReadSelfActionObject::addInPartition(QObject *inPartition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addInPartition(qmodelingobjectproperty_cast<QUmlActivityPartition *>(inPartition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition));
}
void QUmlReadSelfActionObject::removeInPartition(QObject *inPartition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeInPartition(qmodelingobjectproperty_cast<QUmlActivityPartition *>(inPartition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeInPartition(qmodelingelementproperty_cast<QUmlActivityPartition *>(inPartition));
}
void QUmlReadSelfActionObject::setInStructuredNode(QObject *inStructuredNode)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setInStructuredNode(qmodelingobjectproperty_cast<QUmlStructuredActivityNode *>(inStructuredNode));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setInStructuredNode(qmodelingelementproperty_cast<QUmlStructuredActivityNode *>(inStructuredNode));
}
void QUmlReadSelfActionObject::addIncoming(QObject *incoming)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addIncoming(qmodelingobjectproperty_cast<QUmlActivityEdge *>(incoming));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addIncoming(qmodelingelementproperty_cast<QUmlActivityEdge *>(incoming));
}
void QUmlReadSelfActionObject::removeIncoming(QObject *incoming)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeIncoming(qmodelingobjectproperty_cast<QUmlActivityEdge *>(incoming));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeIncoming(qmodelingelementproperty_cast<QUmlActivityEdge *>(incoming));
}
void QUmlReadSelfActionObject::addOutgoing(QObject *outgoing)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addOutgoing(qmodelingobjectproperty_cast<QUmlActivityEdge *>(outgoing));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addOutgoing(qmodelingelementproperty_cast<QUmlActivityEdge *>(outgoing));
}
void QUmlReadSelfActionObject::removeOutgoing(QObject *outgoing)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeOutgoing(qmodelingobjectproperty_cast<QUmlActivityEdge *>(outgoing));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeOutgoing(qmodelingelementproperty_cast<QUmlActivityEdge *>(outgoing));
}
void QUmlReadSelfActionObject::addRedefinedNode(QObject *redefinedNode)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addRedefinedNode(qmodelingobjectproperty_cast<QUmlActivityNode *>(redefinedNode));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addRedefinedNode(qmodelingelementproperty_cast<QUmlActivityNode *>(redefinedNode));
}
void QUmlReadSelfActionObject::removeRedefinedNode(QObject *redefinedNode)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinedNode(qmodelingobjectproperty_cast<QUmlActivityNode *>(redefinedNode));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeRedefinedNode(qmodelingelementproperty_cast<QUmlActivityNode *>(redefinedNode));
}
// SLOTS FOR OWNED ATTRIBUTES [ExecutableNode]
void QUmlReadSelfActionObject::addHandler(QObject *handler)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addHandler(qmodelingobjectproperty_cast<QUmlExceptionHandler *>(handler));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addHandler(qmodelingelementproperty_cast<QUmlExceptionHandler *>(handler));
}
void QUmlReadSelfActionObject::removeHandler(QObject *handler)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeHandler(qmodelingobjectproperty_cast<QUmlExceptionHandler *>(handler));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeHandler(qmodelingelementproperty_cast<QUmlExceptionHandler *>(handler));
}
// SLOTS FOR OWNED ATTRIBUTES [Action]
void QUmlReadSelfActionObject::setContext(QObject *context)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setContext(qmodelingobjectproperty_cast<QUmlClassifier *>(context));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setContext(qmodelingelementproperty_cast<QUmlClassifier *>(context));
}
void QUmlReadSelfActionObject::addInput(QObject *input)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addInput(qmodelingobjectproperty_cast<QUmlInputPin *>(input));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addInput(qmodelingelementproperty_cast<QUmlInputPin *>(input));
}
void QUmlReadSelfActionObject::removeInput(QObject *input)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeInput(qmodelingobjectproperty_cast<QUmlInputPin *>(input));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeInput(qmodelingelementproperty_cast<QUmlInputPin *>(input));
}
void QUmlReadSelfActionObject::setLocallyReentrant(bool isLocallyReentrant)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setLocallyReentrant(isLocallyReentrant);
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setLocallyReentrant(isLocallyReentrant);
}
void QUmlReadSelfActionObject::unsetLocallyReentrant()
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("locallyReentrant"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("locallyReentrant"));
}
void QUmlReadSelfActionObject::addLocalPostcondition(QObject *localPostcondition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addLocalPostcondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPostcondition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addLocalPostcondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPostcondition));
}
void QUmlReadSelfActionObject::removeLocalPostcondition(QObject *localPostcondition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeLocalPostcondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPostcondition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeLocalPostcondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPostcondition));
}
void QUmlReadSelfActionObject::addLocalPrecondition(QObject *localPrecondition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addLocalPrecondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPrecondition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addLocalPrecondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPrecondition));
}
void QUmlReadSelfActionObject::removeLocalPrecondition(QObject *localPrecondition)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeLocalPrecondition(qmodelingobjectproperty_cast<QUmlConstraint *>(localPrecondition));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeLocalPrecondition(qmodelingelementproperty_cast<QUmlConstraint *>(localPrecondition));
}
void QUmlReadSelfActionObject::addOutput(QObject *output)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->addOutput(qmodelingobjectproperty_cast<QUmlOutputPin *>(output));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->addOutput(qmodelingelementproperty_cast<QUmlOutputPin *>(output));
}
void QUmlReadSelfActionObject::removeOutput(QObject *output)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->removeOutput(qmodelingobjectproperty_cast<QUmlOutputPin *>(output));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->removeOutput(qmodelingelementproperty_cast<QUmlOutputPin *>(output));
}
// SLOTS FOR OWNED ATTRIBUTES [ReadSelfAction]
void QUmlReadSelfActionObject::setResult(QObject *result)
{
- qmodelingobjectproperty_cast<QUmlReadSelfAction *>(this)->setResult(qmodelingobjectproperty_cast<QUmlOutputPin *>(result));
+ qmodelingelementproperty_cast<QUmlReadSelfAction *>(this)->setResult(qmodelingelementproperty_cast<QUmlOutputPin *>(result));
+}
+
+
+void QUmlReadSelfActionObject::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("QUmlReadSelfAction");
+ d->groupProperties.insert(QStringLiteral("QUmlReadSelfAction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("result"))));
+}
+
+void QUmlReadSelfActionObject::setPropertyData()
+{
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, AggregationRole, QStringLiteral("composite"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, PropertyClassRole, QStringLiteral("QUmlReadSelfAction"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, IsDerivedRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, IsDerivedUnionRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, DocumentationRole, QStringLiteral("Gives the output pin on which the hosting object is placed."));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, RedefinedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, SubsettedPropertiesRole, QStringLiteral("Action-output"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlReadSelfAction, result, OppositeEndRole, QStringLiteral(""));
+
}
QT_END_NAMESPACE