diff options
Diffstat (limited to 'src/uml/qobjects/qumlinterfaceobject.cpp')
-rw-r--r-- | src/uml/qobjects/qumlinterfaceobject.cpp | 532 |
1 files changed, 335 insertions, 197 deletions
diff --git a/src/uml/qobjects/qumlinterfaceobject.cpp b/src/uml/qobjects/qumlinterfaceobject.cpp index 1a56a226..0fed3004 100644 --- a/src/uml/qobjects/qumlinterfaceobject.cpp +++ b/src/uml/qobjects/qumlinterfaceobject.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include "qumlinterfaceobject_p.h" +#include "private/qmodelingobject_p.h" #include <QtUml/QUmlInterface> #include <QtUml/QUmlClassifier> @@ -74,16 +75,18 @@ QT_BEGIN_NAMESPACE -QUmlInterfaceObject::QUmlInterfaceObject(QUmlInterface *qModelingObject) +QUmlInterfaceObject::QUmlInterfaceObject(QUmlInterface *qModelingElement) { - setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject))); + setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement))); + setGroupProperties(); + setPropertyData(); } QUmlInterfaceObject::~QUmlInterfaceObject() { if (!property("deletingFromModelingObject").isValid()) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->deletingFromQObject = true; - delete qmodelingobjectproperty_cast<QUmlComment *>(this); + qmodelingelementproperty_cast<QUmlInterface *>(this)->deletingFromQModelingObject = true; + delete qmodelingelementproperty_cast<QUmlComment *>(this); } } @@ -92,25 +95,25 @@ QUmlInterfaceObject::~QUmlInterfaceObject() const QSet<QObject *> QUmlInterfaceObject::ownedComments() const { QSet<QObject *> set; - foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedComments()) - set.insert(element->asQObject()); + foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedComments()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::ownedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedElements()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlInterfaceObject::owner() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->owner()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->owner()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->owner()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] @@ -118,35 +121,35 @@ QObject *QUmlInterfaceObject::owner() const const QSet<QObject *> QUmlInterfaceObject::clientDependencies() const { QSet<QObject *> set; - foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->clientDependencies()) - set.insert(element->asQObject()); + foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->clientDependencies()) + set.insert(element->asQModelingObject()); return set; } QString QUmlInterfaceObject::name() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->name(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->name(); } QObject *QUmlInterfaceObject::nameExpression() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->nameExpression()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->nameExpression()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->nameExpression()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->nameExpression()->asQModelingObject(); } QObject *QUmlInterfaceObject::namespace_() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->namespace_()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->namespace_()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->namespace_()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->namespace_()->asQModelingObject(); } QString QUmlInterfaceObject::qualifiedName() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->qualifiedName(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->qualifiedName(); } // OWNED ATTRIBUTES [Namespace] @@ -154,48 +157,48 @@ QString QUmlInterfaceObject::qualifiedName() const const QSet<QObject *> QUmlInterfaceObject::elementImports() const { QSet<QObject *> set; - foreach (QUmlElementImport *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->elementImports()) - set.insert(element->asQObject()); + foreach (QUmlElementImport *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->elementImports()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::importedMembers() const { QSet<QObject *> set; - foreach (QUmlPackageableElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->importedMembers()) - set.insert(element->asQObject()); + foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->importedMembers()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::members() const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->members()) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->members()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::ownedMembers() const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedMembers()) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedMembers()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::ownedRules() const { QSet<QObject *> set; - foreach (QUmlConstraint *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedRules()) - set.insert(element->asQObject()); + foreach (QUmlConstraint *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedRules()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::packageImports() const { QSet<QObject *> set; - foreach (QUmlPackageImport *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->packageImports()) - set.insert(element->asQObject()); + foreach (QUmlPackageImport *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->packageImports()) + set.insert(element->asQModelingObject()); return set; } @@ -203,49 +206,49 @@ const QSet<QObject *> QUmlInterfaceObject::packageImports() const QObject *QUmlInterfaceObject::owningTemplateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->owningTemplateParameter()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->owningTemplateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->owningTemplateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->owningTemplateParameter()->asQModelingObject(); } // OWNED ATTRIBUTES [PackageableElement] QtUml::VisibilityKind QUmlInterfaceObject::visibility() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->visibility(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->visibility(); } // OWNED ATTRIBUTES [Type] QObject *QUmlInterfaceObject::package() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->package()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->package()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->package()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->package()->asQModelingObject(); } // OWNED ATTRIBUTES [RedefinableElement] bool QUmlInterfaceObject::isLeaf() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isLeaf(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isLeaf(); } const QSet<QObject *> QUmlInterfaceObject::redefinedElements() const { QSet<QObject *> set; - foreach (QUmlRedefinableElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->redefinedElements()) - set.insert(element->asQObject()); + foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->redefinedElements()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::redefinitionContexts() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->redefinitionContexts()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->redefinitionContexts()) + set.insert(element->asQModelingObject()); return set; } @@ -254,8 +257,8 @@ const QSet<QObject *> QUmlInterfaceObject::redefinitionContexts() const const QSet<QObject *> QUmlInterfaceObject::templateBindings() const { QSet<QObject *> set; - foreach (QUmlTemplateBinding *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->templateBindings()) - set.insert(element->asQObject()); + foreach (QUmlTemplateBinding *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->templateBindings()) + set.insert(element->asQModelingObject()); return set; } @@ -264,122 +267,122 @@ const QSet<QObject *> QUmlInterfaceObject::templateBindings() const const QSet<QObject *> QUmlInterfaceObject::attributes() const { QSet<QObject *> set; - foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->attributes()) - set.insert(element->asQObject()); + foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->attributes()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::collaborationUses() const { QSet<QObject *> set; - foreach (QUmlCollaborationUse *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->collaborationUses()) - set.insert(element->asQObject()); + foreach (QUmlCollaborationUse *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->collaborationUses()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::features() const { QSet<QObject *> set; - foreach (QUmlFeature *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->features()) - set.insert(element->asQObject()); + foreach (QUmlFeature *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->features()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::generals() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->generals()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->generals()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::generalizations() const { QSet<QObject *> set; - foreach (QUmlGeneralization *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->generalizations()) - set.insert(element->asQObject()); + foreach (QUmlGeneralization *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->generalizations()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::inheritedMembers() const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->inheritedMembers()) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->inheritedMembers()) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::isAbstract() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isAbstract(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isAbstract(); } bool QUmlInterfaceObject::isFinalSpecialization() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isFinalSpecialization(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isFinalSpecialization(); } QObject *QUmlInterfaceObject::ownedTemplateSignature() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedTemplateSignature()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedTemplateSignature()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedTemplateSignature()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedTemplateSignature()->asQModelingObject(); } const QSet<QObject *> QUmlInterfaceObject::ownedUseCases() const { QSet<QObject *> set; - foreach (QUmlUseCase *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedUseCases()) - set.insert(element->asQObject()); + foreach (QUmlUseCase *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedUseCases()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::powertypeExtents() const { QSet<QObject *> set; - foreach (QUmlGeneralizationSet *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->powertypeExtents()) - set.insert(element->asQObject()); + foreach (QUmlGeneralizationSet *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->powertypeExtents()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlInterfaceObject::redefinedClassifiers() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->redefinedClassifiers()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->redefinedClassifiers()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlInterfaceObject::representation() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->representation()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->representation()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->representation()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->representation()->asQModelingObject(); } const QSet<QObject *> QUmlInterfaceObject::substitutions() const { QSet<QObject *> set; - foreach (QUmlSubstitution *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->substitutions()) - set.insert(element->asQObject()); + foreach (QUmlSubstitution *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->substitutions()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlInterfaceObject::templateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->templateParameter()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->templateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->templateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->templateParameter()->asQModelingObject(); } const QSet<QObject *> QUmlInterfaceObject::useCases() const { QSet<QObject *> set; - foreach (QUmlUseCase *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->useCases()) - set.insert(element->asQObject()); + foreach (QUmlUseCase *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->useCases()) + set.insert(element->asQModelingObject()); return set; } @@ -388,48 +391,48 @@ const QSet<QObject *> QUmlInterfaceObject::useCases() const const QList<QObject *> QUmlInterfaceObject::nestedClassifiers() const { QList<QObject *> list; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->nestedClassifiers()) - list.append(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->nestedClassifiers()) + list.append(element->asQModelingObject()); return list; } const QList<QObject *> QUmlInterfaceObject::ownedAttributes() const { QList<QObject *> list; - foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedAttributes()) - list.append(element->asQObject()); + foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedAttributes()) + list.append(element->asQModelingObject()); return list; } const QList<QObject *> QUmlInterfaceObject::ownedOperations() const { QList<QObject *> list; - foreach (QUmlOperation *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedOperations()) - list.append(element->asQObject()); + foreach (QUmlOperation *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedOperations()) + list.append(element->asQModelingObject()); return list; } const QSet<QObject *> QUmlInterfaceObject::ownedReceptions() const { QSet<QObject *> set; - foreach (QUmlReception *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->ownedReceptions()) - set.insert(element->asQObject()); + foreach (QUmlReception *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->ownedReceptions()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlInterfaceObject::protocol() const { - if (!qmodelingobjectproperty_cast<QUmlInterface *>(this)->protocol()) + if (!qmodelingelementproperty_cast<QUmlInterface *>(this)->protocol()) return 0; else - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->protocol()->asQObject(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->protocol()->asQModelingObject(); } const QSet<QObject *> QUmlInterfaceObject::redefinedInterfaces() const { QSet<QObject *> set; - foreach (QUmlInterface *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->redefinedInterfaces()) - set.insert(element->asQObject()); + foreach (QUmlInterface *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->redefinedInterfaces()) + set.insert(element->asQModelingObject()); return set; } @@ -438,14 +441,14 @@ const QSet<QObject *> QUmlInterfaceObject::redefinedInterfaces() const QSet<QObject *> QUmlInterfaceObject::allOwnedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->allOwnedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->allOwnedElements()) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::mustBeOwned() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->mustBeOwned(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->mustBeOwned(); } // OPERATIONS [NamedElement] @@ -453,27 +456,27 @@ bool QUmlInterfaceObject::mustBeOwned() const QList<QObject *> QUmlInterfaceObject::allNamespaces() const { QList<QObject *> set; - foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->allNamespaces()) - set.append(element->asQObject()); + foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->allNamespaces()) + set.append(element->asQModelingObject()); return set; } QSet<QObject *> QUmlInterfaceObject::allOwningPackages() const { QSet<QObject *> set; - foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->allOwningPackages()) - set.insert(element->asQObject()); + foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->allOwningPackages()) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::isDistinguishableFrom(QObject *n, QObject *ns) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns)); } QString QUmlInterfaceObject::separator() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->separator(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->separator(); } // OPERATIONS [Namespace] @@ -482,44 +485,44 @@ QSet<QObject *> QUmlInterfaceObject::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<QUmlInterface *>(this)->excludeCollisions(impsConverted)) - set.insert(element->asQObject()); + foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->excludeCollisions(impsConverted)) + set.insert(element->asQModelingObject()); return set; } QSet<QString> QUmlInterfaceObject::getNamesOfMember(QObject *element) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->getNamesOfMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(element)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->getNamesOfMember(qmodelingelementproperty_cast<QUmlNamedElement *>(element)); } QSet<QObject *> QUmlInterfaceObject::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<QUmlInterface *>(this)->importMembers(impsConverted)) - set.insert(element->asQObject()); + foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->importMembers(impsConverted)) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::membersAreDistinguishable() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->membersAreDistinguishable(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->membersAreDistinguishable(); } // OPERATIONS [ParameterableElement] bool QUmlInterfaceObject::isCompatibleWith(QObject *p) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isCompatibleWith(qmodelingobjectproperty_cast<QUmlParameterableElement *>(p)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isCompatibleWith(qmodelingelementproperty_cast<QUmlParameterableElement *>(p)); } bool QUmlInterfaceObject::isTemplateParameter() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isTemplateParameter(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isTemplateParameter(); } // OPERATIONS [Type] @@ -527,12 +530,12 @@ bool QUmlInterfaceObject::isTemplateParameter() const bool QUmlInterfaceObject::isConsistentWith(QObject *redefinee) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isConsistentWith(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinee)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee)); } bool QUmlInterfaceObject::isRedefinitionContextValid(QObject *redefined) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isRedefinitionContextValid(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefined)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined)); } // OPERATIONS [TemplateableElement] @@ -540,8 +543,8 @@ bool QUmlInterfaceObject::isRedefinitionContextValid(QObject *redefined) const QSet<QObject *> QUmlInterfaceObject::parameterableElements() const { QSet<QObject *> set; - foreach (QUmlParameterableElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->parameterableElements()) - set.insert(element->asQObject()); + foreach (QUmlParameterableElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->parameterableElements()) + set.insert(element->asQModelingObject()); return set; } @@ -550,63 +553,63 @@ QSet<QObject *> QUmlInterfaceObject::parameterableElements() const QSet<QObject *> QUmlInterfaceObject::allFeatures() const { QSet<QObject *> set; - foreach (QUmlFeature *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->allFeatures()) - set.insert(element->asQObject()); + foreach (QUmlFeature *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->allFeatures()) + set.insert(element->asQModelingObject()); return set; } QSet<QObject *> QUmlInterfaceObject::allParents() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->allParents()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->allParents()) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::conformsTo(QObject *other) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->conformsTo(qmodelingobjectproperty_cast<QUmlClassifier *>(other)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->conformsTo(qmodelingelementproperty_cast<QUmlClassifier *>(other)); } bool QUmlInterfaceObject::hasVisibilityOf(QObject *n) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->hasVisibilityOf(qmodelingobjectproperty_cast<QUmlNamedElement *>(n)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->hasVisibilityOf(qmodelingelementproperty_cast<QUmlNamedElement *>(n)); } QSet<QObject *> QUmlInterfaceObject::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<QUmlInterface *>(this)->inherit(inhsConverted)) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->inherit(inhsConverted)) + set.insert(element->asQModelingObject()); return set; } QSet<QObject *> QUmlInterfaceObject::inheritableMembers(QObject *c) const { QSet<QObject *> set; - foreach (QUmlNamedElement *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->inheritableMembers(qmodelingobjectproperty_cast<QUmlClassifier *>(c))) - set.insert(element->asQObject()); + foreach (QUmlNamedElement *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->inheritableMembers(qmodelingelementproperty_cast<QUmlClassifier *>(c))) + set.insert(element->asQModelingObject()); return set; } bool QUmlInterfaceObject::isTemplate() const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->isTemplate(); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->isTemplate(); } bool QUmlInterfaceObject::maySpecializeType(QObject *c) const { - return qmodelingobjectproperty_cast<QUmlInterface *>(this)->maySpecializeType(qmodelingobjectproperty_cast<QUmlClassifier *>(c)); + return qmodelingelementproperty_cast<QUmlInterface *>(this)->maySpecializeType(qmodelingelementproperty_cast<QUmlClassifier *>(c)); } QSet<QObject *> QUmlInterfaceObject::parents() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlInterface *>(this)->parents()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlInterface *>(this)->parents()) + set.insert(element->asQModelingObject()); return set; } @@ -614,393 +617,528 @@ QSet<QObject *> QUmlInterfaceObject::parents() const void QUmlInterfaceObject::addOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlInterfaceObject::removeOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlInterfaceObject::addOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlInterfaceObject::removeOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlInterfaceObject::setOwner(QObject *owner) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner)); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QUmlInterfaceObject::addClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlInterfaceObject::removeClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlInterfaceObject::setName(QString name) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setName(name); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setName(name); } void QUmlInterfaceObject::setNameExpression(QObject *nameExpression) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression)); } void QUmlInterfaceObject::setNamespace(QObject *namespace_) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_)); } void QUmlInterfaceObject::setQualifiedName(QString qualifiedName) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setQualifiedName(qualifiedName); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setQualifiedName(qualifiedName); } // SLOTS FOR OWNED ATTRIBUTES [Namespace] void QUmlInterfaceObject::addElementImport(QObject *elementImport) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addElementImport(qmodelingobjectproperty_cast<QUmlElementImport *>(elementImport)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addElementImport(qmodelingelementproperty_cast<QUmlElementImport *>(elementImport)); } void QUmlInterfaceObject::removeElementImport(QObject *elementImport) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeElementImport(qmodelingobjectproperty_cast<QUmlElementImport *>(elementImport)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeElementImport(qmodelingelementproperty_cast<QUmlElementImport *>(elementImport)); } void QUmlInterfaceObject::addImportedMember(QObject *importedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addImportedMember(qmodelingobjectproperty_cast<QUmlPackageableElement *>(importedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addImportedMember(qmodelingelementproperty_cast<QUmlPackageableElement *>(importedMember)); } void QUmlInterfaceObject::removeImportedMember(QObject *importedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeImportedMember(qmodelingobjectproperty_cast<QUmlPackageableElement *>(importedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeImportedMember(qmodelingelementproperty_cast<QUmlPackageableElement *>(importedMember)); } void QUmlInterfaceObject::addMember(QObject *member) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(member)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addMember(qmodelingelementproperty_cast<QUmlNamedElement *>(member)); } void QUmlInterfaceObject::removeMember(QObject *member) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(member)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeMember(qmodelingelementproperty_cast<QUmlNamedElement *>(member)); } void QUmlInterfaceObject::addOwnedMember(QObject *ownedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(ownedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(ownedMember)); } void QUmlInterfaceObject::removeOwnedMember(QObject *ownedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(ownedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(ownedMember)); } void QUmlInterfaceObject::addOwnedRule(QObject *ownedRule) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedRule(qmodelingobjectproperty_cast<QUmlConstraint *>(ownedRule)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedRule(qmodelingelementproperty_cast<QUmlConstraint *>(ownedRule)); } void QUmlInterfaceObject::removeOwnedRule(QObject *ownedRule) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedRule(qmodelingobjectproperty_cast<QUmlConstraint *>(ownedRule)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedRule(qmodelingelementproperty_cast<QUmlConstraint *>(ownedRule)); } void QUmlInterfaceObject::addPackageImport(QObject *packageImport) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addPackageImport(qmodelingobjectproperty_cast<QUmlPackageImport *>(packageImport)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addPackageImport(qmodelingelementproperty_cast<QUmlPackageImport *>(packageImport)); } void QUmlInterfaceObject::removePackageImport(QObject *packageImport) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removePackageImport(qmodelingobjectproperty_cast<QUmlPackageImport *>(packageImport)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removePackageImport(qmodelingelementproperty_cast<QUmlPackageImport *>(packageImport)); } // SLOTS FOR OWNED ATTRIBUTES [ParameterableElement] void QUmlInterfaceObject::setOwningTemplateParameter(QObject *owningTemplateParameter) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setOwningTemplateParameter(qmodelingobjectproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setOwningTemplateParameter(qmodelingelementproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); } // SLOTS FOR OWNED ATTRIBUTES [PackageableElement] void QUmlInterfaceObject::setVisibility(QtUml::VisibilityKind visibility) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setVisibility(visibility); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setVisibility(visibility); } void QUmlInterfaceObject::unsetVisibility() { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("visibility")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("visibility")); } // SLOTS FOR OWNED ATTRIBUTES [Type] void QUmlInterfaceObject::setPackage(QObject *package) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setPackage(qmodelingobjectproperty_cast<QUmlPackage *>(package)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setPackage(qmodelingelementproperty_cast<QUmlPackage *>(package)); } // SLOTS FOR OWNED ATTRIBUTES [RedefinableElement] void QUmlInterfaceObject::setLeaf(bool isLeaf) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setLeaf(isLeaf); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setLeaf(isLeaf); } void QUmlInterfaceObject::unsetLeaf() { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("leaf")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("leaf")); } void QUmlInterfaceObject::addRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlInterfaceObject::removeRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlInterfaceObject::addRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } void QUmlInterfaceObject::removeRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } // SLOTS FOR OWNED ATTRIBUTES [TemplateableElement] void QUmlInterfaceObject::addTemplateBinding(QObject *templateBinding) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addTemplateBinding(qmodelingobjectproperty_cast<QUmlTemplateBinding *>(templateBinding)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addTemplateBinding(qmodelingelementproperty_cast<QUmlTemplateBinding *>(templateBinding)); } void QUmlInterfaceObject::removeTemplateBinding(QObject *templateBinding) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeTemplateBinding(qmodelingobjectproperty_cast<QUmlTemplateBinding *>(templateBinding)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeTemplateBinding(qmodelingelementproperty_cast<QUmlTemplateBinding *>(templateBinding)); } // SLOTS FOR OWNED ATTRIBUTES [Classifier] void QUmlInterfaceObject::addAttribute(QObject *attribute) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(attribute)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addAttribute(qmodelingelementproperty_cast<QUmlProperty *>(attribute)); } void QUmlInterfaceObject::removeAttribute(QObject *attribute) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(attribute)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeAttribute(qmodelingelementproperty_cast<QUmlProperty *>(attribute)); } void QUmlInterfaceObject::addCollaborationUse(QObject *collaborationUse) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addCollaborationUse(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(collaborationUse)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addCollaborationUse(qmodelingelementproperty_cast<QUmlCollaborationUse *>(collaborationUse)); } void QUmlInterfaceObject::removeCollaborationUse(QObject *collaborationUse) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeCollaborationUse(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(collaborationUse)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeCollaborationUse(qmodelingelementproperty_cast<QUmlCollaborationUse *>(collaborationUse)); } void QUmlInterfaceObject::addFeature(QObject *feature) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addFeature(qmodelingobjectproperty_cast<QUmlFeature *>(feature)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addFeature(qmodelingelementproperty_cast<QUmlFeature *>(feature)); } void QUmlInterfaceObject::removeFeature(QObject *feature) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeFeature(qmodelingobjectproperty_cast<QUmlFeature *>(feature)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeFeature(qmodelingelementproperty_cast<QUmlFeature *>(feature)); } void QUmlInterfaceObject::addGeneral(QObject *general) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addGeneral(qmodelingobjectproperty_cast<QUmlClassifier *>(general)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addGeneral(qmodelingelementproperty_cast<QUmlClassifier *>(general)); } void QUmlInterfaceObject::removeGeneral(QObject *general) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeGeneral(qmodelingobjectproperty_cast<QUmlClassifier *>(general)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeGeneral(qmodelingelementproperty_cast<QUmlClassifier *>(general)); } void QUmlInterfaceObject::addGeneralization(QObject *generalization) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addGeneralization(qmodelingobjectproperty_cast<QUmlGeneralization *>(generalization)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addGeneralization(qmodelingelementproperty_cast<QUmlGeneralization *>(generalization)); } void QUmlInterfaceObject::removeGeneralization(QObject *generalization) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeGeneralization(qmodelingobjectproperty_cast<QUmlGeneralization *>(generalization)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeGeneralization(qmodelingelementproperty_cast<QUmlGeneralization *>(generalization)); } void QUmlInterfaceObject::addInheritedMember(QObject *inheritedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addInheritedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(inheritedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addInheritedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(inheritedMember)); } void QUmlInterfaceObject::removeInheritedMember(QObject *inheritedMember) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeInheritedMember(qmodelingobjectproperty_cast<QUmlNamedElement *>(inheritedMember)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeInheritedMember(qmodelingelementproperty_cast<QUmlNamedElement *>(inheritedMember)); } void QUmlInterfaceObject::setAbstract(bool isAbstract) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setAbstract(isAbstract); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setAbstract(isAbstract); } void QUmlInterfaceObject::unsetAbstract() { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("abstract")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("abstract")); } void QUmlInterfaceObject::setFinalSpecialization(bool isFinalSpecialization) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setFinalSpecialization(isFinalSpecialization); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setFinalSpecialization(isFinalSpecialization); } void QUmlInterfaceObject::unsetFinalSpecialization() { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("finalSpecialization")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("finalSpecialization")); } void QUmlInterfaceObject::setOwnedTemplateSignature(QObject *ownedTemplateSignature) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setOwnedTemplateSignature(qmodelingobjectproperty_cast<QUmlRedefinableTemplateSignature *>(ownedTemplateSignature)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setOwnedTemplateSignature(qmodelingelementproperty_cast<QUmlRedefinableTemplateSignature *>(ownedTemplateSignature)); } void QUmlInterfaceObject::addOwnedUseCase(QObject *ownedUseCase) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(ownedUseCase)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(ownedUseCase)); } void QUmlInterfaceObject::removeOwnedUseCase(QObject *ownedUseCase) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(ownedUseCase)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(ownedUseCase)); } void QUmlInterfaceObject::addPowertypeExtent(QObject *powertypeExtent) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addPowertypeExtent(qmodelingobjectproperty_cast<QUmlGeneralizationSet *>(powertypeExtent)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addPowertypeExtent(qmodelingelementproperty_cast<QUmlGeneralizationSet *>(powertypeExtent)); } void QUmlInterfaceObject::removePowertypeExtent(QObject *powertypeExtent) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removePowertypeExtent(qmodelingobjectproperty_cast<QUmlGeneralizationSet *>(powertypeExtent)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removePowertypeExtent(qmodelingelementproperty_cast<QUmlGeneralizationSet *>(powertypeExtent)); } void QUmlInterfaceObject::addRedefinedClassifier(QObject *redefinedClassifier) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addRedefinedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinedClassifier)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addRedefinedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(redefinedClassifier)); } void QUmlInterfaceObject::removeRedefinedClassifier(QObject *redefinedClassifier) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeRedefinedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinedClassifier)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeRedefinedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(redefinedClassifier)); } void QUmlInterfaceObject::setRepresentation(QObject *representation) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setRepresentation(qmodelingobjectproperty_cast<QUmlCollaborationUse *>(representation)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setRepresentation(qmodelingelementproperty_cast<QUmlCollaborationUse *>(representation)); } void QUmlInterfaceObject::addSubstitution(QObject *substitution) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addSubstitution(qmodelingobjectproperty_cast<QUmlSubstitution *>(substitution)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addSubstitution(qmodelingelementproperty_cast<QUmlSubstitution *>(substitution)); } void QUmlInterfaceObject::removeSubstitution(QObject *substitution) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeSubstitution(qmodelingobjectproperty_cast<QUmlSubstitution *>(substitution)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeSubstitution(qmodelingelementproperty_cast<QUmlSubstitution *>(substitution)); } void QUmlInterfaceObject::setTemplateParameter(QObject *templateParameter) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setTemplateParameter(qmodelingobjectproperty_cast<QUmlClassifierTemplateParameter *>(templateParameter)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setTemplateParameter(qmodelingelementproperty_cast<QUmlClassifierTemplateParameter *>(templateParameter)); } void QUmlInterfaceObject::addUseCase(QObject *useCase) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(useCase)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(useCase)); } void QUmlInterfaceObject::removeUseCase(QObject *useCase) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeUseCase(qmodelingobjectproperty_cast<QUmlUseCase *>(useCase)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeUseCase(qmodelingelementproperty_cast<QUmlUseCase *>(useCase)); } // SLOTS FOR OWNED ATTRIBUTES [Interface] void QUmlInterfaceObject::addNestedClassifier(QObject *nestedClassifier) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addNestedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(nestedClassifier)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addNestedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(nestedClassifier)); } void QUmlInterfaceObject::removeNestedClassifier(QObject *nestedClassifier) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeNestedClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(nestedClassifier)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeNestedClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(nestedClassifier)); } void QUmlInterfaceObject::addOwnedAttribute(QObject *ownedAttribute) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(ownedAttribute)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedAttribute(qmodelingelementproperty_cast<QUmlProperty *>(ownedAttribute)); } void QUmlInterfaceObject::removeOwnedAttribute(QObject *ownedAttribute) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(ownedAttribute)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedAttribute(qmodelingelementproperty_cast<QUmlProperty *>(ownedAttribute)); } void QUmlInterfaceObject::addOwnedOperation(QObject *ownedOperation) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedOperation(qmodelingobjectproperty_cast<QUmlOperation *>(ownedOperation)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedOperation(qmodelingelementproperty_cast<QUmlOperation *>(ownedOperation)); } void QUmlInterfaceObject::removeOwnedOperation(QObject *ownedOperation) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedOperation(qmodelingobjectproperty_cast<QUmlOperation *>(ownedOperation)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedOperation(qmodelingelementproperty_cast<QUmlOperation *>(ownedOperation)); } void QUmlInterfaceObject::addOwnedReception(QObject *ownedReception) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addOwnedReception(qmodelingobjectproperty_cast<QUmlReception *>(ownedReception)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addOwnedReception(qmodelingelementproperty_cast<QUmlReception *>(ownedReception)); } void QUmlInterfaceObject::removeOwnedReception(QObject *ownedReception) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeOwnedReception(qmodelingobjectproperty_cast<QUmlReception *>(ownedReception)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeOwnedReception(qmodelingelementproperty_cast<QUmlReception *>(ownedReception)); } void QUmlInterfaceObject::setProtocol(QObject *protocol) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->setProtocol(qmodelingobjectproperty_cast<QUmlProtocolStateMachine *>(protocol)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->setProtocol(qmodelingelementproperty_cast<QUmlProtocolStateMachine *>(protocol)); } void QUmlInterfaceObject::addRedefinedInterface(QObject *redefinedInterface) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->addRedefinedInterface(qmodelingobjectproperty_cast<QUmlInterface *>(redefinedInterface)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->addRedefinedInterface(qmodelingelementproperty_cast<QUmlInterface *>(redefinedInterface)); } void QUmlInterfaceObject::removeRedefinedInterface(QObject *redefinedInterface) { - qmodelingobjectproperty_cast<QUmlInterface *>(this)->removeRedefinedInterface(qmodelingobjectproperty_cast<QUmlInterface *>(redefinedInterface)); + qmodelingelementproperty_cast<QUmlInterface *>(this)->removeRedefinedInterface(qmodelingelementproperty_cast<QUmlInterface *>(redefinedInterface)); +} + + +void QUmlInterfaceObject::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("QUmlInterface"); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("nestedClassifiers")))); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedAttributes")))); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedOperations")))); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedReceptions")))); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("protocol")))); + d->groupProperties.insert(QStringLiteral("QUmlInterface"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedInterfaces")))); +} + +void QUmlInterfaceObject::setPropertyData() +{ + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, DocumentationRole, QStringLiteral("References all the Classifiers that are defined (nested) within the Class.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, SubsettedPropertiesRole, QStringLiteral("A_redefinitionContext_redefinableElement-redefinableElement Namespace-ownedMember")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, nestedClassifiers, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, DocumentationRole, QStringLiteral("The attributes (i.e. the properties) owned by the class.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, SubsettedPropertiesRole, QStringLiteral("Namespace-ownedMember Classifier-attribute")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedAttributes, OppositeEndRole, QStringLiteral("Property-interface")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, DocumentationRole, QStringLiteral("The operations owned by the class.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, SubsettedPropertiesRole, QStringLiteral("Classifier-feature A_redefinitionContext_redefinableElement-redefinableElement Namespace-ownedMember")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedOperations, OppositeEndRole, QStringLiteral("Operation-interface")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, DocumentationRole, QStringLiteral("Receptions that objects providing this interface are willing to accept.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, SubsettedPropertiesRole, QStringLiteral("Classifier-feature Namespace-ownedMember")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, ownedReceptions, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, DocumentationRole, QStringLiteral("References a protocol state machine specifying the legal sequences of the invocation of the behavioral features described in the interface.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, SubsettedPropertiesRole, QStringLiteral("Namespace-ownedMember")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, protocol, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, AggregationRole, QStringLiteral("none")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, PropertyClassRole, QStringLiteral("QUmlInterface")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, DocumentationRole, QStringLiteral("References all the Interfaces redefined by this Interface.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, SubsettedPropertiesRole, QStringLiteral("Classifier-redefinedClassifier")); + Q_DECLARE_METAPROPERTY_INFO(QUmlInterface, redefinedInterfaces, OppositeEndRole, QStringLiteral("")); + } QT_END_NAMESPACE |