summaryrefslogtreecommitdiffstats
path: root/src/uml/qobjects/qumlextensionobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qobjects/qumlextensionobject.cpp')
-rw-r--r--src/uml/qobjects/qumlextensionobject.cpp527
1 files changed, 323 insertions, 204 deletions
diff --git a/src/uml/qobjects/qumlextensionobject.cpp b/src/uml/qobjects/qumlextensionobject.cpp
index b452c5e0..2805e733 100644
--- a/src/uml/qobjects/qumlextensionobject.cpp
+++ b/src/uml/qobjects/qumlextensionobject.cpp
@@ -39,6 +39,7 @@
**
****************************************************************************/
#include "qumlextensionobject_p.h"
+#include "private/qmodelingobject_p.h"
#include <QtUml/QUmlExtension>
#include <QtUml/QUmlClass>
@@ -73,16 +74,18 @@
QT_BEGIN_NAMESPACE
-QUmlExtensionObject::QUmlExtensionObject(QUmlExtension *qModelingObject)
+QUmlExtensionObject::QUmlExtensionObject(QUmlExtension *qModelingElement)
{
- setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject)));
+ setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement)));
+ setGroupProperties();
+ setPropertyData();
}
QUmlExtensionObject::~QUmlExtensionObject()
{
if (!property("deletingFromModelingObject").isValid()) {
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->deletingFromQObject = true;
- delete qmodelingobjectproperty_cast<QUmlComment *>(this);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->deletingFromQModelingObject = true;
+ delete qmodelingelementproperty_cast<QUmlComment *>(this);
}
}
@@ -91,25 +94,25 @@ QUmlExtensionObject::~QUmlExtensionObject()
const QSet<QObject *> QUmlExtensionObject::ownedComments() const
{
QSet<QObject *> set;
- foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedComments())
- set.insert(element->asQObject());
+ foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedComments())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::ownedElements() const
{
QSet<QObject *> set;
- foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedElements())
- set.insert(element->asQObject());
+ foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedElements())
+ set.insert(element->asQModelingObject());
return set;
}
QObject *QUmlExtensionObject::owner() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->owner())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->owner())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->owner()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->owner()->asQModelingObject();
}
// OWNED ATTRIBUTES [NamedElement]
@@ -117,35 +120,35 @@ QObject *QUmlExtensionObject::owner() const
const QSet<QObject *> QUmlExtensionObject::clientDependencies() const
{
QSet<QObject *> set;
- foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->clientDependencies())
- set.insert(element->asQObject());
+ foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->clientDependencies())
+ set.insert(element->asQModelingObject());
return set;
}
QString QUmlExtensionObject::name() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->name();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->name();
}
QObject *QUmlExtensionObject::nameExpression() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->nameExpression())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->nameExpression())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->nameExpression()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->nameExpression()->asQModelingObject();
}
QObject *QUmlExtensionObject::namespace_() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->namespace_())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->namespace_())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->namespace_()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->namespace_()->asQModelingObject();
}
QString QUmlExtensionObject::qualifiedName() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->qualifiedName();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->qualifiedName();
}
// OWNED ATTRIBUTES [Namespace]
@@ -153,48 +156,48 @@ QString QUmlExtensionObject::qualifiedName() const
const QSet<QObject *> QUmlExtensionObject::elementImports() const
{
QSet<QObject *> set;
- foreach (QUmlElementImport *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->elementImports())
- set.insert(element->asQObject());
+ foreach (QUmlElementImport *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->elementImports())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::importedMembers() const
{
QSet<QObject *> set;
- foreach (QUmlPackageableElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->importedMembers())
- set.insert(element->asQObject());
+ foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->importedMembers())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::members() const
{
QSet<QObject *> set;
- foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->members())
- set.insert(element->asQObject());
+ foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->members())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::ownedMembers() const
{
QSet<QObject *> set;
- foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedMembers())
- set.insert(element->asQObject());
+ foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedMembers())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::ownedRules() const
{
QSet<QObject *> set;
- foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedRules())
- set.insert(element->asQObject());
+ foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedRules())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::packageImports() const
{
QSet<QObject *> set;
- foreach (QUmlPackageImport *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->packageImports())
- set.insert(element->asQObject());
+ foreach (QUmlPackageImport *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->packageImports())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -202,49 +205,49 @@ const QSet<QObject *> QUmlExtensionObject::packageImports() const
QObject *QUmlExtensionObject::owningTemplateParameter() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->owningTemplateParameter())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->owningTemplateParameter())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->owningTemplateParameter()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->owningTemplateParameter()->asQModelingObject();
}
// OWNED ATTRIBUTES [PackageableElement]
QtUml::VisibilityKind QUmlExtensionObject::visibility() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->visibility();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->visibility();
}
// OWNED ATTRIBUTES [Type]
QObject *QUmlExtensionObject::package() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->package())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->package())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->package()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->package()->asQModelingObject();
}
// OWNED ATTRIBUTES [RedefinableElement]
bool QUmlExtensionObject::isLeaf() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isLeaf();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isLeaf();
}
const QSet<QObject *> QUmlExtensionObject::redefinedElements() const
{
QSet<QObject *> set;
- foreach (QUmlRedefinableElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->redefinedElements())
- set.insert(element->asQObject());
+ foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->redefinedElements())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::redefinitionContexts() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->redefinitionContexts())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->redefinitionContexts())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -253,8 +256,8 @@ const QSet<QObject *> QUmlExtensionObject::redefinitionContexts() const
const QSet<QObject *> QUmlExtensionObject::templateBindings() const
{
QSet<QObject *> set;
- foreach (QUmlTemplateBinding *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->templateBindings())
- set.insert(element->asQObject());
+ foreach (QUmlTemplateBinding *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->templateBindings())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -263,122 +266,122 @@ const QSet<QObject *> QUmlExtensionObject::templateBindings() const
const QSet<QObject *> QUmlExtensionObject::attributes() const
{
QSet<QObject *> set;
- foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->attributes())
- set.insert(element->asQObject());
+ foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->attributes())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::collaborationUses() const
{
QSet<QObject *> set;
- foreach (QUmlCollaborationUse *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->collaborationUses())
- set.insert(element->asQObject());
+ foreach (QUmlCollaborationUse *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->collaborationUses())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::features() const
{
QSet<QObject *> set;
- foreach (QUmlFeature *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->features())
- set.insert(element->asQObject());
+ foreach (QUmlFeature *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->features())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::generals() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->generals())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->generals())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::generalizations() const
{
QSet<QObject *> set;
- foreach (QUmlGeneralization *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->generalizations())
- set.insert(element->asQObject());
+ foreach (QUmlGeneralization *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->generalizations())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::inheritedMembers() const
{
QSet<QObject *> set;
- foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->inheritedMembers())
- set.insert(element->asQObject());
+ foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->inheritedMembers())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::isAbstract() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isAbstract();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isAbstract();
}
bool QUmlExtensionObject::isFinalSpecialization() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isFinalSpecialization();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isFinalSpecialization();
}
QObject *QUmlExtensionObject::ownedTemplateSignature() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedTemplateSignature())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedTemplateSignature())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedTemplateSignature()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedTemplateSignature()->asQModelingObject();
}
const QSet<QObject *> QUmlExtensionObject::ownedUseCases() const
{
QSet<QObject *> set;
- foreach (QUmlUseCase *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedUseCases())
- set.insert(element->asQObject());
+ foreach (QUmlUseCase *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedUseCases())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::powertypeExtents() const
{
QSet<QObject *> set;
- foreach (QUmlGeneralizationSet *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->powertypeExtents())
- set.insert(element->asQObject());
+ foreach (QUmlGeneralizationSet *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->powertypeExtents())
+ set.insert(element->asQModelingObject());
return set;
}
const QSet<QObject *> QUmlExtensionObject::redefinedClassifiers() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->redefinedClassifiers())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->redefinedClassifiers())
+ set.insert(element->asQModelingObject());
return set;
}
QObject *QUmlExtensionObject::representation() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->representation())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->representation())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->representation()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->representation()->asQModelingObject();
}
const QSet<QObject *> QUmlExtensionObject::substitutions() const
{
QSet<QObject *> set;
- foreach (QUmlSubstitution *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->substitutions())
- set.insert(element->asQObject());
+ foreach (QUmlSubstitution *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->substitutions())
+ set.insert(element->asQModelingObject());
return set;
}
QObject *QUmlExtensionObject::templateParameter() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->templateParameter())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->templateParameter())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->templateParameter()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->templateParameter()->asQModelingObject();
}
const QSet<QObject *> QUmlExtensionObject::useCases() const
{
QSet<QObject *> set;
- foreach (QUmlUseCase *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->useCases())
- set.insert(element->asQObject());
+ foreach (QUmlUseCase *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->useCases())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -387,8 +390,8 @@ const QSet<QObject *> QUmlExtensionObject::useCases() const
const QSet<QObject *> QUmlExtensionObject::relatedElements() const
{
QSet<QObject *> set;
- foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->relatedElements())
- set.insert(element->asQObject());
+ foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->relatedElements())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -397,29 +400,29 @@ const QSet<QObject *> QUmlExtensionObject::relatedElements() const
const QList<QObject *> QUmlExtensionObject::endTypes() const
{
QList<QObject *> list;
- foreach (QUmlType *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->endTypes())
- list.append(element->asQObject());
+ foreach (QUmlType *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->endTypes())
+ list.append(element->asQModelingObject());
return list;
}
bool QUmlExtensionObject::isDerived() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isDerived();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isDerived();
}
const QList<QObject *> QUmlExtensionObject::memberEnds() const
{
QList<QObject *> list;
- foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->memberEnds())
- list.append(element->asQObject());
+ foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->memberEnds())
+ list.append(element->asQModelingObject());
return list;
}
const QSet<QObject *> QUmlExtensionObject::navigableOwnedEnds() const
{
QSet<QObject *> set;
- foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->navigableOwnedEnds())
- set.insert(element->asQObject());
+ foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->navigableOwnedEnds())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -427,23 +430,23 @@ const QSet<QObject *> QUmlExtensionObject::navigableOwnedEnds() const
bool QUmlExtensionObject::isRequired() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isRequired();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isRequired();
}
QObject *QUmlExtensionObject::metaclass() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->metaclass())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->metaclass())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->metaclass()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->metaclass()->asQModelingObject();
}
QObject *QUmlExtensionObject::ownedEnd() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedEnd())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedEnd())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->ownedEnd()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->ownedEnd()->asQModelingObject();
}
// OPERATIONS [Element]
@@ -451,14 +454,14 @@ QObject *QUmlExtensionObject::ownedEnd() const
QSet<QObject *> QUmlExtensionObject::allOwnedElements() const
{
QSet<QObject *> set;
- foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->allOwnedElements())
- set.insert(element->asQObject());
+ foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->allOwnedElements())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::mustBeOwned() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->mustBeOwned();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->mustBeOwned();
}
// OPERATIONS [NamedElement]
@@ -466,27 +469,27 @@ bool QUmlExtensionObject::mustBeOwned() const
QList<QObject *> QUmlExtensionObject::allNamespaces() const
{
QList<QObject *> set;
- foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->allNamespaces())
- set.append(element->asQObject());
+ foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->allNamespaces())
+ set.append(element->asQModelingObject());
return set;
}
QSet<QObject *> QUmlExtensionObject::allOwningPackages() const
{
QSet<QObject *> set;
- foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->allOwningPackages())
- set.insert(element->asQObject());
+ foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->allOwningPackages())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::isDistinguishableFrom(QObject *n, QObject *ns) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns));
}
QString QUmlExtensionObject::separator() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->separator();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->separator();
}
// OPERATIONS [Namespace]
@@ -495,44 +498,44 @@ QSet<QObject *> QUmlExtensionObject::excludeCollisions(QSet<QObject *> imps) con
{
QSet<QUmlPackageableElement *> impsConverted;
foreach (QObject *object, imps)
- impsConverted.insert(qmodelingobjectproperty_cast<QUmlPackageableElement *>(object));
+ impsConverted.insert(qmodelingelementproperty_cast<QUmlPackageableElement *>(object));
QSet<QObject *> set;
- foreach (QUmlPackageableElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->excludeCollisions(impsConverted))
- set.insert(element->asQObject());
+ foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->excludeCollisions(impsConverted))
+ set.insert(element->asQModelingObject());
return set;
}
QSet<QString> QUmlExtensionObject::getNamesOfMember(QObject *element) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->getNamesOfMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(element));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->getNamesOfMember(qmodelingelementproperty_cast<QUmlNamedElement *>(element));
}
QSet<QObject *> QUmlExtensionObject::importMembers(QSet<QObject *> imps) const
{
QSet<QUmlPackageableElement *> impsConverted;
foreach (QObject *object, imps)
- impsConverted.insert(qmodelingobjectproperty_cast<QUmlPackageableElement *>(object));
+ impsConverted.insert(qmodelingelementproperty_cast<QUmlPackageableElement *>(object));
QSet<QObject *> set;
- foreach (QUmlPackageableElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->importMembers(impsConverted))
- set.insert(element->asQObject());
+ foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->importMembers(impsConverted))
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::membersAreDistinguishable() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->membersAreDistinguishable();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->membersAreDistinguishable();
}
// OPERATIONS [ParameterableElement]
bool QUmlExtensionObject::isCompatibleWith(QObject *p) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isCompatibleWith(qmodelingobjectproperty_cast<QUmlParameterableElement *>(p));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isCompatibleWith(qmodelingelementproperty_cast<QUmlParameterableElement *>(p));
}
bool QUmlExtensionObject::isTemplateParameter() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isTemplateParameter();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isTemplateParameter();
}
// OPERATIONS [Type]
@@ -540,12 +543,12 @@ bool QUmlExtensionObject::isTemplateParameter() const
bool QUmlExtensionObject::isConsistentWith(QObject *redefinee) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isConsistentWith(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinee));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee));
}
bool QUmlExtensionObject::isRedefinitionContextValid(QObject *redefined) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isRedefinitionContextValid(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefined));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined));
}
// OPERATIONS [TemplateableElement]
@@ -553,8 +556,8 @@ bool QUmlExtensionObject::isRedefinitionContextValid(QObject *redefined) const
QSet<QObject *> QUmlExtensionObject::parameterableElements() const
{
QSet<QObject *> set;
- foreach (QUmlParameterableElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->parameterableElements())
- set.insert(element->asQObject());
+ foreach (QUmlParameterableElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->parameterableElements())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -563,63 +566,63 @@ QSet<QObject *> QUmlExtensionObject::parameterableElements() const
QSet<QObject *> QUmlExtensionObject::allFeatures() const
{
QSet<QObject *> set;
- foreach (QUmlFeature *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->allFeatures())
- set.insert(element->asQObject());
+ foreach (QUmlFeature *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->allFeatures())
+ set.insert(element->asQModelingObject());
return set;
}
QSet<QObject *> QUmlExtensionObject::allParents() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->allParents())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->allParents())
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::conformsTo(QObject *other) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->conformsTo(qmodelingobjectproperty_cast<QUmlClassifier *>(other));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->conformsTo(qmodelingelementproperty_cast<QUmlClassifier *>(other));
}
bool QUmlExtensionObject::hasVisibilityOf(QObject *n) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->hasVisibilityOf(qmodelingobjectproperty_cast<QUmlNamedElement *>(n));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->hasVisibilityOf(qmodelingelementproperty_cast<QUmlNamedElement *>(n));
}
QSet<QObject *> QUmlExtensionObject::inherit(QSet<QObject *> inhs) const
{
QSet<QUmlNamedElement *> inhsConverted;
foreach (QObject *object, inhs)
- inhsConverted.insert(qmodelingobjectproperty_cast<QUmlNamedElement *>(object));
+ inhsConverted.insert(qmodelingelementproperty_cast<QUmlNamedElement *>(object));
QSet<QObject *> set;
- foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->inherit(inhsConverted))
- set.insert(element->asQObject());
+ foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->inherit(inhsConverted))
+ set.insert(element->asQModelingObject());
return set;
}
QSet<QObject *> QUmlExtensionObject::inheritableMembers(QObject *c) const
{
QSet<QObject *> set;
- foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->inheritableMembers(qmodelingobjectproperty_cast<QUmlClassifier *>(c)))
- set.insert(element->asQObject());
+ foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->inheritableMembers(qmodelingelementproperty_cast<QUmlClassifier *>(c)))
+ set.insert(element->asQModelingObject());
return set;
}
bool QUmlExtensionObject::isTemplate() const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->isTemplate();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->isTemplate();
}
bool QUmlExtensionObject::maySpecializeType(QObject *c) const
{
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->maySpecializeType(qmodelingobjectproperty_cast<QUmlClassifier *>(c));
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->maySpecializeType(qmodelingelementproperty_cast<QUmlClassifier *>(c));
}
QSet<QObject *> QUmlExtensionObject::parents() const
{
QSet<QObject *> set;
- foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtension *>(this)->parents())
- set.insert(element->asQObject());
+ foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtension *>(this)->parents())
+ set.insert(element->asQModelingObject());
return set;
}
@@ -627,421 +630,537 @@ QSet<QObject *> QUmlExtensionObject::parents() const
QObject *QUmlExtensionObject::metaclassEnd() const
{
- if (!qmodelingobjectproperty_cast<QUmlExtension *>(this)->metaclassEnd())
+ if (!qmodelingelementproperty_cast<QUmlExtension *>(this)->metaclassEnd())
return 0;
else
- return qmodelingobjectproperty_cast<QUmlExtension *>(this)->metaclassEnd()->asQObject();
+ return qmodelingelementproperty_cast<QUmlExtension *>(this)->metaclassEnd()->asQModelingObject();
}
// SLOTS FOR OWNED ATTRIBUTES [Element]
void QUmlExtensionObject::addOwnedComment(QObject *ownedComment)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
}
void QUmlExtensionObject::removeOwnedComment(QObject *ownedComment)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment));
}
void QUmlExtensionObject::addOwnedElement(QObject *ownedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
}
void QUmlExtensionObject::removeOwnedElement(QObject *ownedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement));
}
void QUmlExtensionObject::setOwner(QObject *owner)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner));
}
// SLOTS FOR OWNED ATTRIBUTES [NamedElement]
void QUmlExtensionObject::addClientDependency(QObject *clientDependency)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
}
void QUmlExtensionObject::removeClientDependency(QObject *clientDependency)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency));
}
void QUmlExtensionObject::setName(QString name)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setName(name);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setName(name);
}
void QUmlExtensionObject::setNameExpression(QObject *nameExpression)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression));
}
void QUmlExtensionObject::setNamespace(QObject *namespace_)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_));
}
void QUmlExtensionObject::setQualifiedName(QString qualifiedName)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setQualifiedName(qualifiedName);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setQualifiedName(qualifiedName);
}
// SLOTS FOR OWNED ATTRIBUTES [Namespace]
void QUmlExtensionObject::addElementImport(QObject *elementImport)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addElementImport(qmodelingobjectproperty_cast<QUmlElementImport *>(elementImport));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addElementImport(qmodelingelementproperty_cast<QUmlElementImport *>(elementImport));
}
void QUmlExtensionObject::removeElementImport(QObject *elementImport)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeElementImport(qmodelingobjectproperty_cast<QUmlElementImport *>(elementImport));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeElementImport(qmodelingelementproperty_cast<QUmlElementImport *>(elementImport));
}
void QUmlExtensionObject::addImportedMember(QObject *importedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addImportedMember(qmodelingobjectproperty_cast<QUmlPackageableElement *>(importedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addImportedMember(qmodelingelementproperty_cast<QUmlPackageableElement *>(importedMember));
}
void QUmlExtensionObject::removeImportedMember(QObject *importedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeImportedMember(qmodelingobjectproperty_cast<QUmlPackageableElement *>(importedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeImportedMember(qmodelingelementproperty_cast<QUmlPackageableElement *>(importedMember));
}
void QUmlExtensionObject::addMember(QObject *member)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(member));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addMember(qmodelingelementproperty_cast<QUmlNamedElement *>(member));
}
void QUmlExtensionObject::removeMember(QObject *member)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(member));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeMember(qmodelingelementproperty_cast<QUmlNamedElement *>(member));
}
void QUmlExtensionObject::addOwnedMember(QObject *ownedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addOwnedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(ownedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addOwnedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(ownedMember));
}
void QUmlExtensionObject::removeOwnedMember(QObject *ownedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeOwnedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(ownedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeOwnedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(ownedMember));
}
void QUmlExtensionObject::addOwnedRule(QObject *ownedRule)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addOwnedRule(qmodelingobjectproperty_cast<QUmlConstraint *>(ownedRule));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addOwnedRule(qmodelingelementproperty_cast<QUmlConstraint *>(ownedRule));
}
void QUmlExtensionObject::removeOwnedRule(QObject *ownedRule)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeOwnedRule(qmodelingobjectproperty_cast<QUmlConstraint *>(ownedRule));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeOwnedRule(qmodelingelementproperty_cast<QUmlConstraint *>(ownedRule));
}
void QUmlExtensionObject::addPackageImport(QObject *packageImport)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addPackageImport(qmodelingobjectproperty_cast<QUmlPackageImport *>(packageImport));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addPackageImport(qmodelingelementproperty_cast<QUmlPackageImport *>(packageImport));
}
void QUmlExtensionObject::removePackageImport(QObject *packageImport)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removePackageImport(qmodelingobjectproperty_cast<QUmlPackageImport *>(packageImport));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removePackageImport(qmodelingelementproperty_cast<QUmlPackageImport *>(packageImport));
}
// SLOTS FOR OWNED ATTRIBUTES [ParameterableElement]
void QUmlExtensionObject::setOwningTemplateParameter(QObject *owningTemplateParameter)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setOwningTemplateParameter(qmodelingobjectproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setOwningTemplateParameter(qmodelingelementproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter));
}
// SLOTS FOR OWNED ATTRIBUTES [PackageableElement]
void QUmlExtensionObject::setVisibility(QtUml::VisibilityKind visibility)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setVisibility(visibility);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setVisibility(visibility);
}
void QUmlExtensionObject::unsetVisibility()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("visibility"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("visibility"));
}
// SLOTS FOR OWNED ATTRIBUTES [Type]
void QUmlExtensionObject::setPackage(QObject *package)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setPackage(qmodelingobjectproperty_cast<QUmlPackage *>(package));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setPackage(qmodelingelementproperty_cast<QUmlPackage *>(package));
}
// SLOTS FOR OWNED ATTRIBUTES [RedefinableElement]
void QUmlExtensionObject::setLeaf(bool isLeaf)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setLeaf(isLeaf);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setLeaf(isLeaf);
}
void QUmlExtensionObject::unsetLeaf()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("leaf"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("leaf"));
}
void QUmlExtensionObject::addRedefinedElement(QObject *redefinedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
}
void QUmlExtensionObject::removeRedefinedElement(QObject *redefinedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement));
}
void QUmlExtensionObject::addRedefinitionContext(QObject *redefinitionContext)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
}
void QUmlExtensionObject::removeRedefinitionContext(QObject *redefinitionContext)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext));
}
// SLOTS FOR OWNED ATTRIBUTES [TemplateableElement]
void QUmlExtensionObject::addTemplateBinding(QObject *templateBinding)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addTemplateBinding(qmodelingobjectproperty_cast<QUmlTemplateBinding *>(templateBinding));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addTemplateBinding(qmodelingelementproperty_cast<QUmlTemplateBinding *>(templateBinding));
}
void QUmlExtensionObject::removeTemplateBinding(QObject *templateBinding)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeTemplateBinding(qmodelingobjectproperty_cast<QUmlTemplateBinding *>(templateBinding));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeTemplateBinding(qmodelingelementproperty_cast<QUmlTemplateBinding *>(templateBinding));
}
// SLOTS FOR OWNED ATTRIBUTES [Classifier]
void QUmlExtensionObject::addAttribute(QObject *attribute)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(attribute));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addAttribute(qmodelingelementproperty_cast<QUmlProperty *>(attribute));
}
void QUmlExtensionObject::removeAttribute(QObject *attribute)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(attribute));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeAttribute(qmodelingelementproperty_cast<QUmlProperty *>(attribute));
}
void QUmlExtensionObject::addCollaborationUse(QObject *collaborationUse)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addCollaborationUse(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(collaborationUse));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addCollaborationUse(qmodelingelementproperty_cast<QUmlCollaborationUse *>(collaborationUse));
}
void QUmlExtensionObject::removeCollaborationUse(QObject *collaborationUse)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeCollaborationUse(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(collaborationUse));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeCollaborationUse(qmodelingelementproperty_cast<QUmlCollaborationUse *>(collaborationUse));
}
void QUmlExtensionObject::addFeature(QObject *feature)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addFeature(qmodelingobjectproperty_cast<QUmlFeature *>(feature));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addFeature(qmodelingelementproperty_cast<QUmlFeature *>(feature));
}
void QUmlExtensionObject::removeFeature(QObject *feature)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeFeature(qmodelingobjectproperty_cast<QUmlFeature *>(feature));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeFeature(qmodelingelementproperty_cast<QUmlFeature *>(feature));
}
void QUmlExtensionObject::addGeneral(QObject *general)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addGeneral(qmodelingobjectproperty_cast<QUmlClassifier *>(general));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addGeneral(qmodelingelementproperty_cast<QUmlClassifier *>(general));
}
void QUmlExtensionObject::removeGeneral(QObject *general)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeGeneral(qmodelingobjectproperty_cast<QUmlClassifier *>(general));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeGeneral(qmodelingelementproperty_cast<QUmlClassifier *>(general));
}
void QUmlExtensionObject::addGeneralization(QObject *generalization)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addGeneralization(qmodelingobjectproperty_cast<QUmlGeneralization *>(generalization));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addGeneralization(qmodelingelementproperty_cast<QUmlGeneralization *>(generalization));
}
void QUmlExtensionObject::removeGeneralization(QObject *generalization)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeGeneralization(qmodelingobjectproperty_cast<QUmlGeneralization *>(generalization));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeGeneralization(qmodelingelementproperty_cast<QUmlGeneralization *>(generalization));
}
void QUmlExtensionObject::addInheritedMember(QObject *inheritedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addInheritedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(inheritedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addInheritedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(inheritedMember));
}
void QUmlExtensionObject::removeInheritedMember(QObject *inheritedMember)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeInheritedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(inheritedMember));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeInheritedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(inheritedMember));
}
void QUmlExtensionObject::setAbstract(bool isAbstract)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setAbstract(isAbstract);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setAbstract(isAbstract);
}
void QUmlExtensionObject::unsetAbstract()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("abstract"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("abstract"));
}
void QUmlExtensionObject::setFinalSpecialization(bool isFinalSpecialization)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setFinalSpecialization(isFinalSpecialization);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setFinalSpecialization(isFinalSpecialization);
}
void QUmlExtensionObject::unsetFinalSpecialization()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("finalSpecialization"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("finalSpecialization"));
}
void QUmlExtensionObject::setOwnedTemplateSignature(QObject *ownedTemplateSignature)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setOwnedTemplateSignature(qmodelingobjectproperty_cast<QUmlRedefinableTemplateSignature *>(ownedTemplateSignature));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setOwnedTemplateSignature(qmodelingelementproperty_cast<QUmlRedefinableTemplateSignature *>(ownedTemplateSignature));
}
void QUmlExtensionObject::addOwnedUseCase(QObject *ownedUseCase)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addOwnedUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(ownedUseCase));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addOwnedUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(ownedUseCase));
}
void QUmlExtensionObject::removeOwnedUseCase(QObject *ownedUseCase)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeOwnedUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(ownedUseCase));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeOwnedUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(ownedUseCase));
}
void QUmlExtensionObject::addPowertypeExtent(QObject *powertypeExtent)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addPowertypeExtent(qmodelingobjectproperty_cast<QUmlGeneralizationSet *>(powertypeExtent));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addPowertypeExtent(qmodelingelementproperty_cast<QUmlGeneralizationSet *>(powertypeExtent));
}
void QUmlExtensionObject::removePowertypeExtent(QObject *powertypeExtent)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removePowertypeExtent(qmodelingobjectproperty_cast<QUmlGeneralizationSet *>(powertypeExtent));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removePowertypeExtent(qmodelingelementproperty_cast<QUmlGeneralizationSet *>(powertypeExtent));
}
void QUmlExtensionObject::addRedefinedClassifier(QObject *redefinedClassifier)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addRedefinedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinedClassifier));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addRedefinedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(redefinedClassifier));
}
void QUmlExtensionObject::removeRedefinedClassifier(QObject *redefinedClassifier)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeRedefinedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinedClassifier));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeRedefinedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(redefinedClassifier));
}
void QUmlExtensionObject::setRepresentation(QObject *representation)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setRepresentation(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(representation));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setRepresentation(qmodelingelementproperty_cast<QUmlCollaborationUse *>(representation));
}
void QUmlExtensionObject::addSubstitution(QObject *substitution)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addSubstitution(qmodelingobjectproperty_cast<QUmlSubstitution *>(substitution));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addSubstitution(qmodelingelementproperty_cast<QUmlSubstitution *>(substitution));
}
void QUmlExtensionObject::removeSubstitution(QObject *substitution)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeSubstitution(qmodelingobjectproperty_cast<QUmlSubstitution *>(substitution));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeSubstitution(qmodelingelementproperty_cast<QUmlSubstitution *>(substitution));
}
void QUmlExtensionObject::setTemplateParameter(QObject *templateParameter)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setTemplateParameter(qmodelingobjectproperty_cast<QUmlClassifierTemplateParameter *>(templateParameter));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setTemplateParameter(qmodelingelementproperty_cast<QUmlClassifierTemplateParameter *>(templateParameter));
}
void QUmlExtensionObject::addUseCase(QObject *useCase)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(useCase));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(useCase));
}
void QUmlExtensionObject::removeUseCase(QObject *useCase)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(useCase));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(useCase));
}
// SLOTS FOR OWNED ATTRIBUTES [Relationship]
void QUmlExtensionObject::addRelatedElement(QObject *relatedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addRelatedElement(qmodelingobjectproperty_cast<QUmlElement *>(relatedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addRelatedElement(qmodelingelementproperty_cast<QUmlElement *>(relatedElement));
}
void QUmlExtensionObject::removeRelatedElement(QObject *relatedElement)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeRelatedElement(qmodelingobjectproperty_cast<QUmlElement *>(relatedElement));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeRelatedElement(qmodelingelementproperty_cast<QUmlElement *>(relatedElement));
}
// SLOTS FOR OWNED ATTRIBUTES [Association]
void QUmlExtensionObject::addEndType(QObject *endType)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addEndType(qmodelingobjectproperty_cast<QUmlType *>(endType));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addEndType(qmodelingelementproperty_cast<QUmlType *>(endType));
}
void QUmlExtensionObject::removeEndType(QObject *endType)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeEndType(qmodelingobjectproperty_cast<QUmlType *>(endType));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeEndType(qmodelingelementproperty_cast<QUmlType *>(endType));
}
void QUmlExtensionObject::setDerived(bool isDerived)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setDerived(isDerived);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setDerived(isDerived);
}
void QUmlExtensionObject::unsetDerived()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("derived"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("derived"));
}
void QUmlExtensionObject::addMemberEnd(QObject *memberEnd)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addMemberEnd(qmodelingobjectproperty_cast<QUmlProperty *>(memberEnd));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addMemberEnd(qmodelingelementproperty_cast<QUmlProperty *>(memberEnd));
}
void QUmlExtensionObject::removeMemberEnd(QObject *memberEnd)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeMemberEnd(qmodelingobjectproperty_cast<QUmlProperty *>(memberEnd));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeMemberEnd(qmodelingelementproperty_cast<QUmlProperty *>(memberEnd));
}
void QUmlExtensionObject::addNavigableOwnedEnd(QObject *navigableOwnedEnd)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->addNavigableOwnedEnd(qmodelingobjectproperty_cast<QUmlProperty *>(navigableOwnedEnd));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->addNavigableOwnedEnd(qmodelingelementproperty_cast<QUmlProperty *>(navigableOwnedEnd));
}
void QUmlExtensionObject::removeNavigableOwnedEnd(QObject *navigableOwnedEnd)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->removeNavigableOwnedEnd(qmodelingobjectproperty_cast<QUmlProperty *>(navigableOwnedEnd));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->removeNavigableOwnedEnd(qmodelingelementproperty_cast<QUmlProperty *>(navigableOwnedEnd));
}
// SLOTS FOR OWNED ATTRIBUTES [Extension]
void QUmlExtensionObject::setRequired(bool isRequired)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setRequired(isRequired);
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setRequired(isRequired);
}
void QUmlExtensionObject::unsetRequired()
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("required"));
+ Q_D(QModelingObject);
+ d->modifiedResettableProperties.removeAll(QStringLiteral("required"));
}
void QUmlExtensionObject::setMetaclass(QObject *metaclass)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setMetaclass(qmodelingobjectproperty_cast<QUmlClass *>(metaclass));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setMetaclass(qmodelingelementproperty_cast<QUmlClass *>(metaclass));
}
void QUmlExtensionObject::setOwnedEnd(QObject *ownedEnd)
{
- qmodelingobjectproperty_cast<QUmlExtension *>(this)->setOwnedEnd(qmodelingobjectproperty_cast<QUmlExtensionEnd *>(ownedEnd));
+ qmodelingelementproperty_cast<QUmlExtension *>(this)->setOwnedEnd(qmodelingelementproperty_cast<QUmlExtensionEnd *>(ownedEnd));
+}
+
+
+void QUmlExtensionObject::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->propertyGroups << QStringLiteral("QUmlNamespace");
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("elementImports"))));
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("importedMembers"))));
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("members"))));
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedMembers"))));
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedRules"))));
+ d->groupProperties.insert(QStringLiteral("QUmlNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("packageImports"))));
+
+ d->propertyGroups << QStringLiteral("QUmlParameterableElement");
+ d->groupProperties.insert(QStringLiteral("QUmlParameterableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owningTemplateParameter"))));
+
+ d->propertyGroups << QStringLiteral("QUmlPackageableElement");
+ d->groupProperties.insert(QStringLiteral("QUmlPackageableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility"))));
+
+ d->propertyGroups << QStringLiteral("QUmlType");
+ d->groupProperties.insert(QStringLiteral("QUmlType"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("package"))));
+
+ 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("QUmlTemplateableElement");
+ d->groupProperties.insert(QStringLiteral("QUmlTemplateableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("templateBindings"))));
+
+ d->propertyGroups << QStringLiteral("QUmlClassifier");
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("attributes"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("collaborationUses"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("features"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("generals"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("generalizations"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inheritedMembers"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isAbstract"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isFinalSpecialization"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedTemplateSignature"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedUseCases"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("powertypeExtents"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedClassifiers"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("representation"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("substitutions"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("templateParameter"))));
+ d->groupProperties.insert(QStringLiteral("QUmlClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("useCases"))));
+
+ d->propertyGroups << QStringLiteral("QUmlRelationship");
+ d->groupProperties.insert(QStringLiteral("QUmlRelationship"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("relatedElements"))));
+
+ d->propertyGroups << QStringLiteral("QUmlAssociation");
+ d->groupProperties.insert(QStringLiteral("QUmlAssociation"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("endTypes"))));
+ d->groupProperties.insert(QStringLiteral("QUmlAssociation"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isDerived"))));
+ d->groupProperties.insert(QStringLiteral("QUmlAssociation"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("memberEnds"))));
+ d->groupProperties.insert(QStringLiteral("QUmlAssociation"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("navigableOwnedEnds"))));
+
+ d->propertyGroups << QStringLiteral("QUmlExtension");
+ d->groupProperties.insert(QStringLiteral("QUmlExtension"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isRequired"))));
+ d->groupProperties.insert(QStringLiteral("QUmlExtension"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("metaclass"))));
+ d->groupProperties.insert(QStringLiteral("QUmlExtension"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedEnd"))));
+}
+
+void QUmlExtensionObject::setPropertyData()
+{
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, AggregationRole, QStringLiteral("none"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, PropertyClassRole, QStringLiteral("QUmlExtension"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, IsDerivedRole, true);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, IsDerivedUnionRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, DocumentationRole, QStringLiteral("Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the value of the lower property of the ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 means that isRequired is true, but otherwise it is false. Since the default value of ExtensionEnd::lower is 0, the default value of isRequired is false."));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, RedefinedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, SubsettedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, isRequired, OppositeEndRole, QStringLiteral(""));
+
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, AggregationRole, QStringLiteral("none"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, PropertyClassRole, QStringLiteral("QUmlExtension"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, IsDerivedRole, true);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, IsDerivedUnionRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, DocumentationRole, QStringLiteral("References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd."));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, RedefinedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, SubsettedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, metaclass, OppositeEndRole, QStringLiteral("Class-extension"));
+
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, AggregationRole, QStringLiteral("composite"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, PropertyClassRole, QStringLiteral("QUmlExtension"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, IsDerivedRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, IsDerivedUnionRole, false);
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, DocumentationRole, QStringLiteral("References the end of the extension that is typed by a Stereotype."));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, RedefinedPropertiesRole, QStringLiteral("Association-ownedEnd"));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, SubsettedPropertiesRole, QStringLiteral(""));
+ Q_DECLARE_METAPROPERTY_INFO(QUmlExtension, ownedEnd, OppositeEndRole, QStringLiteral(""));
+
}
QT_END_NAMESPACE