summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlgeneralordering.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-11-24 12:13:48 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-11-24 16:09:14 +0100
commit127ae727775358ea6d6a1e292f9bf5714adcd046 (patch)
treee77622182ac0a094696f4f608580eaaec7782064 /src/uml/qumlgeneralordering.cpp
parent1b2df2c79004e93a5bab937d9cac32f7621a6c0e (diff)
Update UML metamodel implementation and documentation
Change-Id: I45eccac45a154f94471aa4a55a9562fbc15b2567 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlgeneralordering.cpp')
-rw-r--r--src/uml/qumlgeneralordering.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/uml/qumlgeneralordering.cpp b/src/uml/qumlgeneralordering.cpp
index 60bf9c4e..b35066e3 100644
--- a/src/uml/qumlgeneralordering.cpp
+++ b/src/uml/qumlgeneralordering.cpp
@@ -59,6 +59,10 @@ QT_BEGIN_NAMESPACE
\brief A general ordering represents a binary relation between two occurrence specifications, to describe that one occurrence specification must occur before the other in a valid trace. This mechanism provides the ability to define partial orders of occurrence cpecifications that may otherwise not have a specified order.
*/
+
+/*!
+ Creates a new QUmlGeneralOrdering. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true.
+*/
QUmlGeneralOrdering::QUmlGeneralOrdering(bool createQModelingObject) :
_after(0),
_before(0)
@@ -67,6 +71,9 @@ QUmlGeneralOrdering::QUmlGeneralOrdering(bool createQModelingObject) :
_qModelingObject = qobject_cast<QModelingObject *>(new QUmlGeneralOrderingObject(this));
}
+/*!
+ Returns a deep-copied clone of the QUmlGeneralOrdering.
+*/
QModelingElement *QUmlGeneralOrdering::clone() const
{
QUmlGeneralOrdering *c = new QUmlGeneralOrdering;
@@ -89,6 +96,8 @@ QModelingElement *QUmlGeneralOrdering::clone() const
/*!
The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before.
+
+ \b {Opposite property(ies):} QUmlOccurrenceSpecification::toBefores().
*/
QUmlOccurrenceSpecification *QUmlGeneralOrdering::after() const
{
@@ -97,6 +106,9 @@ QUmlOccurrenceSpecification *QUmlGeneralOrdering::after() const
return _after;
}
+/*!
+ Adjusts after to \a after.
+ */
void QUmlGeneralOrdering::setAfter(QUmlOccurrenceSpecification *after)
{
// This is a read-write association end
@@ -110,6 +122,8 @@ void QUmlGeneralOrdering::setAfter(QUmlOccurrenceSpecification *after)
/*!
The OccurrenceSpecification referenced comes before the OccurrenceSpecification referenced by after.
+
+ \b {Opposite property(ies):} QUmlOccurrenceSpecification::toAfters().
*/
QUmlOccurrenceSpecification *QUmlGeneralOrdering::before() const
{
@@ -118,6 +132,9 @@ QUmlOccurrenceSpecification *QUmlGeneralOrdering::before() const
return _before;
}
+/*!
+ Adjusts before to \a before.
+ */
void QUmlGeneralOrdering::setBefore(QUmlOccurrenceSpecification *before)
{
// This is a read-write association end