summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlconnectableelement.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-08-25 16:07:06 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-08-25 21:06:07 +0200
commit1c770ad764a39ce0ad40913c1c4bd72bd43710a9 (patch)
treee6f7789ee1b007e081c7f45e385135b6e8e37bd2 /src/uml/qumlconnectableelement.cpp
parentea1a2ed03ac0880ef969e01598016de0581fbd41 (diff)
Add handling of derived properties in artifact generation from xmi
Change-Id: I3764f41fd6a727f1a09daed9fc82c9fedf8ba5af Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlconnectableelement.cpp')
-rw-r--r--src/uml/qumlconnectableelement.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/uml/qumlconnectableelement.cpp b/src/uml/qumlconnectableelement.cpp
index aa4e149c..259f7a25 100644
--- a/src/uml/qumlconnectableelement.cpp
+++ b/src/uml/qumlconnectableelement.cpp
@@ -67,13 +67,17 @@ QUmlConnectableElement::QUmlConnectableElement(bool create_d_ptr) :
set_d_ptr(new QUmlConnectableElementPrivate);
}
-// Owned attributes
+// OWNED ATTRIBUTES
/*!
Denotes a set of connector ends that attaches to this connectable element.
*/
QList<QUmlConnectorEnd *> QUmlConnectableElement::end() const
{
+ // This is a read-only derived association end
+
+ qWarning("QUmlConnectableElement::end(): to be implemented (this is a derived association end)");
+
return QList<QUmlConnectorEnd *>();
}
@@ -82,12 +86,20 @@ QList<QUmlConnectorEnd *> QUmlConnectableElement::end() const
*/
QUmlConnectableElementTemplateParameter *QUmlConnectableElement::templateParameter() const
{
- return 0;
+ // This is a read-write association end
+
+ QM_D(const QUmlConnectableElement);
+ return d->templateParameter;
}
void QUmlConnectableElement::setTemplateParameter(QUmlConnectableElementTemplateParameter *templateParameter)
{
- Q_UNUSED(templateParameter);
+ // This is a read-write association end
+
+ QM_D(QUmlConnectableElement);
+ if (d->templateParameter != templateParameter) {
+ d->templateParameter = templateParameter;
+ }
}
QT_END_NAMESPACE