diff options
Diffstat (limited to 'src/uml/qobjects/qumlmanifestationobject.cpp')
-rw-r--r-- | src/uml/qobjects/qumlmanifestationobject.cpp | 213 |
1 files changed, 138 insertions, 75 deletions
diff --git a/src/uml/qobjects/qumlmanifestationobject.cpp b/src/uml/qobjects/qumlmanifestationobject.cpp index 736a6302..6cc627ab 100644 --- a/src/uml/qobjects/qumlmanifestationobject.cpp +++ b/src/uml/qobjects/qumlmanifestationobject.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include "qumlmanifestationobject_p.h" +#include "private/qmodelingobject_p.h" #include <QtUml/QUmlManifestation> #include <QtUml/QUmlComment> @@ -55,16 +56,18 @@ QT_BEGIN_NAMESPACE -QUmlManifestationObject::QUmlManifestationObject(QUmlManifestation *qModelingObject) +QUmlManifestationObject::QUmlManifestationObject(QUmlManifestation *qModelingElement) { - setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject))); + setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement))); + setGroupProperties(); + setPropertyData(); } QUmlManifestationObject::~QUmlManifestationObject() { if (!property("deletingFromModelingObject").isValid()) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->deletingFromQObject = true; - delete qmodelingobjectproperty_cast<QUmlComment *>(this); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->deletingFromQModelingObject = true; + delete qmodelingelementproperty_cast<QUmlComment *>(this); } } @@ -73,43 +76,43 @@ QUmlManifestationObject::~QUmlManifestationObject() const QSet<QObject *> QUmlManifestationObject::ownedComments() const { QSet<QObject *> set; - foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->ownedComments()) - set.insert(element->asQObject()); + foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->ownedComments()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlManifestationObject::ownedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->ownedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->ownedElements()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlManifestationObject::owner() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->owner()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->owner()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->owner()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [ParameterableElement] QObject *QUmlManifestationObject::owningTemplateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->owningTemplateParameter()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->owningTemplateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->owningTemplateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->owningTemplateParameter()->asQModelingObject(); } QObject *QUmlManifestationObject::templateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->templateParameter()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->templateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->templateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->templateParameter()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] @@ -117,42 +120,42 @@ QObject *QUmlManifestationObject::templateParameter() const const QSet<QObject *> QUmlManifestationObject::clientDependencies() const { QSet<QObject *> set; - foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->clientDependencies()) - set.insert(element->asQObject()); + foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->clientDependencies()) + set.insert(element->asQModelingObject()); return set; } QString QUmlManifestationObject::name() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->name(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->name(); } QObject *QUmlManifestationObject::nameExpression() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->nameExpression()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->nameExpression()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->nameExpression()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->nameExpression()->asQModelingObject(); } QObject *QUmlManifestationObject::namespace_() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->namespace_()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->namespace_()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->namespace_()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->namespace_()->asQModelingObject(); } QString QUmlManifestationObject::qualifiedName() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->qualifiedName(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->qualifiedName(); } // OWNED ATTRIBUTES [PackageableElement] QtUml::VisibilityKind QUmlManifestationObject::visibility() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->visibility(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->visibility(); } // OWNED ATTRIBUTES [Relationship] @@ -160,8 +163,8 @@ QtUml::VisibilityKind QUmlManifestationObject::visibility() const const QSet<QObject *> QUmlManifestationObject::relatedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->relatedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->relatedElements()) + set.insert(element->asQModelingObject()); return set; } @@ -170,16 +173,16 @@ const QSet<QObject *> QUmlManifestationObject::relatedElements() const const QSet<QObject *> QUmlManifestationObject::sources() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->sources()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->sources()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlManifestationObject::targets() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->targets()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->targets()) + set.insert(element->asQModelingObject()); return set; } @@ -188,16 +191,16 @@ const QSet<QObject *> QUmlManifestationObject::targets() const const QSet<QObject *> QUmlManifestationObject::clients() const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->clients()) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->clients()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlManifestationObject::suppliers() const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->suppliers()) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->suppliers()) + set.insert(element->asQModelingObject()); return set; } @@ -205,20 +208,20 @@ const QSet<QObject *> QUmlManifestationObject::suppliers() const QObject *QUmlManifestationObject::mapping() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->mapping()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->mapping()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->mapping()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->mapping()->asQModelingObject(); } // OWNED ATTRIBUTES [Manifestation] QObject *QUmlManifestationObject::utilizedElement() const { - if (!qmodelingobjectproperty_cast<QUmlManifestation *>(this)->utilizedElement()) + if (!qmodelingelementproperty_cast<QUmlManifestation *>(this)->utilizedElement()) return 0; else - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->utilizedElement()->asQObject(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->utilizedElement()->asQModelingObject(); } // OPERATIONS [Element] @@ -226,26 +229,26 @@ QObject *QUmlManifestationObject::utilizedElement() const QSet<QObject *> QUmlManifestationObject::allOwnedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->allOwnedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->allOwnedElements()) + set.insert(element->asQModelingObject()); return set; } bool QUmlManifestationObject::mustBeOwned() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->mustBeOwned(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->mustBeOwned(); } // OPERATIONS [ParameterableElement] bool QUmlManifestationObject::isCompatibleWith(QObject *p) const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->isCompatibleWith(qmodelingobjectproperty_cast<QUmlParameterableElement *>(p)); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->isCompatibleWith(qmodelingelementproperty_cast<QUmlParameterableElement *>(p)); } bool QUmlManifestationObject::isTemplateParameter() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->isTemplateParameter(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->isTemplateParameter(); } // OPERATIONS [NamedElement] @@ -253,179 +256,239 @@ bool QUmlManifestationObject::isTemplateParameter() const QList<QObject *> QUmlManifestationObject::allNamespaces() const { QList<QObject *> set; - foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->allNamespaces()) - set.append(element->asQObject()); + foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->allNamespaces()) + set.append(element->asQModelingObject()); return set; } QSet<QObject *> QUmlManifestationObject::allOwningPackages() const { QSet<QObject *> set; - foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlManifestation *>(this)->allOwningPackages()) - set.insert(element->asQObject()); + foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlManifestation *>(this)->allOwningPackages()) + set.insert(element->asQModelingObject()); return set; } bool QUmlManifestationObject::isDistinguishableFrom(QObject *n, QObject *ns) const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns)); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns)); } QString QUmlManifestationObject::separator() const { - return qmodelingobjectproperty_cast<QUmlManifestation *>(this)->separator(); + return qmodelingelementproperty_cast<QUmlManifestation *>(this)->separator(); } // SLOTS FOR OWNED ATTRIBUTES [Element] void QUmlManifestationObject::addOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlManifestationObject::removeOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlManifestationObject::addOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlManifestationObject::removeOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlManifestationObject::setOwner(QObject *owner) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner)); } // SLOTS FOR OWNED ATTRIBUTES [ParameterableElement] void QUmlManifestationObject::setOwningTemplateParameter(QObject *owningTemplateParameter) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setOwningTemplateParameter(qmodelingobjectproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setOwningTemplateParameter(qmodelingelementproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); } void QUmlManifestationObject::setTemplateParameter(QObject *templateParameter) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setTemplateParameter(qmodelingobjectproperty_cast<QUmlTemplateParameter *>(templateParameter)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setTemplateParameter(qmodelingelementproperty_cast<QUmlTemplateParameter *>(templateParameter)); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QUmlManifestationObject::addClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlManifestationObject::removeClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlManifestationObject::setName(QString name) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setName(name); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setName(name); } void QUmlManifestationObject::setNameExpression(QObject *nameExpression) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression)); } void QUmlManifestationObject::setNamespace(QObject *namespace_) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_)); } void QUmlManifestationObject::setQualifiedName(QString qualifiedName) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setQualifiedName(qualifiedName); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setQualifiedName(qualifiedName); } // SLOTS FOR OWNED ATTRIBUTES [PackageableElement] void QUmlManifestationObject::setVisibility(QtUml::VisibilityKind visibility) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setVisibility(visibility); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setVisibility(visibility); } void QUmlManifestationObject::unsetVisibility() { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("visibility")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("visibility")); } // SLOTS FOR OWNED ATTRIBUTES [Relationship] void QUmlManifestationObject::addRelatedElement(QObject *relatedElement) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addRelatedElement(qmodelingobjectproperty_cast<QUmlElement *>(relatedElement)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addRelatedElement(qmodelingelementproperty_cast<QUmlElement *>(relatedElement)); } void QUmlManifestationObject::removeRelatedElement(QObject *relatedElement) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeRelatedElement(qmodelingobjectproperty_cast<QUmlElement *>(relatedElement)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeRelatedElement(qmodelingelementproperty_cast<QUmlElement *>(relatedElement)); } // SLOTS FOR OWNED ATTRIBUTES [DirectedRelationship] void QUmlManifestationObject::addSource(QObject *source) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addSource(qmodelingobjectproperty_cast<QUmlElement *>(source)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addSource(qmodelingelementproperty_cast<QUmlElement *>(source)); } void QUmlManifestationObject::removeSource(QObject *source) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeSource(qmodelingobjectproperty_cast<QUmlElement *>(source)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeSource(qmodelingelementproperty_cast<QUmlElement *>(source)); } void QUmlManifestationObject::addTarget(QObject *target) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addTarget(qmodelingobjectproperty_cast<QUmlElement *>(target)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addTarget(qmodelingelementproperty_cast<QUmlElement *>(target)); } void QUmlManifestationObject::removeTarget(QObject *target) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeTarget(qmodelingobjectproperty_cast<QUmlElement *>(target)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeTarget(qmodelingelementproperty_cast<QUmlElement *>(target)); } // SLOTS FOR OWNED ATTRIBUTES [Dependency] void QUmlManifestationObject::addClient(QObject *client) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addClient(qmodelingobjectproperty_cast<QUmlNamedElement *>(client)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addClient(qmodelingelementproperty_cast<QUmlNamedElement *>(client)); } void QUmlManifestationObject::removeClient(QObject *client) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeClient(qmodelingobjectproperty_cast<QUmlNamedElement *>(client)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeClient(qmodelingelementproperty_cast<QUmlNamedElement *>(client)); } void QUmlManifestationObject::addSupplier(QObject *supplier) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->addSupplier(qmodelingobjectproperty_cast<QUmlNamedElement *>(supplier)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->addSupplier(qmodelingelementproperty_cast<QUmlNamedElement *>(supplier)); } void QUmlManifestationObject::removeSupplier(QObject *supplier) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->removeSupplier(qmodelingobjectproperty_cast<QUmlNamedElement *>(supplier)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->removeSupplier(qmodelingelementproperty_cast<QUmlNamedElement *>(supplier)); } // SLOTS FOR OWNED ATTRIBUTES [Abstraction] void QUmlManifestationObject::setMapping(QObject *mapping) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setMapping(qmodelingobjectproperty_cast<QUmlOpaqueExpression *>(mapping)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setMapping(qmodelingelementproperty_cast<QUmlOpaqueExpression *>(mapping)); } // SLOTS FOR OWNED ATTRIBUTES [Manifestation] void QUmlManifestationObject::setUtilizedElement(QObject *utilizedElement) { - qmodelingobjectproperty_cast<QUmlManifestation *>(this)->setUtilizedElement(qmodelingobjectproperty_cast<QUmlPackageableElement *>(utilizedElement)); + qmodelingelementproperty_cast<QUmlManifestation *>(this)->setUtilizedElement(qmodelingelementproperty_cast<QUmlPackageableElement *>(utilizedElement)); +} + + +void QUmlManifestationObject::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("QUmlParameterableElement"); + d->groupProperties.insert(QStringLiteral("QUmlParameterableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owningTemplateParameter")))); + d->groupProperties.insert(QStringLiteral("QUmlParameterableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("templateParameter")))); + + 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("QUmlPackageableElement"); + d->groupProperties.insert(QStringLiteral("QUmlPackageableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility")))); + + d->propertyGroups << QStringLiteral("QUmlRelationship"); + d->groupProperties.insert(QStringLiteral("QUmlRelationship"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("relatedElements")))); + + d->propertyGroups << QStringLiteral("QUmlDirectedRelationship"); + d->groupProperties.insert(QStringLiteral("QUmlDirectedRelationship"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("sources")))); + d->groupProperties.insert(QStringLiteral("QUmlDirectedRelationship"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("targets")))); + + d->propertyGroups << QStringLiteral("QUmlDependency"); + d->groupProperties.insert(QStringLiteral("QUmlDependency"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("clients")))); + d->groupProperties.insert(QStringLiteral("QUmlDependency"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("suppliers")))); + + d->propertyGroups << QStringLiteral("QUmlAbstraction"); + d->groupProperties.insert(QStringLiteral("QUmlAbstraction"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("mapping")))); + + d->propertyGroups << QStringLiteral("QUmlManifestation"); + d->groupProperties.insert(QStringLiteral("QUmlManifestation"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("utilizedElement")))); +} + +void QUmlManifestationObject::setPropertyData() +{ + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, AggregationRole, QStringLiteral("none")); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, PropertyClassRole, QStringLiteral("QUmlManifestation")); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, DocumentationRole, QStringLiteral("The model element that is utilized in the manifestation in an Artifact.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, SubsettedPropertiesRole, QStringLiteral("Dependency-supplier")); + Q_DECLARE_METAPROPERTY_INFO(QUmlManifestation, utilizedElement, OppositeEndRole, QStringLiteral("")); + } QT_END_NAMESPACE |