summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlintervalconstraint.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/qumlintervalconstraint.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/qumlintervalconstraint.cpp')
-rw-r--r--src/uml/qumlintervalconstraint.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/uml/qumlintervalconstraint.cpp b/src/uml/qumlintervalconstraint.cpp
index 0607de99..fb188ab8 100644
--- a/src/uml/qumlintervalconstraint.cpp
+++ b/src/uml/qumlintervalconstraint.cpp
@@ -63,6 +63,10 @@ QT_BEGIN_NAMESPACE
\brief An interval constraint is a constraint that refers to an interval.
*/
+
+/*!
+ Creates a new QUmlIntervalConstraint. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true.
+*/
QUmlIntervalConstraint::QUmlIntervalConstraint(bool createQModelingObject) :
QUmlConstraint(false),
_specification(0)
@@ -71,6 +75,9 @@ QUmlIntervalConstraint::QUmlIntervalConstraint(bool createQModelingObject) :
_qModelingObject = qobject_cast<QModelingObject *>(new QUmlIntervalConstraintObject(this));
}
+/*!
+ Returns a deep-copied clone of the QUmlIntervalConstraint.
+*/
QModelingElement *QUmlIntervalConstraint::clone() const
{
QUmlIntervalConstraint *c = new QUmlIntervalConstraint;
@@ -99,6 +106,8 @@ QModelingElement *QUmlIntervalConstraint::clone() const
/*!
A condition that must be true when evaluated in order for the constraint to be satisfied.
+
+ \b {Redefined property(ies):} QUmlConstraint::specification().
*/
QUmlInterval *QUmlIntervalConstraint::specification() const
{
@@ -107,6 +116,9 @@ QUmlInterval *QUmlIntervalConstraint::specification() const
return _specification;
}
+/*!
+ Adjusts specification to \a specification.
+ */
void QUmlIntervalConstraint::setSpecification(QUmlInterval *specification)
{
// This is a read-write association end