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/qumlstructuredactivitynode.cpp | |
parent | 61f9748061ef752b5617ec244a8f451700dc18f4 (diff) |
Add UML properties metadata
Change-Id: I7b2a4b78641c11883d3c3283a8fb53f262b891af
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlstructuredactivitynode.cpp')
-rw-r--r-- | src/uml/qumlstructuredactivitynode.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/uml/qumlstructuredactivitynode.cpp b/src/uml/qumlstructuredactivitynode.cpp index e056ffea..17d86986 100644 --- a/src/uml/qumlstructuredactivitynode.cpp +++ b/src/uml/qumlstructuredactivitynode.cpp @@ -78,6 +78,7 @@ QUmlStructuredActivityNode::QUmlStructuredActivityNode(bool createQObject) : { if (createQObject) _qObject = new QUmlStructuredActivityNodeObject(this); + setPropertyData(); } QUmlStructuredActivityNode::~QUmlStructuredActivityNode() @@ -406,3 +407,49 @@ void QUmlStructuredActivityNode::removeVariable(QUmlVariable *variable) } } +void QUmlStructuredActivityNode::setPropertyData() +{ + QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::DocumentationRole] = QStringLiteral("Activity immediately containing the node."); + QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("ActivityGroup-inActivity ActivityNode-activity"); + QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::SubsettedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("activity")][QtModeling::OppositeEndRole] = QStringLiteral("Activity-structuredNode"); + + QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::DocumentationRole] = QStringLiteral("Edges immediately contained in the structured node."); + QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("ActivityGroup-containedEdge Element-ownedElement"); + QModelingObject::propertyDataHash[QStringLiteral("edge")][QtModeling::OppositeEndRole] = QStringLiteral("ActivityEdge-inStructuredNode"); + + QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::DocumentationRole] = QStringLiteral("If true, then the actions in the node execute in isolation from actions outside the node."); + QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::SubsettedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("mustIsolate")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::DocumentationRole] = QStringLiteral("Nodes immediately contained in the group."); + QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("ActivityGroup-containedNode Element-ownedElement"); + QModelingObject::propertyDataHash[QStringLiteral("node")][QtModeling::OppositeEndRole] = QStringLiteral("ActivityNode-inStructuredNode"); + + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::DocumentationRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Action-input"); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeInput")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::DocumentationRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Action-output"); + QModelingObject::propertyDataHash[QStringLiteral("structuredNodeOutput")][QtModeling::OppositeEndRole] = QStringLiteral(""); + + QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::IsDerivedUnionRole] = false; + QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::DocumentationRole] = QStringLiteral("A variable defined in the scope of the structured activity node. It has no value and may not be accessed"); + QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::RedefinedPropertiesRole] = QStringLiteral(""); + QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Namespace-ownedMember"); + QModelingObject::propertyDataHash[QStringLiteral("variable")][QtModeling::OppositeEndRole] = QStringLiteral("Variable-scope"); + +} + |