diff options
Diffstat (limited to 'src/uml/qobjects/qumlextensionendobject.cpp')
-rw-r--r-- | src/uml/qobjects/qumlextensionendobject.cpp | 451 |
1 files changed, 283 insertions, 168 deletions
diff --git a/src/uml/qobjects/qumlextensionendobject.cpp b/src/uml/qobjects/qumlextensionendobject.cpp index cf818883..d8021c6b 100644 --- a/src/uml/qobjects/qumlextensionendobject.cpp +++ b/src/uml/qobjects/qumlextensionendobject.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include "qumlextensionendobject_p.h" +#include "private/qmodelingobject_p.h" #include <QtUml/QUmlExtensionEnd> #include <QtUml/QUmlAssociation> @@ -68,16 +69,18 @@ QT_BEGIN_NAMESPACE -QUmlExtensionEndObject::QUmlExtensionEndObject(QUmlExtensionEnd *qModelingObject) +QUmlExtensionEndObject::QUmlExtensionEndObject(QUmlExtensionEnd *qModelingElement) { - setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject))); + setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement))); + setGroupProperties(); + setPropertyData(); } QUmlExtensionEndObject::~QUmlExtensionEndObject() { if (!property("deletingFromModelingObject").isValid()) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->deletingFromQObject = true; - delete qmodelingobjectproperty_cast<QUmlComment *>(this); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->deletingFromQModelingObject = true; + delete qmodelingelementproperty_cast<QUmlComment *>(this); } } @@ -86,25 +89,25 @@ QUmlExtensionEndObject::~QUmlExtensionEndObject() const QSet<QObject *> QUmlExtensionEndObject::ownedComments() const { QSet<QObject *> set; - foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->ownedComments()) - set.insert(element->asQObject()); + foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->ownedComments()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlExtensionEndObject::ownedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->ownedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->ownedElements()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlExtensionEndObject::owner() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owner()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owner()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owner()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] @@ -112,95 +115,95 @@ QObject *QUmlExtensionEndObject::owner() const const QSet<QObject *> QUmlExtensionEndObject::clientDependencies() const { QSet<QObject *> set; - foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->clientDependencies()) - set.insert(element->asQObject()); + foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->clientDependencies()) + set.insert(element->asQModelingObject()); return set; } QString QUmlExtensionEndObject::name() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->name(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->name(); } QObject *QUmlExtensionEndObject::nameExpression() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->nameExpression()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->nameExpression()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->nameExpression()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->nameExpression()->asQModelingObject(); } QObject *QUmlExtensionEndObject::namespace_() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->namespace_()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->namespace_()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->namespace_()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->namespace_()->asQModelingObject(); } QString QUmlExtensionEndObject::qualifiedName() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->qualifiedName(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->qualifiedName(); } QtUml::VisibilityKind QUmlExtensionEndObject::visibility() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->visibility(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->visibility(); } // OWNED ATTRIBUTES [MultiplicityElement] bool QUmlExtensionEndObject::isOrdered() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isOrdered(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isOrdered(); } bool QUmlExtensionEndObject::isUnique() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isUnique(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isUnique(); } QObject *QUmlExtensionEndObject::lowerValue() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->lowerValue()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->lowerValue()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->lowerValue()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->lowerValue()->asQModelingObject(); } int QUmlExtensionEndObject::upper() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->upper(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->upper(); } QObject *QUmlExtensionEndObject::upperValue() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->upperValue()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->upperValue()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->upperValue()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->upperValue()->asQModelingObject(); } // OWNED ATTRIBUTES [RedefinableElement] bool QUmlExtensionEndObject::isLeaf() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isLeaf(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isLeaf(); } const QSet<QObject *> QUmlExtensionEndObject::redefinedElements() const { QSet<QObject *> set; - foreach (QUmlRedefinableElement *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->redefinedElements()) - set.insert(element->asQObject()); + foreach (QUmlRedefinableElement *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->redefinedElements()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlExtensionEndObject::redefinitionContexts() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->redefinitionContexts()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->redefinitionContexts()) + set.insert(element->asQModelingObject()); return set; } @@ -209,24 +212,24 @@ const QSet<QObject *> QUmlExtensionEndObject::redefinitionContexts() const const QSet<QObject *> QUmlExtensionEndObject::featuringClassifiers() const { QSet<QObject *> set; - foreach (QUmlClassifier *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->featuringClassifiers()) - set.insert(element->asQObject()); + foreach (QUmlClassifier *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->featuringClassifiers()) + set.insert(element->asQModelingObject()); return set; } bool QUmlExtensionEndObject::isStatic() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isStatic(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isStatic(); } // OWNED ATTRIBUTES [ParameterableElement] QObject *QUmlExtensionEndObject::owningTemplateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owningTemplateParameter()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owningTemplateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owningTemplateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owningTemplateParameter()->asQModelingObject(); } // OWNED ATTRIBUTES [ConnectableElement] @@ -234,17 +237,17 @@ QObject *QUmlExtensionEndObject::owningTemplateParameter() const const QList<QObject *> QUmlExtensionEndObject::ends() const { QList<QObject *> list; - foreach (QUmlConnectorEnd *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->ends()) - list.append(element->asQObject()); + foreach (QUmlConnectorEnd *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->ends()) + list.append(element->asQModelingObject()); return list; } QObject *QUmlExtensionEndObject::templateParameter() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->templateParameter()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->templateParameter()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->templateParameter()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->templateParameter()->asQModelingObject(); } // OWNED ATTRIBUTES [DeploymentTarget] @@ -252,16 +255,16 @@ QObject *QUmlExtensionEndObject::templateParameter() const const QSet<QObject *> QUmlExtensionEndObject::deployedElements() const { QSet<QObject *> set; - foreach (QUmlPackageableElement *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->deployedElements()) - set.insert(element->asQObject()); + foreach (QUmlPackageableElement *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->deployedElements()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlExtensionEndObject::deployments() const { QSet<QObject *> set; - foreach (QUmlDeployment *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->deployments()) - set.insert(element->asQObject()); + foreach (QUmlDeployment *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->deployments()) + set.insert(element->asQModelingObject()); return set; } @@ -269,124 +272,124 @@ const QSet<QObject *> QUmlExtensionEndObject::deployments() const QtUml::AggregationKind QUmlExtensionEndObject::aggregation() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->aggregation(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->aggregation(); } QObject *QUmlExtensionEndObject::association() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->association()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->association()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->association()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->association()->asQModelingObject(); } QObject *QUmlExtensionEndObject::associationEnd() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->associationEnd()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->associationEnd()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->associationEnd()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->associationEnd()->asQModelingObject(); } QObject *QUmlExtensionEndObject::class_() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->class_()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->class_()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->class_()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->class_()->asQModelingObject(); } QObject *QUmlExtensionEndObject::datatype() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->datatype()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->datatype()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->datatype()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->datatype()->asQModelingObject(); } QString QUmlExtensionEndObject::default_() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->default_(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->default_(); } QObject *QUmlExtensionEndObject::defaultValue() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->defaultValue()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->defaultValue()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->defaultValue()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->defaultValue()->asQModelingObject(); } QObject *QUmlExtensionEndObject::interface_() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->interface_()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->interface_()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->interface_()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->interface_()->asQModelingObject(); } bool QUmlExtensionEndObject::isComposite() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isComposite(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isComposite(); } bool QUmlExtensionEndObject::isDerived() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isDerived(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isDerived(); } bool QUmlExtensionEndObject::isDerivedUnion() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isDerivedUnion(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isDerivedUnion(); } bool QUmlExtensionEndObject::isID() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isID(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isID(); } bool QUmlExtensionEndObject::isReadOnly() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isReadOnly(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isReadOnly(); } QObject *QUmlExtensionEndObject::opposite() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->opposite()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->opposite()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->opposite()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->opposite()->asQModelingObject(); } QObject *QUmlExtensionEndObject::owningAssociation() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owningAssociation()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owningAssociation()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->owningAssociation()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->owningAssociation()->asQModelingObject(); } const QList<QObject *> QUmlExtensionEndObject::qualifiers() const { QList<QObject *> list; - foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->qualifiers()) - list.append(element->asQObject()); + foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->qualifiers()) + list.append(element->asQModelingObject()); return list; } const QSet<QObject *> QUmlExtensionEndObject::redefinedProperties() const { QSet<QObject *> set; - foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->redefinedProperties()) - set.insert(element->asQObject()); + foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->redefinedProperties()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlExtensionEndObject::subsettedProperties() const { QSet<QObject *> set; - foreach (QUmlProperty *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->subsettedProperties()) - set.insert(element->asQObject()); + foreach (QUmlProperty *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->subsettedProperties()) + set.insert(element->asQModelingObject()); return set; } @@ -394,15 +397,15 @@ const QSet<QObject *> QUmlExtensionEndObject::subsettedProperties() const int QUmlExtensionEndObject::lower() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->lower(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->lower(); } QObject *QUmlExtensionEndObject::type() const { - if (!qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->type()) + if (!qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->type()) return 0; else - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->type()->asQObject(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->type()->asQModelingObject(); } // OPERATIONS [Element] @@ -410,14 +413,14 @@ QObject *QUmlExtensionEndObject::type() const QSet<QObject *> QUmlExtensionEndObject::allOwnedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->allOwnedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->allOwnedElements()) + set.insert(element->asQModelingObject()); return set; } bool QUmlExtensionEndObject::mustBeOwned() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->mustBeOwned(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->mustBeOwned(); } // OPERATIONS [NamedElement] @@ -425,102 +428,102 @@ bool QUmlExtensionEndObject::mustBeOwned() const QList<QObject *> QUmlExtensionEndObject::allNamespaces() const { QList<QObject *> set; - foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->allNamespaces()) - set.append(element->asQObject()); + foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->allNamespaces()) + set.append(element->asQModelingObject()); return set; } QSet<QObject *> QUmlExtensionEndObject::allOwningPackages() const { QSet<QObject *> set; - foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->allOwningPackages()) - set.insert(element->asQObject()); + foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->allOwningPackages()) + set.insert(element->asQModelingObject()); return set; } bool QUmlExtensionEndObject::isDistinguishableFrom(QObject *n, QObject *ns) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns)); } QString QUmlExtensionEndObject::separator() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->separator(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->separator(); } // OPERATIONS [MultiplicityElement] bool QUmlExtensionEndObject::compatibleWith(QObject *other) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->compatibleWith(qmodelingobjectproperty_cast<QUmlMultiplicityElement *>(other)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->compatibleWith(qmodelingelementproperty_cast<QUmlMultiplicityElement *>(other)); } bool QUmlExtensionEndObject::includesCardinality(int C) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->includesCardinality(C); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->includesCardinality(C); } bool QUmlExtensionEndObject::includesMultiplicity(QObject *M) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->includesMultiplicity(qmodelingobjectproperty_cast<QUmlMultiplicityElement *>(M)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->includesMultiplicity(qmodelingelementproperty_cast<QUmlMultiplicityElement *>(M)); } bool QUmlExtensionEndObject::is(int lowerbound, int upperbound) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->is(lowerbound, upperbound); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->is(lowerbound, upperbound); } bool QUmlExtensionEndObject::isMultivalued() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isMultivalued(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isMultivalued(); } //int QUmlExtensionEndObject::upperBound() const //{ -// return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->upperBound(); +// return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->upperBound(); //} // OPERATIONS [RedefinableElement] bool QUmlExtensionEndObject::isRedefinitionContextValid(QObject *redefined) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isRedefinitionContextValid(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefined)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isRedefinitionContextValid(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefined)); } // OPERATIONS [ParameterableElement] bool QUmlExtensionEndObject::isTemplateParameter() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isTemplateParameter(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isTemplateParameter(); } // OPERATIONS [Property] bool QUmlExtensionEndObject::isAttribute(QObject *p) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isAttribute(qmodelingobjectproperty_cast<QUmlProperty *>(p)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isAttribute(qmodelingelementproperty_cast<QUmlProperty *>(p)); } bool QUmlExtensionEndObject::isCompatibleWith(QObject *p) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isCompatibleWith(qmodelingobjectproperty_cast<QUmlParameterableElement *>(p)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isCompatibleWith(qmodelingelementproperty_cast<QUmlParameterableElement *>(p)); } bool QUmlExtensionEndObject::isConsistentWith(QObject *redefinee) const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isConsistentWith(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinee)); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isConsistentWith(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinee)); } bool QUmlExtensionEndObject::isNavigable() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->isNavigable(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->isNavigable(); } QSet<QObject *> QUmlExtensionEndObject::subsettingContext() const { QSet<QObject *> set; - foreach (QUmlType *element, qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->subsettingContext()) - set.insert(element->asQObject()); + foreach (QUmlType *element, qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->subsettingContext()) + set.insert(element->asQModelingObject()); return set; } @@ -528,366 +531,478 @@ QSet<QObject *> QUmlExtensionEndObject::subsettingContext() const int QUmlExtensionEndObject::lowerBound() const { - return qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->lowerBound(); + return qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->lowerBound(); } // SLOTS FOR OWNED ATTRIBUTES [Element] void QUmlExtensionEndObject::addOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlExtensionEndObject::removeOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlExtensionEndObject::addOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlExtensionEndObject::removeOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlExtensionEndObject::setOwner(QObject *owner) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner)); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QUmlExtensionEndObject::addClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlExtensionEndObject::removeClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlExtensionEndObject::setName(QString name) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setName(name); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setName(name); } void QUmlExtensionEndObject::setNameExpression(QObject *nameExpression) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression)); } void QUmlExtensionEndObject::setNamespace(QObject *namespace_) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_)); } void QUmlExtensionEndObject::setQualifiedName(QString qualifiedName) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setQualifiedName(qualifiedName); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setQualifiedName(qualifiedName); } void QUmlExtensionEndObject::setVisibility(QtUml::VisibilityKind visibility) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setVisibility(visibility); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setVisibility(visibility); } // SLOTS FOR OWNED ATTRIBUTES [MultiplicityElement] void QUmlExtensionEndObject::setOrdered(bool isOrdered) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setOrdered(isOrdered); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setOrdered(isOrdered); } void QUmlExtensionEndObject::unsetOrdered() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("ordered")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("ordered")); } void QUmlExtensionEndObject::setUnique(bool isUnique) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setUnique(isUnique); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setUnique(isUnique); } void QUmlExtensionEndObject::unsetUnique() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("unique")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("unique")); } void QUmlExtensionEndObject::setLowerValue(QObject *lowerValue) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setLowerValue(qmodelingobjectproperty_cast<QUmlValueSpecification *>(lowerValue)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setLowerValue(qmodelingelementproperty_cast<QUmlValueSpecification *>(lowerValue)); } void QUmlExtensionEndObject::setUpper(int upper) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setUpper(upper); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setUpper(upper); } void QUmlExtensionEndObject::unsetUpper() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("upper")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("upper")); } void QUmlExtensionEndObject::setUpperValue(QObject *upperValue) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setUpperValue(qmodelingobjectproperty_cast<QUmlValueSpecification *>(upperValue)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setUpperValue(qmodelingelementproperty_cast<QUmlValueSpecification *>(upperValue)); } // SLOTS FOR OWNED ATTRIBUTES [RedefinableElement] void QUmlExtensionEndObject::setLeaf(bool isLeaf) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setLeaf(isLeaf); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setLeaf(isLeaf); } void QUmlExtensionEndObject::unsetLeaf() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("leaf")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("leaf")); } void QUmlExtensionEndObject::addRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlExtensionEndObject::removeRedefinedElement(QObject *redefinedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinedElement(qmodelingobjectproperty_cast<QUmlRedefinableElement *>(redefinedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinedElement(qmodelingelementproperty_cast<QUmlRedefinableElement *>(redefinedElement)); } void QUmlExtensionEndObject::addRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } void QUmlExtensionEndObject::removeRedefinitionContext(QObject *redefinitionContext) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinitionContext(qmodelingobjectproperty_cast<QUmlClassifier *>(redefinitionContext)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinitionContext(qmodelingelementproperty_cast<QUmlClassifier *>(redefinitionContext)); } // SLOTS FOR OWNED ATTRIBUTES [Feature] void QUmlExtensionEndObject::addFeaturingClassifier(QObject *featuringClassifier) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addFeaturingClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(featuringClassifier)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addFeaturingClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(featuringClassifier)); } void QUmlExtensionEndObject::removeFeaturingClassifier(QObject *featuringClassifier) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeFeaturingClassifier(qmodelingobjectproperty_cast<QUmlClassifier *>(featuringClassifier)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeFeaturingClassifier(qmodelingelementproperty_cast<QUmlClassifier *>(featuringClassifier)); } void QUmlExtensionEndObject::setStatic(bool isStatic) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setStatic(isStatic); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setStatic(isStatic); } void QUmlExtensionEndObject::unsetStatic() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("static")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("static")); } // SLOTS FOR OWNED ATTRIBUTES [ParameterableElement] void QUmlExtensionEndObject::setOwningTemplateParameter(QObject *owningTemplateParameter) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setOwningTemplateParameter(qmodelingobjectproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setOwningTemplateParameter(qmodelingelementproperty_cast<QUmlTemplateParameter *>(owningTemplateParameter)); } // SLOTS FOR OWNED ATTRIBUTES [ConnectableElement] void QUmlExtensionEndObject::addEnd(QObject *end) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addEnd(qmodelingobjectproperty_cast<QUmlConnectorEnd *>(end)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addEnd(qmodelingelementproperty_cast<QUmlConnectorEnd *>(end)); } void QUmlExtensionEndObject::removeEnd(QObject *end) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeEnd(qmodelingobjectproperty_cast<QUmlConnectorEnd *>(end)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeEnd(qmodelingelementproperty_cast<QUmlConnectorEnd *>(end)); } void QUmlExtensionEndObject::setTemplateParameter(QObject *templateParameter) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setTemplateParameter(qmodelingobjectproperty_cast<QUmlConnectableElementTemplateParameter *>(templateParameter)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setTemplateParameter(qmodelingelementproperty_cast<QUmlConnectableElementTemplateParameter *>(templateParameter)); } // SLOTS FOR OWNED ATTRIBUTES [DeploymentTarget] void QUmlExtensionEndObject::addDeployedElement(QObject *deployedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addDeployedElement(qmodelingobjectproperty_cast<QUmlPackageableElement *>(deployedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addDeployedElement(qmodelingelementproperty_cast<QUmlPackageableElement *>(deployedElement)); } void QUmlExtensionEndObject::removeDeployedElement(QObject *deployedElement) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeDeployedElement(qmodelingobjectproperty_cast<QUmlPackageableElement *>(deployedElement)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeDeployedElement(qmodelingelementproperty_cast<QUmlPackageableElement *>(deployedElement)); } void QUmlExtensionEndObject::addDeployment(QObject *deployment) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addDeployment(qmodelingobjectproperty_cast<QUmlDeployment *>(deployment)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addDeployment(qmodelingelementproperty_cast<QUmlDeployment *>(deployment)); } void QUmlExtensionEndObject::removeDeployment(QObject *deployment) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeDeployment(qmodelingobjectproperty_cast<QUmlDeployment *>(deployment)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeDeployment(qmodelingelementproperty_cast<QUmlDeployment *>(deployment)); } // SLOTS FOR OWNED ATTRIBUTES [Property] void QUmlExtensionEndObject::setAggregation(QtUml::AggregationKind aggregation) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setAggregation(aggregation); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setAggregation(aggregation); } void QUmlExtensionEndObject::unsetAggregation() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("aggregation")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("aggregation")); } void QUmlExtensionEndObject::setAssociation(QObject *association) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setAssociation(qmodelingobjectproperty_cast<QUmlAssociation *>(association)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setAssociation(qmodelingelementproperty_cast<QUmlAssociation *>(association)); } void QUmlExtensionEndObject::setAssociationEnd(QObject *associationEnd) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setAssociationEnd(qmodelingobjectproperty_cast<QUmlProperty *>(associationEnd)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setAssociationEnd(qmodelingelementproperty_cast<QUmlProperty *>(associationEnd)); } void QUmlExtensionEndObject::setClass(QObject *class_) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setClass(qmodelingobjectproperty_cast<QUmlClass *>(class_)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setClass(qmodelingelementproperty_cast<QUmlClass *>(class_)); } void QUmlExtensionEndObject::setDatatype(QObject *datatype) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setDatatype(qmodelingobjectproperty_cast<QUmlDataType *>(datatype)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setDatatype(qmodelingelementproperty_cast<QUmlDataType *>(datatype)); } void QUmlExtensionEndObject::setDefault(QString default_) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setDefault(default_); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setDefault(default_); } void QUmlExtensionEndObject::setDefaultValue(QObject *defaultValue) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setDefaultValue(qmodelingobjectproperty_cast<QUmlValueSpecification *>(defaultValue)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setDefaultValue(qmodelingelementproperty_cast<QUmlValueSpecification *>(defaultValue)); } void QUmlExtensionEndObject::setInterface(QObject *interface_) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setInterface(qmodelingobjectproperty_cast<QUmlInterface *>(interface_)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setInterface(qmodelingelementproperty_cast<QUmlInterface *>(interface_)); } void QUmlExtensionEndObject::setComposite(bool isComposite) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setComposite(isComposite); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setComposite(isComposite); } void QUmlExtensionEndObject::unsetComposite() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("composite")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("composite")); } void QUmlExtensionEndObject::setDerived(bool isDerived) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setDerived(isDerived); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setDerived(isDerived); } void QUmlExtensionEndObject::unsetDerived() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("derived")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("derived")); } void QUmlExtensionEndObject::setDerivedUnion(bool isDerivedUnion) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setDerivedUnion(isDerivedUnion); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setDerivedUnion(isDerivedUnion); } void QUmlExtensionEndObject::unsetDerivedUnion() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("derivedUnion")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("derivedUnion")); } void QUmlExtensionEndObject::setID(bool isID) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setID(isID); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setID(isID); } void QUmlExtensionEndObject::unsetID() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("iD")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("iD")); } void QUmlExtensionEndObject::setReadOnly(bool isReadOnly) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setReadOnly(isReadOnly); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setReadOnly(isReadOnly); } void QUmlExtensionEndObject::unsetReadOnly() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("readOnly")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("readOnly")); } void QUmlExtensionEndObject::setOpposite(QObject *opposite) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setOpposite(qmodelingobjectproperty_cast<QUmlProperty *>(opposite)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setOpposite(qmodelingelementproperty_cast<QUmlProperty *>(opposite)); } void QUmlExtensionEndObject::setOwningAssociation(QObject *owningAssociation) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setOwningAssociation(qmodelingobjectproperty_cast<QUmlAssociation *>(owningAssociation)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setOwningAssociation(qmodelingelementproperty_cast<QUmlAssociation *>(owningAssociation)); } void QUmlExtensionEndObject::addQualifier(QObject *qualifier) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addQualifier(qmodelingobjectproperty_cast<QUmlProperty *>(qualifier)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addQualifier(qmodelingelementproperty_cast<QUmlProperty *>(qualifier)); } void QUmlExtensionEndObject::removeQualifier(QObject *qualifier) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeQualifier(qmodelingobjectproperty_cast<QUmlProperty *>(qualifier)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeQualifier(qmodelingelementproperty_cast<QUmlProperty *>(qualifier)); } void QUmlExtensionEndObject::addRedefinedProperty(QObject *redefinedProperty) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addRedefinedProperty(qmodelingobjectproperty_cast<QUmlProperty *>(redefinedProperty)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addRedefinedProperty(qmodelingelementproperty_cast<QUmlProperty *>(redefinedProperty)); } void QUmlExtensionEndObject::removeRedefinedProperty(QObject *redefinedProperty) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinedProperty(qmodelingobjectproperty_cast<QUmlProperty *>(redefinedProperty)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeRedefinedProperty(qmodelingelementproperty_cast<QUmlProperty *>(redefinedProperty)); } void QUmlExtensionEndObject::addSubsettedProperty(QObject *subsettedProperty) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->addSubsettedProperty(qmodelingobjectproperty_cast<QUmlProperty *>(subsettedProperty)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->addSubsettedProperty(qmodelingelementproperty_cast<QUmlProperty *>(subsettedProperty)); } void QUmlExtensionEndObject::removeSubsettedProperty(QObject *subsettedProperty) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->removeSubsettedProperty(qmodelingobjectproperty_cast<QUmlProperty *>(subsettedProperty)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->removeSubsettedProperty(qmodelingelementproperty_cast<QUmlProperty *>(subsettedProperty)); } // SLOTS FOR OWNED ATTRIBUTES [ExtensionEnd] void QUmlExtensionEndObject::setLower(int lower) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setLower(lower); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setLower(lower); } void QUmlExtensionEndObject::unsetLower() { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("lower")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("lower")); } void QUmlExtensionEndObject::setType(QObject *type) { - qmodelingobjectproperty_cast<QUmlExtensionEnd *>(this)->setType(qmodelingobjectproperty_cast<QUmlStereotype *>(type)); + qmodelingelementproperty_cast<QUmlExtensionEnd *>(this)->setType(qmodelingelementproperty_cast<QUmlStereotype *>(type)); +} + + +void QUmlExtensionEndObject::setGroupProperties() +{ + Q_D(QModelingObject); + const QMetaObject *metaObject = this->metaObject(); + + d->propertyGroups << QStringLiteral("QObject"); + d->groupProperties.insert(QStringLiteral("QObject"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("objectName")))); + + d->propertyGroups << QStringLiteral("QUmlElement"); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedComments")))); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedElements")))); + d->groupProperties.insert(QStringLiteral("QUmlElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owner")))); + + d->propertyGroups << QStringLiteral("QUmlNamedElement"); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("clientDependencies")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("name")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("nameExpression")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("namespace_")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("qualifiedName")))); + d->groupProperties.insert(QStringLiteral("QUmlNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility")))); + + d->propertyGroups << QStringLiteral("QUmlTypedElement"); + + d->propertyGroups << QStringLiteral("QUmlMultiplicityElement"); + d->groupProperties.insert(QStringLiteral("QUmlMultiplicityElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isOrdered")))); + d->groupProperties.insert(QStringLiteral("QUmlMultiplicityElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isUnique")))); + d->groupProperties.insert(QStringLiteral("QUmlMultiplicityElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("lowerValue")))); + d->groupProperties.insert(QStringLiteral("QUmlMultiplicityElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("upper")))); + d->groupProperties.insert(QStringLiteral("QUmlMultiplicityElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("upperValue")))); + + 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("QUmlFeature"); + d->groupProperties.insert(QStringLiteral("QUmlFeature"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("featuringClassifiers")))); + d->groupProperties.insert(QStringLiteral("QUmlFeature"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isStatic")))); + + d->propertyGroups << QStringLiteral("QUmlStructuralFeature"); + + d->propertyGroups << QStringLiteral("QUmlParameterableElement"); + d->groupProperties.insert(QStringLiteral("QUmlParameterableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owningTemplateParameter")))); + + d->propertyGroups << QStringLiteral("QUmlConnectableElement"); + d->groupProperties.insert(QStringLiteral("QUmlConnectableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ends")))); + d->groupProperties.insert(QStringLiteral("QUmlConnectableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("templateParameter")))); + + d->propertyGroups << QStringLiteral("QUmlDeploymentTarget"); + d->groupProperties.insert(QStringLiteral("QUmlDeploymentTarget"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("deployedElements")))); + d->groupProperties.insert(QStringLiteral("QUmlDeploymentTarget"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("deployments")))); + + d->propertyGroups << QStringLiteral("QUmlProperty"); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("aggregation")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("association")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("associationEnd")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("class_")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("datatype")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("default_")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("defaultValue")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("interface_")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isComposite")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isDerived")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isDerivedUnion")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isID")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isReadOnly")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("opposite")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owningAssociation")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("qualifiers")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedProperties")))); + d->groupProperties.insert(QStringLiteral("QUmlProperty"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("subsettedProperties")))); + + d->propertyGroups << QStringLiteral("QUmlExtensionEnd"); + d->groupProperties.insert(QStringLiteral("QUmlExtensionEnd"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("lower")))); + d->groupProperties.insert(QStringLiteral("QUmlExtensionEnd"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("type")))); +} + +void QUmlExtensionEndObject::setPropertyData() +{ + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, AggregationRole, QStringLiteral("none")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, PropertyClassRole, QStringLiteral("QUmlExtensionEnd")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, IsDerivedRole, true); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, DocumentationRole, QStringLiteral("This redefinition changes the default multiplicity of association ends, since model elements are usually extended by 0 or 1 instance of the extension stereotype.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, RedefinedPropertiesRole, QStringLiteral("MultiplicityElement-lower")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, SubsettedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, lower, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, AggregationRole, QStringLiteral("none")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, PropertyClassRole, QStringLiteral("QUmlExtensionEnd")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, DocumentationRole, QStringLiteral("References the type of the ExtensionEnd. Note that this association restricts the possible types of an ExtensionEnd to only be Stereotypes.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, RedefinedPropertiesRole, QStringLiteral("TypedElement-type")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, SubsettedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlExtensionEnd, type, OppositeEndRole, QStringLiteral("")); + } QT_END_NAMESPACE |