diff options
Diffstat (limited to 'src/uml/qobjects/qumlcombinedfragmentobject.cpp')
-rw-r--r-- | src/uml/qobjects/qumlcombinedfragmentobject.cpp | 199 |
1 files changed, 134 insertions, 65 deletions
diff --git a/src/uml/qobjects/qumlcombinedfragmentobject.cpp b/src/uml/qobjects/qumlcombinedfragmentobject.cpp index 3f9e076b..116e192d 100644 --- a/src/uml/qobjects/qumlcombinedfragmentobject.cpp +++ b/src/uml/qobjects/qumlcombinedfragmentobject.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ #include "qumlcombinedfragmentobject_p.h" +#include "private/qmodelingobject_p.h" #include <QtUml/QUmlCombinedFragment> #include <QtUml/QUmlComment> @@ -56,16 +57,18 @@ QT_BEGIN_NAMESPACE -QUmlCombinedFragmentObject::QUmlCombinedFragmentObject(QUmlCombinedFragment *qModelingObject) +QUmlCombinedFragmentObject::QUmlCombinedFragmentObject(QUmlCombinedFragment *qModelingElement) { - setProperty("modelingObject", QVariant::fromValue(static_cast<QModelingObject *>(qModelingObject))); + setProperty("modelingElement", QVariant::fromValue(static_cast<QModelingElement *>(qModelingElement))); + setGroupProperties(); + setPropertyData(); } QUmlCombinedFragmentObject::~QUmlCombinedFragmentObject() { if (!property("deletingFromModelingObject").isValid()) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->deletingFromQObject = true; - delete qmodelingobjectproperty_cast<QUmlComment *>(this); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->deletingFromQModelingObject = true; + delete qmodelingelementproperty_cast<QUmlComment *>(this); } } @@ -74,25 +77,25 @@ QUmlCombinedFragmentObject::~QUmlCombinedFragmentObject() const QSet<QObject *> QUmlCombinedFragmentObject::ownedComments() const { QSet<QObject *> set; - foreach (QUmlComment *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->ownedComments()) - set.insert(element->asQObject()); + foreach (QUmlComment *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->ownedComments()) + set.insert(element->asQModelingObject()); return set; } const QSet<QObject *> QUmlCombinedFragmentObject::ownedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->ownedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->ownedElements()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlCombinedFragmentObject::owner() const { - if (!qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->owner()) + if (!qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->owner()) return 0; else - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->owner()->asQObject(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] @@ -100,40 +103,40 @@ QObject *QUmlCombinedFragmentObject::owner() const const QSet<QObject *> QUmlCombinedFragmentObject::clientDependencies() const { QSet<QObject *> set; - foreach (QUmlDependency *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->clientDependencies()) - set.insert(element->asQObject()); + foreach (QUmlDependency *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->clientDependencies()) + set.insert(element->asQModelingObject()); return set; } QString QUmlCombinedFragmentObject::name() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->name(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->name(); } QObject *QUmlCombinedFragmentObject::nameExpression() const { - if (!qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->nameExpression()) + if (!qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->nameExpression()) return 0; else - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->nameExpression()->asQObject(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->nameExpression()->asQModelingObject(); } QObject *QUmlCombinedFragmentObject::namespace_() const { - if (!qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->namespace_()) + if (!qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->namespace_()) return 0; else - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->namespace_()->asQObject(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->namespace_()->asQModelingObject(); } QString QUmlCombinedFragmentObject::qualifiedName() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->qualifiedName(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->qualifiedName(); } QtUml::VisibilityKind QUmlCombinedFragmentObject::visibility() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->visibility(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->visibility(); } // OWNED ATTRIBUTES [InteractionFragment] @@ -141,32 +144,32 @@ QtUml::VisibilityKind QUmlCombinedFragmentObject::visibility() const const QSet<QObject *> QUmlCombinedFragmentObject::covered() const { QSet<QObject *> set; - foreach (QUmlLifeline *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->covered()) - set.insert(element->asQObject()); + foreach (QUmlLifeline *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->covered()) + set.insert(element->asQModelingObject()); return set; } QObject *QUmlCombinedFragmentObject::enclosingInteraction() const { - if (!qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->enclosingInteraction()) + if (!qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->enclosingInteraction()) return 0; else - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->enclosingInteraction()->asQObject(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->enclosingInteraction()->asQModelingObject(); } QObject *QUmlCombinedFragmentObject::enclosingOperand() const { - if (!qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->enclosingOperand()) + if (!qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->enclosingOperand()) return 0; else - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->enclosingOperand()->asQObject(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->enclosingOperand()->asQModelingObject(); } const QSet<QObject *> QUmlCombinedFragmentObject::generalOrderings() const { QSet<QObject *> set; - foreach (QUmlGeneralOrdering *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->generalOrderings()) - set.insert(element->asQObject()); + foreach (QUmlGeneralOrdering *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->generalOrderings()) + set.insert(element->asQModelingObject()); return set; } @@ -175,21 +178,21 @@ const QSet<QObject *> QUmlCombinedFragmentObject::generalOrderings() const const QSet<QObject *> QUmlCombinedFragmentObject::cfragmentGates() const { QSet<QObject *> set; - foreach (QUmlGate *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->cfragmentGates()) - set.insert(element->asQObject()); + foreach (QUmlGate *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->cfragmentGates()) + set.insert(element->asQModelingObject()); return set; } QtUml::InteractionOperatorKind QUmlCombinedFragmentObject::interactionOperator() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->interactionOperator(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->interactionOperator(); } const QList<QObject *> QUmlCombinedFragmentObject::operands() const { QList<QObject *> list; - foreach (QUmlInteractionOperand *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->operands()) - list.append(element->asQObject()); + foreach (QUmlInteractionOperand *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->operands()) + list.append(element->asQModelingObject()); return list; } @@ -198,14 +201,14 @@ const QList<QObject *> QUmlCombinedFragmentObject::operands() const QSet<QObject *> QUmlCombinedFragmentObject::allOwnedElements() const { QSet<QObject *> set; - foreach (QUmlElement *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->allOwnedElements()) - set.insert(element->asQObject()); + foreach (QUmlElement *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->allOwnedElements()) + set.insert(element->asQModelingObject()); return set; } bool QUmlCombinedFragmentObject::mustBeOwned() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->mustBeOwned(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->mustBeOwned(); } // OPERATIONS [NamedElement] @@ -213,155 +216,221 @@ bool QUmlCombinedFragmentObject::mustBeOwned() const QList<QObject *> QUmlCombinedFragmentObject::allNamespaces() const { QList<QObject *> set; - foreach (QUmlNamespace *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->allNamespaces()) - set.append(element->asQObject()); + foreach (QUmlNamespace *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->allNamespaces()) + set.append(element->asQModelingObject()); return set; } QSet<QObject *> QUmlCombinedFragmentObject::allOwningPackages() const { QSet<QObject *> set; - foreach (QUmlPackage *element, qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->allOwningPackages()) - set.insert(element->asQObject()); + foreach (QUmlPackage *element, qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->allOwningPackages()) + set.insert(element->asQModelingObject()); return set; } bool QUmlCombinedFragmentObject::isDistinguishableFrom(QObject *n, QObject *ns) const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->isDistinguishableFrom(qmodelingobjectproperty_cast<QUmlNamedElement *>(n), qmodelingobjectproperty_cast<QUmlNamespace *>(ns)); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->isDistinguishableFrom(qmodelingelementproperty_cast<QUmlNamedElement *>(n), qmodelingelementproperty_cast<QUmlNamespace *>(ns)); } QString QUmlCombinedFragmentObject::separator() const { - return qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->separator(); + return qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->separator(); } // SLOTS FOR OWNED ATTRIBUTES [Element] void QUmlCombinedFragmentObject::addOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlCombinedFragmentObject::removeOwnedComment(QObject *ownedComment) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeOwnedComment(qmodelingobjectproperty_cast<QUmlComment *>(ownedComment)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeOwnedComment(qmodelingelementproperty_cast<QUmlComment *>(ownedComment)); } void QUmlCombinedFragmentObject::addOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlCombinedFragmentObject::removeOwnedElement(QObject *ownedElement) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeOwnedElement(qmodelingobjectproperty_cast<QUmlElement *>(ownedElement)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeOwnedElement(qmodelingelementproperty_cast<QUmlElement *>(ownedElement)); } void QUmlCombinedFragmentObject::setOwner(QObject *owner) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setOwner(qmodelingobjectproperty_cast<QUmlElement *>(owner)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setOwner(qmodelingelementproperty_cast<QUmlElement *>(owner)); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QUmlCombinedFragmentObject::addClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlCombinedFragmentObject::removeClientDependency(QObject *clientDependency) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeClientDependency(qmodelingobjectproperty_cast<QUmlDependency *>(clientDependency)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeClientDependency(qmodelingelementproperty_cast<QUmlDependency *>(clientDependency)); } void QUmlCombinedFragmentObject::setName(QString name) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setName(name); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setName(name); } void QUmlCombinedFragmentObject::setNameExpression(QObject *nameExpression) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setNameExpression(qmodelingobjectproperty_cast<QUmlStringExpression *>(nameExpression)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setNameExpression(qmodelingelementproperty_cast<QUmlStringExpression *>(nameExpression)); } void QUmlCombinedFragmentObject::setNamespace(QObject *namespace_) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setNamespace(qmodelingobjectproperty_cast<QUmlNamespace *>(namespace_)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setNamespace(qmodelingelementproperty_cast<QUmlNamespace *>(namespace_)); } void QUmlCombinedFragmentObject::setQualifiedName(QString qualifiedName) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setQualifiedName(qualifiedName); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setQualifiedName(qualifiedName); } void QUmlCombinedFragmentObject::setVisibility(QtUml::VisibilityKind visibility) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setVisibility(visibility); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setVisibility(visibility); } // SLOTS FOR OWNED ATTRIBUTES [InteractionFragment] void QUmlCombinedFragmentObject::addCovered(QObject *covered) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addCovered(qmodelingobjectproperty_cast<QUmlLifeline *>(covered)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addCovered(qmodelingelementproperty_cast<QUmlLifeline *>(covered)); } void QUmlCombinedFragmentObject::removeCovered(QObject *covered) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeCovered(qmodelingobjectproperty_cast<QUmlLifeline *>(covered)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeCovered(qmodelingelementproperty_cast<QUmlLifeline *>(covered)); } void QUmlCombinedFragmentObject::setEnclosingInteraction(QObject *enclosingInteraction) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setEnclosingInteraction(qmodelingobjectproperty_cast<QUmlInteraction *>(enclosingInteraction)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setEnclosingInteraction(qmodelingelementproperty_cast<QUmlInteraction *>(enclosingInteraction)); } void QUmlCombinedFragmentObject::setEnclosingOperand(QObject *enclosingOperand) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setEnclosingOperand(qmodelingobjectproperty_cast<QUmlInteractionOperand *>(enclosingOperand)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setEnclosingOperand(qmodelingelementproperty_cast<QUmlInteractionOperand *>(enclosingOperand)); } void QUmlCombinedFragmentObject::addGeneralOrdering(QObject *generalOrdering) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addGeneralOrdering(qmodelingobjectproperty_cast<QUmlGeneralOrdering *>(generalOrdering)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addGeneralOrdering(qmodelingelementproperty_cast<QUmlGeneralOrdering *>(generalOrdering)); } void QUmlCombinedFragmentObject::removeGeneralOrdering(QObject *generalOrdering) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeGeneralOrdering(qmodelingobjectproperty_cast<QUmlGeneralOrdering *>(generalOrdering)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeGeneralOrdering(qmodelingelementproperty_cast<QUmlGeneralOrdering *>(generalOrdering)); } // SLOTS FOR OWNED ATTRIBUTES [CombinedFragment] void QUmlCombinedFragmentObject::addCfragmentGate(QObject *cfragmentGate) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addCfragmentGate(qmodelingobjectproperty_cast<QUmlGate *>(cfragmentGate)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addCfragmentGate(qmodelingelementproperty_cast<QUmlGate *>(cfragmentGate)); } void QUmlCombinedFragmentObject::removeCfragmentGate(QObject *cfragmentGate) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeCfragmentGate(qmodelingobjectproperty_cast<QUmlGate *>(cfragmentGate)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeCfragmentGate(qmodelingelementproperty_cast<QUmlGate *>(cfragmentGate)); } void QUmlCombinedFragmentObject::setInteractionOperator(QtUml::InteractionOperatorKind interactionOperator) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->setInteractionOperator(interactionOperator); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->setInteractionOperator(interactionOperator); } void QUmlCombinedFragmentObject::unsetInteractionOperator() { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->modifiedResettableProperties().removeAll(QStringLiteral("interactionOperator")); + Q_D(QModelingObject); + d->modifiedResettableProperties.removeAll(QStringLiteral("interactionOperator")); } void QUmlCombinedFragmentObject::addOperand(QObject *operand) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->addOperand(qmodelingobjectproperty_cast<QUmlInteractionOperand *>(operand)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->addOperand(qmodelingelementproperty_cast<QUmlInteractionOperand *>(operand)); } void QUmlCombinedFragmentObject::removeOperand(QObject *operand) { - qmodelingobjectproperty_cast<QUmlCombinedFragment *>(this)->removeOperand(qmodelingobjectproperty_cast<QUmlInteractionOperand *>(operand)); + qmodelingelementproperty_cast<QUmlCombinedFragment *>(this)->removeOperand(qmodelingelementproperty_cast<QUmlInteractionOperand *>(operand)); +} + + +void QUmlCombinedFragmentObject::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("QUmlInteractionFragment"); + d->groupProperties.insert(QStringLiteral("QUmlInteractionFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("covered")))); + d->groupProperties.insert(QStringLiteral("QUmlInteractionFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("enclosingInteraction")))); + d->groupProperties.insert(QStringLiteral("QUmlInteractionFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("enclosingOperand")))); + d->groupProperties.insert(QStringLiteral("QUmlInteractionFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("generalOrderings")))); + + d->propertyGroups << QStringLiteral("QUmlCombinedFragment"); + d->groupProperties.insert(QStringLiteral("QUmlCombinedFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("cfragmentGates")))); + d->groupProperties.insert(QStringLiteral("QUmlCombinedFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("interactionOperator")))); + d->groupProperties.insert(QStringLiteral("QUmlCombinedFragment"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("operands")))); +} + +void QUmlCombinedFragmentObject::setPropertyData() +{ + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, PropertyClassRole, QStringLiteral("QUmlCombinedFragment")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, DocumentationRole, QStringLiteral("Specifies the gates that form the interface between this CombinedFragment and its surroundings")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, cfragmentGates, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, AggregationRole, QStringLiteral("none")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, PropertyClassRole, QStringLiteral("QUmlCombinedFragment")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, DocumentationRole, QStringLiteral("Specifies the operation which defines the semantics of this combination of InteractionFragments.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, SubsettedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, interactionOperator, OppositeEndRole, QStringLiteral("")); + + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, AggregationRole, QStringLiteral("composite")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, PropertyClassRole, QStringLiteral("QUmlCombinedFragment")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, IsDerivedRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, IsDerivedUnionRole, false); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, DocumentationRole, QStringLiteral("The set of operands of the combined fragment.")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, RedefinedPropertiesRole, QStringLiteral("")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement")); + Q_DECLARE_METAPROPERTY_INFO(QUmlCombinedFragment, operands, OppositeEndRole, QStringLiteral("")); + } QT_END_NAMESPACE |