/**************************************************************************** ** ** Copyright (C) 2013 Sandro S. Andrade ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtMof module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3.0 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU General Public License version 3.0 requirements will be ** met: http://www.gnu.org/copyleft/gpl.html. ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "qmofenumerationobject_p.h" #include "private/qmodelingobject_p.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include QT_BEGIN_NAMESPACE QMofEnumerationObject::QMofEnumerationObject(QMofEnumeration *modelingElement) { setProperty("modelingElement", QVariant::fromValue(static_cast(modelingElement))); setGroupProperties(); setPropertyData(); } // OWNED ATTRIBUTES [Element] const QSet QMofEnumerationObject::ownedComments() const { QSet set; foreach (QMofComment *element, qmodelingelementproperty_cast(this)->ownedComments()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::ownedElements() const { QSet set; foreach (QMofElement *element, qmodelingelementproperty_cast(this)->ownedElements()) set.insert(element->asQModelingObject()); return set; } QObject *QMofEnumerationObject::owner() const { if (!qmodelingelementproperty_cast(this)->owner()) return 0; else return qmodelingelementproperty_cast(this)->owner()->asQModelingObject(); } // OWNED ATTRIBUTES [NamedElement] QString QMofEnumerationObject::name() const { return qmodelingelementproperty_cast(this)->name(); } QObject *QMofEnumerationObject::namespace_() const { if (!qmodelingelementproperty_cast(this)->namespace_()) return 0; else return qmodelingelementproperty_cast(this)->namespace_()->asQModelingObject(); } QString QMofEnumerationObject::qualifiedName() const { return qmodelingelementproperty_cast(this)->qualifiedName(); } // OWNED ATTRIBUTES [PackageableElement] QtMof::VisibilityKind QMofEnumerationObject::visibility() const { return qmodelingelementproperty_cast(this)->visibility(); } // OWNED ATTRIBUTES [Type] QObject *QMofEnumerationObject::package() const { if (!qmodelingelementproperty_cast(this)->package()) return 0; else return qmodelingelementproperty_cast(this)->package()->asQModelingObject(); } // OWNED ATTRIBUTES [RedefinableElement] bool QMofEnumerationObject::isLeaf() const { return qmodelingelementproperty_cast(this)->isLeaf(); } const QSet QMofEnumerationObject::redefinedElements() const { QSet set; foreach (QMofRedefinableElement *element, qmodelingelementproperty_cast(this)->redefinedElements()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::redefinitionContexts() const { QSet set; foreach (QMofClassifier *element, qmodelingelementproperty_cast(this)->redefinitionContexts()) set.insert(element->asQModelingObject()); return set; } // OWNED ATTRIBUTES [Namespace] const QSet QMofEnumerationObject::elementImports() const { QSet set; foreach (QMofElementImport *element, qmodelingelementproperty_cast(this)->elementImports()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::importedMembers() const { QSet set; foreach (QMofPackageableElement *element, qmodelingelementproperty_cast(this)->importedMembers()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::members() const { QSet set; foreach (QMofNamedElement *element, qmodelingelementproperty_cast(this)->members()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::ownedMembers() const { QSet set; foreach (QMofNamedElement *element, qmodelingelementproperty_cast(this)->ownedMembers()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::ownedRules() const { QSet set; foreach (QMofConstraint *element, qmodelingelementproperty_cast(this)->ownedRules()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::packageImports() const { QSet set; foreach (QMofPackageImport *element, qmodelingelementproperty_cast(this)->packageImports()) set.insert(element->asQModelingObject()); return set; } // OWNED ATTRIBUTES [Classifier] const QSet QMofEnumerationObject::attributes() const { QSet set; foreach (QMofProperty *element, qmodelingelementproperty_cast(this)->attributes()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::features() const { QSet set; foreach (QMofFeature *element, qmodelingelementproperty_cast(this)->features()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::generals() const { QSet set; foreach (QMofClassifier *element, qmodelingelementproperty_cast(this)->generals()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::generalizations() const { QSet set; foreach (QMofGeneralization *element, qmodelingelementproperty_cast(this)->generalizations()) set.insert(element->asQModelingObject()); return set; } const QSet QMofEnumerationObject::inheritedMembers() const { QSet set; foreach (QMofNamedElement *element, qmodelingelementproperty_cast(this)->inheritedMembers()) set.insert(element->asQModelingObject()); return set; } bool QMofEnumerationObject::isAbstract() const { return qmodelingelementproperty_cast(this)->isAbstract(); } bool QMofEnumerationObject::isFinalSpecialization() const { return qmodelingelementproperty_cast(this)->isFinalSpecialization(); } const QSet QMofEnumerationObject::redefinedClassifiers() const { QSet set; foreach (QMofClassifier *element, qmodelingelementproperty_cast(this)->redefinedClassifiers()) set.insert(element->asQModelingObject()); return set; } // OWNED ATTRIBUTES [DataType] const QList QMofEnumerationObject::ownedAttributes() const { QList list; foreach (QMofProperty *element, qmodelingelementproperty_cast(this)->ownedAttributes()) list.append(element->asQModelingObject()); return list; } const QList QMofEnumerationObject::ownedOperations() const { QList list; foreach (QMofOperation *element, qmodelingelementproperty_cast(this)->ownedOperations()) list.append(element->asQModelingObject()); return list; } // OWNED ATTRIBUTES [Enumeration] const QList QMofEnumerationObject::ownedLiterals() const { QList list; foreach (QMofEnumerationLiteral *element, qmodelingelementproperty_cast(this)->ownedLiterals()) list.append(element->asQModelingObject()); return list; } // OPERATIONS [Element] QSet QMofEnumerationObject::allOwnedElements() const { QSet set; foreach (QMofElement *element, qmodelingelementproperty_cast(this)->allOwnedElements()) set.insert(element->asQModelingObject()); return set; } bool QMofEnumerationObject::mustBeOwned() const { return qmodelingelementproperty_cast(this)->mustBeOwned(); } QObject *QMofEnumerationObject::getMetaClass() const { if (!qmodelingelementproperty_cast(this)->getMetaClass()) return 0; else return qmodelingelementproperty_cast(this)->getMetaClass()->asQModelingObject(); } QObject *QMofEnumerationObject::container() const { if (!qmodelingelementproperty_cast(this)->container()) return 0; else return qmodelingelementproperty_cast(this)->container()->asQModelingObject(); } bool QMofEnumerationObject::isInstanceOfType(QObject *type, bool includesSubtypes) const { return qmodelingelementproperty_cast(this)->isInstanceOfType(qmodelingelementproperty_cast(type), includesSubtypes); } void QMofEnumerationObject::delete_() { return qmodelingelementproperty_cast(this)->delete_(); } // OPERATIONS [NamedElement] QList QMofEnumerationObject::allNamespaces() const { QList set; foreach (QMofNamespace *element, qmodelingelementproperty_cast(this)->allNamespaces()) set.append(element->asQModelingObject()); return set; } bool QMofEnumerationObject::isDistinguishableFrom(QObject *n, QObject *ns) const { return qmodelingelementproperty_cast(this)->isDistinguishableFrom(qmodelingelementproperty_cast(n), qmodelingelementproperty_cast(ns)); } QString QMofEnumerationObject::separator() const { return qmodelingelementproperty_cast(this)->separator(); } // OPERATIONS [Type] bool QMofEnumerationObject::isInstance(QObject *object) const { return qmodelingelementproperty_cast(this)->isInstance(qmodelingelementproperty_cast(object)); } // OPERATIONS [RedefinableElement] bool QMofEnumerationObject::isConsistentWith(QObject *redefinee) const { return qmodelingelementproperty_cast(this)->isConsistentWith(qmodelingelementproperty_cast(redefinee)); } bool QMofEnumerationObject::isRedefinitionContextValid(QObject *redefined) const { return qmodelingelementproperty_cast(this)->isRedefinitionContextValid(qmodelingelementproperty_cast(redefined)); } // OPERATIONS [Namespace] QSet QMofEnumerationObject::excludeCollisions(QObject *imps) const { QSet set; foreach (QMofPackageableElement *element, qmodelingelementproperty_cast(this)->excludeCollisions(qmodelingelementproperty_cast(imps))) set.insert(element->asQModelingObject()); return set; } QSet QMofEnumerationObject::getNamesOfMember(QObject *element) const { return qmodelingelementproperty_cast(this)->getNamesOfMember(qmodelingelementproperty_cast(element)); } QSet QMofEnumerationObject::importMembers(QObject *imps) const { QSet set; foreach (QMofPackageableElement *element, qmodelingelementproperty_cast(this)->importMembers(qmodelingelementproperty_cast(imps))) set.insert(element->asQModelingObject()); return set; } bool QMofEnumerationObject::membersAreDistinguishable() const { return qmodelingelementproperty_cast(this)->membersAreDistinguishable(); } // OPERATIONS [Classifier] QSet QMofEnumerationObject::allFeatures() const { QSet set; foreach (QMofFeature *element, qmodelingelementproperty_cast(this)->allFeatures()) set.insert(element->asQModelingObject()); return set; } QSet QMofEnumerationObject::allParents() const { QSet set; foreach (QMofClassifier *element, qmodelingelementproperty_cast(this)->allParents()) set.insert(element->asQModelingObject()); return set; } bool QMofEnumerationObject::conformsTo(QObject *other) const { return qmodelingelementproperty_cast(this)->conformsTo(qmodelingelementproperty_cast(other)); } bool QMofEnumerationObject::hasVisibilityOf(QObject *n) const { return qmodelingelementproperty_cast(this)->hasVisibilityOf(qmodelingelementproperty_cast(n)); } QSet QMofEnumerationObject::inheritableMembers(QObject *c) const { QSet set; foreach (QMofNamedElement *element, qmodelingelementproperty_cast(this)->inheritableMembers(qmodelingelementproperty_cast(c))) set.insert(element->asQModelingObject()); return set; } bool QMofEnumerationObject::maySpecializeType(QObject *c) const { return qmodelingelementproperty_cast(this)->maySpecializeType(qmodelingelementproperty_cast(c)); } QSet QMofEnumerationObject::parents() const { QSet set; foreach (QMofClassifier *element, qmodelingelementproperty_cast(this)->parents()) set.insert(element->asQModelingObject()); return set; } // OPERATIONS [DataType] QSet QMofEnumerationObject::inherit(QSet inhs) const { QSet inhsConverted; foreach (QObject *object, inhs) inhsConverted.insert(qmodelingelementproperty_cast(object)); QSet set; foreach (QMofNamedElement *element, qmodelingelementproperty_cast(this)->inherit(inhsConverted)) set.insert(element->asQModelingObject()); return set; } // SLOTS FOR OWNED ATTRIBUTES [Element] void QMofEnumerationObject::addOwnedComment(QObject *ownedComment) { qmodelingelementproperty_cast(this)->addOwnedComment(qmodelingelementproperty_cast(ownedComment)); emit ownedCommentsChanged(this->ownedComments()); } void QMofEnumerationObject::removeOwnedComment(QObject *ownedComment) { qmodelingelementproperty_cast(this)->removeOwnedComment(qmodelingelementproperty_cast(ownedComment)); emit ownedCommentsChanged(this->ownedComments()); } void QMofEnumerationObject::addOwnedElement(QObject *ownedElement) { qmodelingelementproperty_cast(this)->addOwnedElement(qmodelingelementproperty_cast(ownedElement)); emit ownedElementsChanged(this->ownedElements()); } void QMofEnumerationObject::removeOwnedElement(QObject *ownedElement) { qmodelingelementproperty_cast(this)->removeOwnedElement(qmodelingelementproperty_cast(ownedElement)); emit ownedElementsChanged(this->ownedElements()); } void QMofEnumerationObject::setOwner(QObject *owner) { qmodelingelementproperty_cast(this)->setOwner(qmodelingelementproperty_cast(owner)); emit ownerChanged(this->owner()); } // SLOTS FOR OWNED ATTRIBUTES [NamedElement] void QMofEnumerationObject::setName(QString name) { qmodelingelementproperty_cast(this)->setName(name); emit nameChanged(this->name()); } void QMofEnumerationObject::setNamespace(QObject *namespace_) { qmodelingelementproperty_cast(this)->setNamespace(qmodelingelementproperty_cast(namespace_)); emit namespaceChanged(this->namespace_()); } void QMofEnumerationObject::setQualifiedName(QString qualifiedName) { qmodelingelementproperty_cast(this)->setQualifiedName(qualifiedName); emit qualifiedNameChanged(this->qualifiedName()); } // SLOTS FOR OWNED ATTRIBUTES [PackageableElement] void QMofEnumerationObject::setVisibility(QtMof::VisibilityKind visibility) { qmodelingelementproperty_cast(this)->setVisibility(visibility); emit visibilityChanged(this->visibility()); } void QMofEnumerationObject::unsetVisibility() { Q_D(QModelingObject); setVisibility(QtMof::VisibilityKindPublic); d->modifiedResettableProperties.removeAll(QStringLiteral("visibility")); } // SLOTS FOR OWNED ATTRIBUTES [Type] void QMofEnumerationObject::setPackage(QObject *package) { qmodelingelementproperty_cast(this)->setPackage(qmodelingelementproperty_cast(package)); emit packageChanged(this->package()); } // SLOTS FOR OWNED ATTRIBUTES [RedefinableElement] void QMofEnumerationObject::setLeaf(bool isLeaf) { qmodelingelementproperty_cast(this)->setLeaf(isLeaf); emit isLeafChanged(this->isLeaf()); } void QMofEnumerationObject::unsetLeaf() { Q_D(QModelingObject); setLeaf(false); d->modifiedResettableProperties.removeAll(QStringLiteral("isLeaf")); } void QMofEnumerationObject::addRedefinedElement(QObject *redefinedElement) { qmodelingelementproperty_cast(this)->addRedefinedElement(qmodelingelementproperty_cast(redefinedElement)); emit redefinedElementsChanged(this->redefinedElements()); } void QMofEnumerationObject::removeRedefinedElement(QObject *redefinedElement) { qmodelingelementproperty_cast(this)->removeRedefinedElement(qmodelingelementproperty_cast(redefinedElement)); emit redefinedElementsChanged(this->redefinedElements()); } void QMofEnumerationObject::addRedefinitionContext(QObject *redefinitionContext) { qmodelingelementproperty_cast(this)->addRedefinitionContext(qmodelingelementproperty_cast(redefinitionContext)); emit redefinitionContextsChanged(this->redefinitionContexts()); } void QMofEnumerationObject::removeRedefinitionContext(QObject *redefinitionContext) { qmodelingelementproperty_cast(this)->removeRedefinitionContext(qmodelingelementproperty_cast(redefinitionContext)); emit redefinitionContextsChanged(this->redefinitionContexts()); } // SLOTS FOR OWNED ATTRIBUTES [Namespace] void QMofEnumerationObject::addElementImport(QObject *elementImport) { qmodelingelementproperty_cast(this)->addElementImport(qmodelingelementproperty_cast(elementImport)); emit elementImportsChanged(this->elementImports()); } void QMofEnumerationObject::removeElementImport(QObject *elementImport) { qmodelingelementproperty_cast(this)->removeElementImport(qmodelingelementproperty_cast(elementImport)); emit elementImportsChanged(this->elementImports()); } void QMofEnumerationObject::addImportedMember(QObject *importedMember) { qmodelingelementproperty_cast(this)->addImportedMember(qmodelingelementproperty_cast(importedMember)); emit importedMembersChanged(this->importedMembers()); } void QMofEnumerationObject::removeImportedMember(QObject *importedMember) { qmodelingelementproperty_cast(this)->removeImportedMember(qmodelingelementproperty_cast(importedMember)); emit importedMembersChanged(this->importedMembers()); } void QMofEnumerationObject::addMember(QObject *member) { qmodelingelementproperty_cast(this)->addMember(qmodelingelementproperty_cast(member)); emit membersChanged(this->members()); } void QMofEnumerationObject::removeMember(QObject *member) { qmodelingelementproperty_cast(this)->removeMember(qmodelingelementproperty_cast(member)); emit membersChanged(this->members()); } void QMofEnumerationObject::addOwnedMember(QObject *ownedMember) { qmodelingelementproperty_cast(this)->addOwnedMember(qmodelingelementproperty_cast(ownedMember)); emit ownedMembersChanged(this->ownedMembers()); } void QMofEnumerationObject::removeOwnedMember(QObject *ownedMember) { qmodelingelementproperty_cast(this)->removeOwnedMember(qmodelingelementproperty_cast(ownedMember)); emit ownedMembersChanged(this->ownedMembers()); } void QMofEnumerationObject::addOwnedRule(QObject *ownedRule) { qmodelingelementproperty_cast(this)->addOwnedRule(qmodelingelementproperty_cast(ownedRule)); emit ownedRulesChanged(this->ownedRules()); } void QMofEnumerationObject::removeOwnedRule(QObject *ownedRule) { qmodelingelementproperty_cast(this)->removeOwnedRule(qmodelingelementproperty_cast(ownedRule)); emit ownedRulesChanged(this->ownedRules()); } void QMofEnumerationObject::addPackageImport(QObject *packageImport) { qmodelingelementproperty_cast(this)->addPackageImport(qmodelingelementproperty_cast(packageImport)); emit packageImportsChanged(this->packageImports()); } void QMofEnumerationObject::removePackageImport(QObject *packageImport) { qmodelingelementproperty_cast(this)->removePackageImport(qmodelingelementproperty_cast(packageImport)); emit packageImportsChanged(this->packageImports()); } // SLOTS FOR OWNED ATTRIBUTES [Classifier] void QMofEnumerationObject::addAttribute(QObject *attribute) { qmodelingelementproperty_cast(this)->addAttribute(qmodelingelementproperty_cast(attribute)); emit attributesChanged(this->attributes()); } void QMofEnumerationObject::removeAttribute(QObject *attribute) { qmodelingelementproperty_cast(this)->removeAttribute(qmodelingelementproperty_cast(attribute)); emit attributesChanged(this->attributes()); } void QMofEnumerationObject::addFeature(QObject *feature) { qmodelingelementproperty_cast(this)->addFeature(qmodelingelementproperty_cast(feature)); emit featuresChanged(this->features()); } void QMofEnumerationObject::removeFeature(QObject *feature) { qmodelingelementproperty_cast(this)->removeFeature(qmodelingelementproperty_cast(feature)); emit featuresChanged(this->features()); } void QMofEnumerationObject::addGeneral(QObject *general) { qmodelingelementproperty_cast(this)->addGeneral(qmodelingelementproperty_cast(general)); emit generalsChanged(this->generals()); } void QMofEnumerationObject::removeGeneral(QObject *general) { qmodelingelementproperty_cast(this)->removeGeneral(qmodelingelementproperty_cast(general)); emit generalsChanged(this->generals()); } void QMofEnumerationObject::addGeneralization(QObject *generalization) { qmodelingelementproperty_cast(this)->addGeneralization(qmodelingelementproperty_cast(generalization)); emit generalizationsChanged(this->generalizations()); } void QMofEnumerationObject::removeGeneralization(QObject *generalization) { qmodelingelementproperty_cast(this)->removeGeneralization(qmodelingelementproperty_cast(generalization)); emit generalizationsChanged(this->generalizations()); } void QMofEnumerationObject::addInheritedMember(QObject *inheritedMember) { qmodelingelementproperty_cast(this)->addInheritedMember(qmodelingelementproperty_cast(inheritedMember)); emit inheritedMembersChanged(this->inheritedMembers()); } void QMofEnumerationObject::removeInheritedMember(QObject *inheritedMember) { qmodelingelementproperty_cast(this)->removeInheritedMember(qmodelingelementproperty_cast(inheritedMember)); emit inheritedMembersChanged(this->inheritedMembers()); } void QMofEnumerationObject::setAbstract(bool isAbstract) { qmodelingelementproperty_cast(this)->setAbstract(isAbstract); emit isAbstractChanged(this->isAbstract()); } void QMofEnumerationObject::unsetAbstract() { Q_D(QModelingObject); setAbstract(false); d->modifiedResettableProperties.removeAll(QStringLiteral("isAbstract")); } void QMofEnumerationObject::setFinalSpecialization(bool isFinalSpecialization) { qmodelingelementproperty_cast(this)->setFinalSpecialization(isFinalSpecialization); emit isFinalSpecializationChanged(this->isFinalSpecialization()); } void QMofEnumerationObject::unsetFinalSpecialization() { Q_D(QModelingObject); setFinalSpecialization(false); d->modifiedResettableProperties.removeAll(QStringLiteral("isFinalSpecialization")); } void QMofEnumerationObject::addRedefinedClassifier(QObject *redefinedClassifier) { qmodelingelementproperty_cast(this)->addRedefinedClassifier(qmodelingelementproperty_cast(redefinedClassifier)); emit redefinedClassifiersChanged(this->redefinedClassifiers()); } void QMofEnumerationObject::removeRedefinedClassifier(QObject *redefinedClassifier) { qmodelingelementproperty_cast(this)->removeRedefinedClassifier(qmodelingelementproperty_cast(redefinedClassifier)); emit redefinedClassifiersChanged(this->redefinedClassifiers()); } // SLOTS FOR OWNED ATTRIBUTES [DataType] void QMofEnumerationObject::addOwnedAttribute(QObject *ownedAttribute) { qmodelingelementproperty_cast(this)->addOwnedAttribute(qmodelingelementproperty_cast(ownedAttribute)); emit ownedAttributesChanged(this->ownedAttributes()); } void QMofEnumerationObject::removeOwnedAttribute(QObject *ownedAttribute) { qmodelingelementproperty_cast(this)->removeOwnedAttribute(qmodelingelementproperty_cast(ownedAttribute)); emit ownedAttributesChanged(this->ownedAttributes()); } void QMofEnumerationObject::addOwnedOperation(QObject *ownedOperation) { qmodelingelementproperty_cast(this)->addOwnedOperation(qmodelingelementproperty_cast(ownedOperation)); emit ownedOperationsChanged(this->ownedOperations()); } void QMofEnumerationObject::removeOwnedOperation(QObject *ownedOperation) { qmodelingelementproperty_cast(this)->removeOwnedOperation(qmodelingelementproperty_cast(ownedOperation)); emit ownedOperationsChanged(this->ownedOperations()); } // SLOTS FOR OWNED ATTRIBUTES [Enumeration] void QMofEnumerationObject::addOwnedLiteral(QObject *ownedLiteral) { qmodelingelementproperty_cast(this)->addOwnedLiteral(qmodelingelementproperty_cast(ownedLiteral)); emit ownedLiteralsChanged(this->ownedLiterals()); } void QMofEnumerationObject::removeOwnedLiteral(QObject *ownedLiteral) { qmodelingelementproperty_cast(this)->removeOwnedLiteral(qmodelingelementproperty_cast(ownedLiteral)); emit ownedLiteralsChanged(this->ownedLiterals()); } void QMofEnumerationObject::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("QMofElement"); d->groupProperties.insert(QStringLiteral("QMofElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedComments")))); d->groupProperties.insert(QStringLiteral("QMofElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedElements")))); d->groupProperties.insert(QStringLiteral("QMofElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("owner")))); d->propertyGroups << QStringLiteral("QMofNamedElement"); d->groupProperties.insert(QStringLiteral("QMofNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("name")))); d->groupProperties.insert(QStringLiteral("QMofNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("namespace_")))); d->groupProperties.insert(QStringLiteral("QMofNamedElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("qualifiedName")))); d->propertyGroups << QStringLiteral("QMofPackageableElement"); d->groupProperties.insert(QStringLiteral("QMofPackageableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("visibility")))); d->propertyGroups << QStringLiteral("QMofType"); d->groupProperties.insert(QStringLiteral("QMofType"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("package")))); d->propertyGroups << QStringLiteral("QMofRedefinableElement"); d->groupProperties.insert(QStringLiteral("QMofRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isLeaf")))); d->groupProperties.insert(QStringLiteral("QMofRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedElements")))); d->groupProperties.insert(QStringLiteral("QMofRedefinableElement"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinitionContexts")))); d->propertyGroups << QStringLiteral("QMofNamespace"); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("elementImports")))); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("importedMembers")))); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("members")))); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedMembers")))); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedRules")))); d->groupProperties.insert(QStringLiteral("QMofNamespace"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("packageImports")))); d->propertyGroups << QStringLiteral("QMofClassifier"); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("attributes")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("features")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("generals")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("generalizations")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("inheritedMembers")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isAbstract")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("isFinalSpecialization")))); d->groupProperties.insert(QStringLiteral("QMofClassifier"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("redefinedClassifiers")))); d->propertyGroups << QStringLiteral("QMofDataType"); d->groupProperties.insert(QStringLiteral("QMofDataType"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedAttributes")))); d->groupProperties.insert(QStringLiteral("QMofDataType"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedOperations")))); d->propertyGroups << QStringLiteral("QMofEnumeration"); d->groupProperties.insert(QStringLiteral("QMofEnumeration"), new QMetaProperty(metaObject->property(metaObject->indexOfProperty("ownedLiterals")))); } void QMofEnumerationObject::setPropertyData() { Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, PropertyClassRole, QStringLiteral("QMofElement")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, DocumentationRole, QStringLiteral("The Comments owned by this element.")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedComments, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, PropertyClassRole, QStringLiteral("QMofElement")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, DocumentationRole, QStringLiteral("The Elements owned by this element.")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, ownedElements, OppositeEndRole, QStringLiteral("Element-owner")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, PropertyClassRole, QStringLiteral("QMofElement")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, PropertyTypeRole, QStringLiteral("QMofElement *")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, DocumentationRole, QStringLiteral("The Element that owns this element.")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofElement, owner, OppositeEndRole, QStringLiteral("Element-ownedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, PropertyClassRole, QStringLiteral("QMofNamedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, PropertyTypeRole, QStringLiteral("QString")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, DocumentationRole, QStringLiteral("The name of the NamedElement.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, name, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, PropertyClassRole, QStringLiteral("QMofNamedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, PropertyTypeRole, QStringLiteral("QMofNamespace *")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, DocumentationRole, QStringLiteral("Specifies the namespace that owns the NamedElement.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, SubsettedPropertiesRole, QStringLiteral("Element-owner A_member_memberNamespace-memberNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, namespace_, OppositeEndRole, QStringLiteral("Namespace-ownedMember")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, PropertyClassRole, QStringLiteral("QMofNamedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, PropertyTypeRole, QStringLiteral("QString")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, DocumentationRole, QStringLiteral("A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, qualifiedName, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, PropertyClassRole, QStringLiteral("QMofNamedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, PropertyTypeRole, QStringLiteral("QtMof::VisibilityKind")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, DocumentationRole, QStringLiteral("Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamedElement, visibility, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, PropertyClassRole, QStringLiteral("QMofPackageableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, PropertyTypeRole, QStringLiteral("QtMof::VisibilityKind")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, DocumentationRole, QStringLiteral("Indicates that packageable elements must always have a visibility, i.e., visibility is not optional.")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, RedefinedPropertiesRole, QStringLiteral("NamedElement-visibility")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofPackageableElement, visibility, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, PropertyClassRole, QStringLiteral("QMofType")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, PropertyTypeRole, QStringLiteral("QMofPackage *")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, DocumentationRole, QStringLiteral("Specifies the owning package of this classifier, if any.")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, SubsettedPropertiesRole, QStringLiteral("A_packagedElement_owningPackage-owningPackage")); Q_DECLARE_METAPROPERTY_INFO(QMofType, package, OppositeEndRole, QStringLiteral("Package-ownedType")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, PropertyClassRole, QStringLiteral("QMofRedefinableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, PropertyTypeRole, QStringLiteral("bool")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, DocumentationRole, QStringLiteral("Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Note that this property is preserved through package merge operations; that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in the resulting RedefinableElement of a package merge operation where a RedefinableElement with isLeaf=false is merged with a matching RedefinableElement with isLeaf=true: the resulting RedefinableElement will have isLeaf=false. Default value is false.")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, isLeaf, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, PropertyClassRole, QStringLiteral("QMofRedefinableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, DocumentationRole, QStringLiteral("The redefinable element that is being redefined by this element.")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinedElements, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, PropertyClassRole, QStringLiteral("QMofRedefinableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, DocumentationRole, QStringLiteral("References the contexts that this element may be redefined from.")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofRedefinableElement, redefinitionContexts, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, DocumentationRole, QStringLiteral("References the ElementImports owned by the Namespace.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, SubsettedPropertiesRole, QStringLiteral("A_source_directedRelationship-directedRelationship Element-ownedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, elementImports, OppositeEndRole, QStringLiteral("ElementImport-importingNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, DocumentationRole, QStringLiteral("References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, SubsettedPropertiesRole, QStringLiteral("Namespace-member")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, importedMembers, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, DocumentationRole, QStringLiteral("A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, members, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, DocumentationRole, QStringLiteral("A collection of NamedElements owned by the Namespace.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, SubsettedPropertiesRole, QStringLiteral("Element-ownedElement Namespace-member")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedMembers, OppositeEndRole, QStringLiteral("NamedElement-namespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, DocumentationRole, QStringLiteral("Specifies a set of Constraints owned by this Namespace.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, SubsettedPropertiesRole, QStringLiteral("Namespace-ownedMember")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, ownedRules, OppositeEndRole, QStringLiteral("Constraint-context")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, PropertyClassRole, QStringLiteral("QMofNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, DocumentationRole, QStringLiteral("References the PackageImports owned by the Namespace.")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, SubsettedPropertiesRole, QStringLiteral("A_source_directedRelationship-directedRelationship Element-ownedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofNamespace, packageImports, OppositeEndRole, QStringLiteral("PackageImport-importingNamespace")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, DocumentationRole, QStringLiteral("Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, SubsettedPropertiesRole, QStringLiteral("Classifier-feature A_redefinitionContext_redefinableElement-redefinableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, attributes, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, IsDerivedUnionRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, DocumentationRole, QStringLiteral("Specifies each feature defined in the classifier.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, SubsettedPropertiesRole, QStringLiteral("Namespace-member")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, features, OppositeEndRole, QStringLiteral("Feature-featuringClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, DocumentationRole, QStringLiteral("Specifies the general Classifiers for this Classifier.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generals, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, DocumentationRole, QStringLiteral("Specifies the Generalization relationships for this Classifier. These Generalizations navigaten to more general classifiers in the generalization hierarchy.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, SubsettedPropertiesRole, QStringLiteral("A_source_directedRelationship-directedRelationship Element-ownedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, generalizations, OppositeEndRole, QStringLiteral("Generalization-specific")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, IsDerivedRole, true); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, DocumentationRole, QStringLiteral("Specifies all elements inherited by this classifier from the general classifiers.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, SubsettedPropertiesRole, QStringLiteral("Namespace-member")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, inheritedMembers, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, PropertyTypeRole, QStringLiteral("bool")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, DocumentationRole, QStringLiteral("If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isAbstract, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, PropertyTypeRole, QStringLiteral("bool")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, DocumentationRole, QStringLiteral("If true, the Classifier cannot be specialized by generalization. Note that this property is preserved through package merge operations; that is, the capability to specialize a Classifier (i.e., isFinalSpecialization =false) must be preserved in the resulting Classifier of a package merge operation where a Classifier with isFinalSpecialization =false is merged with a matching Classifier with isFinalSpecialization =true: the resulting Classifier will have isFinalSpecialization =false.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, SubsettedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, isFinalSpecialization, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, AggregationRole, QStringLiteral("none")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, PropertyClassRole, QStringLiteral("QMofClassifier")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, PropertyTypeRole, QStringLiteral("QSet")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, DocumentationRole, QStringLiteral("References the Classifiers that are redefined by this Classifier.")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, SubsettedPropertiesRole, QStringLiteral("RedefinableElement-redefinedElement")); Q_DECLARE_METAPROPERTY_INFO(QMofClassifier, redefinedClassifiers, OppositeEndRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, PropertyClassRole, QStringLiteral("QMofDataType")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, PropertyTypeRole, QStringLiteral("QList")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, DocumentationRole, QStringLiteral("The Attributes owned by the DataType.")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, SubsettedPropertiesRole, QStringLiteral("Classifier-attribute Namespace-ownedMember")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedAttributes, OppositeEndRole, QStringLiteral("Property-datatype")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, PropertyClassRole, QStringLiteral("QMofDataType")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, PropertyTypeRole, QStringLiteral("QList")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, DocumentationRole, QStringLiteral("The Operations owned by the DataType.")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, SubsettedPropertiesRole, QStringLiteral("Classifier-feature Namespace-ownedMember A_redefinitionContext_redefinableElement-redefinableElement")); Q_DECLARE_METAPROPERTY_INFO(QMofDataType, ownedOperations, OppositeEndRole, QStringLiteral("Operation-datatype")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, AggregationRole, QStringLiteral("composite")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, PropertyClassRole, QStringLiteral("QMofEnumeration")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, PropertyTypeRole, QStringLiteral("QList")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, IsDerivedRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, IsDerivedUnionRole, false); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, DocumentationRole, QStringLiteral("The ordered set of literals for this Enumeration.")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, RedefinedPropertiesRole, QStringLiteral("")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, SubsettedPropertiesRole, QStringLiteral("Namespace-ownedMember")); Q_DECLARE_METAPROPERTY_INFO(QMofEnumeration, ownedLiterals, OppositeEndRole, QStringLiteral("EnumerationLiteral-enumeration")); } QT_END_NAMESPACE