summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlclassifiertemplateparameter.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/qumlclassifiertemplateparameter.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/qumlclassifiertemplateparameter.cpp')
-rw-r--r--src/uml/qumlclassifiertemplateparameter.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/uml/qumlclassifiertemplateparameter.cpp b/src/uml/qumlclassifiertemplateparameter.cpp
index 52a991e1..16447a0f 100644
--- a/src/uml/qumlclassifiertemplateparameter.cpp
+++ b/src/uml/qumlclassifiertemplateparameter.cpp
@@ -57,6 +57,10 @@ QT_BEGIN_NAMESPACE
\brief A classifier template parameter exposes a classifier as a formal template parameter.
*/
+
+/*!
+ Creates a new QUmlClassifierTemplateParameter. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true.
+*/
QUmlClassifierTemplateParameter::QUmlClassifierTemplateParameter(bool createQModelingObject) :
QUmlTemplateParameter(false),
_allowSubstitutable(true),
@@ -66,6 +70,9 @@ QUmlClassifierTemplateParameter::QUmlClassifierTemplateParameter(bool createQMod
_qModelingObject = qobject_cast<QModelingObject *>(new QUmlClassifierTemplateParameterObject(this));
}
+/*!
+ Returns a deep-copied clone of the QUmlClassifierTemplateParameter.
+*/
QModelingElement *QUmlClassifierTemplateParameter::clone() const
{
QUmlClassifierTemplateParameter *c = new QUmlClassifierTemplateParameter;
@@ -99,6 +106,9 @@ bool QUmlClassifierTemplateParameter::allowSubstitutable() const
return _allowSubstitutable;
}
+/*!
+ Adjusts allowSubstitutable to \a allowSubstitutable.
+ */
void QUmlClassifierTemplateParameter::setAllowSubstitutable(bool allowSubstitutable)
{
// This is a read-write property
@@ -111,6 +121,8 @@ void QUmlClassifierTemplateParameter::setAllowSubstitutable(bool allowSubstituta
/*!
The classifiers that constrain the argument that can be used for the parameter. If the allowSubstitutable attribute is true, then any classifier that is compatible with this constraining classifier can be substituted; otherwise, it must be either this classifier or one of its subclasses. If this property is empty, there are no constraints on the classifier that can be used as an argument.
+
+ \sa addConstrainingClassifier(), removeConstrainingClassifier()
*/
const QSet<QUmlClassifier *> QUmlClassifierTemplateParameter::constrainingClassifiers() const
{
@@ -119,6 +131,11 @@ const QSet<QUmlClassifier *> QUmlClassifierTemplateParameter::constrainingClassi
return _constrainingClassifiers;
}
+/*!
+ Adds \a constrainingClassifier to constrainingClassifiers.
+
+ \sa constrainingClassifiers(), removeConstrainingClassifier()
+ */
void QUmlClassifierTemplateParameter::addConstrainingClassifier(QUmlClassifier *constrainingClassifier)
{
// This is a read-write association end
@@ -130,6 +147,11 @@ void QUmlClassifierTemplateParameter::addConstrainingClassifier(QUmlClassifier *
}
}
+/*!
+ Removes \a constrainingClassifier from constrainingClassifiers.
+
+ \sa constrainingClassifiers(), addConstrainingClassifier()
+ */
void QUmlClassifierTemplateParameter::removeConstrainingClassifier(QUmlClassifier *constrainingClassifier)
{
// This is a read-write association end
@@ -141,6 +163,10 @@ void QUmlClassifierTemplateParameter::removeConstrainingClassifier(QUmlClassifie
/*!
The parameterable classifier for this template parameter.
+
+ \b {Redefined property(ies):} QUmlTemplateParameter::parameteredElement().
+
+ \b {Opposite property(ies):} QUmlClassifier::templateParameter().
*/
QUmlClassifier *QUmlClassifierTemplateParameter::parameteredElement() const
{
@@ -149,6 +175,9 @@ QUmlClassifier *QUmlClassifierTemplateParameter::parameteredElement() const
return _parameteredElement;
}
+/*!
+ Adjusts parameteredElement to \a parameteredElement.
+ */
void QUmlClassifierTemplateParameter::setParameteredElement(QUmlClassifier *parameteredElement)
{
// This is a read-write association end