summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlgeneralordering.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/qumlgeneralordering.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/qumlgeneralordering.cpp')
-rw-r--r--src/uml/qumlgeneralordering.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/uml/qumlgeneralordering.cpp b/src/uml/qumlgeneralordering.cpp
index 9204ce5a..68b517d9 100644
--- a/src/uml/qumlgeneralordering.cpp
+++ b/src/uml/qumlgeneralordering.cpp
@@ -66,19 +66,27 @@ QUmlGeneralOrdering::QUmlGeneralOrdering(bool create_d_ptr) :
set_d_ptr(new QUmlGeneralOrderingPrivate);
}
-// Owned attributes
+// OWNED ATTRIBUTES
/*!
The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before.
*/
QUmlOccurrenceSpecification *QUmlGeneralOrdering::after() const
{
- return 0;
+ // This is a read-write association end
+
+ QM_D(const QUmlGeneralOrdering);
+ return d->after;
}
void QUmlGeneralOrdering::setAfter(QUmlOccurrenceSpecification *after)
{
- Q_UNUSED(after);
+ // This is a read-write association end
+
+ QM_D(QUmlGeneralOrdering);
+ if (d->after != after) {
+ d->after = after;
+ }
}
/*!
@@ -86,12 +94,20 @@ void QUmlGeneralOrdering::setAfter(QUmlOccurrenceSpecification *after)
*/
QUmlOccurrenceSpecification *QUmlGeneralOrdering::before() const
{
- return 0;
+ // This is a read-write association end
+
+ QM_D(const QUmlGeneralOrdering);
+ return d->before;
}
void QUmlGeneralOrdering::setBefore(QUmlOccurrenceSpecification *before)
{
- Q_UNUSED(before);
+ // This is a read-write association end
+
+ QM_D(QUmlGeneralOrdering);
+ if (d->before != before) {
+ d->before = before;
+ }
}
QT_END_NAMESPACE