diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-09-27 09:13:30 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-09-27 14:17:26 +0200 |
commit | 4d19c1223d4320b0db0261eb6d9904c5be480177 (patch) | |
tree | 8f31c788f492f8f38bd0cc1da09d305178463f4f /src/uml/qumlconditionalnode.cpp | |
parent | 61f9748061ef752b5617ec244a8f451700dc18f4 (diff) |
Add UML properties metadata
Change-Id: I7b2a4b78641c11883d3c3283a8fb53f262b891af
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlconditionalnode.cpp')
-rw-r--r-- | src/uml/qumlconditionalnode.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/uml/qumlconditionalnode.cpp b/src/uml/qumlconditionalnode.cpp index 670a8513..d1b7b681 100644 --- a/src/uml/qumlconditionalnode.cpp +++ b/src/uml/qumlconditionalnode.cpp @@ -81,6 +81,7 @@ QUmlConditionalNode::QUmlConditionalNode(bool createQObject) : { if (createQObject) _qObject = new QUmlConditionalNodeObject(this); + setPropertyData(); } QUmlConditionalNode::~QUmlConditionalNode() @@ -260,3 +261,31 @@ void QUmlConditionalNode::removeResult(QUmlOutputPin *result) } } +void QUmlConditionalNode::setPropertyData() +{ + QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::DocumentationRole] = QStringLiteral("Set of clauses composing the conditional."); + QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Element-ownedElement"); + QModelingObject::propertyDataHash[QStringLiteral("clause")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::DocumentationRole] = QStringLiteral("If true, the modeler asserts that at least one test will succeed."); + QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::SubsettedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("isAssured")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::DocumentationRole] = QStringLiteral("If true, the modeler asserts that at most one test will succeed."); + QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::SubsettedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("isDeterminate")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::DocumentationRole] = QStringLiteral("A list of output pins that constitute the data flow outputs of the conditional."); + QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("StructuredActivityNode-structuredNodeOutput"); + QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::SubsettedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("result")][QtModeling::OppositeEndRole] = QStringLiteral(""); + +} + |