summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlstringexpression.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-09-27 09:13:30 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-09-27 14:17:26 +0200
commit4d19c1223d4320b0db0261eb6d9904c5be480177 (patch)
tree8f31c788f492f8f38bd0cc1da09d305178463f4f /src/uml/qumlstringexpression.cpp
parent61f9748061ef752b5617ec244a8f451700dc18f4 (diff)
Add UML properties metadata
Change-Id: I7b2a4b78641c11883d3c3283a8fb53f262b891af Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlstringexpression.cpp')
-rw-r--r--src/uml/qumlstringexpression.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uml/qumlstringexpression.cpp b/src/uml/qumlstringexpression.cpp
index 7141e3d9..dd97a471 100644
--- a/src/uml/qumlstringexpression.cpp
+++ b/src/uml/qumlstringexpression.cpp
@@ -67,6 +67,7 @@ QUmlStringExpression::QUmlStringExpression(bool createQObject) :
{
if (createQObject)
_qObject = new QUmlStringExpressionObject(this);
+ setPropertyData();
}
QUmlStringExpression::~QUmlStringExpression()
@@ -187,3 +188,19 @@ QString QUmlStringExpression::stringValue() const
return QString ();
}
+void QUmlStringExpression::setPropertyData()
+{
+ QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::AggregationRole] = QStringLiteral("none"); QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::IsDerivedUnionRole] = false;
+ QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::DocumentationRole] = QStringLiteral("The string expression of which this expression is a substring.");
+ QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("");
+ QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Element-owner");
+ QModelingObject::propertyDataHash[QStringLiteral("owningExpression")][QtModeling::OppositeEndRole] = QStringLiteral("");
+
+ QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::AggregationRole] = QStringLiteral("composite"); QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::IsDerivedUnionRole] = false;
+ QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::DocumentationRole] = QStringLiteral("The StringExpressions that constitute this StringExpression.");
+ QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::RedefinedPropertiesRole] = QStringLiteral("");
+ QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::SubsettedPropertiesRole] = QStringLiteral("Element-ownedElement");
+ QModelingObject::propertyDataHash[QStringLiteral("subExpression")][QtModeling::OppositeEndRole] = QStringLiteral("");
+
+}
+