diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 12:13:48 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 16:09:14 +0100 |
commit | 127ae727775358ea6d6a1e292f9bf5714adcd046 (patch) | |
tree | e77622182ac0a094696f4f608580eaaec7782064 /src/uml/qumlgeneralizationset.cpp | |
parent | 1b2df2c79004e93a5bab937d9cac32f7621a6c0e (diff) |
Update UML metamodel implementation and documentation
Change-Id: I45eccac45a154f94471aa4a55a9562fbc15b2567
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlgeneralizationset.cpp')
-rw-r--r-- | src/uml/qumlgeneralizationset.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/uml/qumlgeneralizationset.cpp b/src/uml/qumlgeneralizationset.cpp index 4888fa14..73d20e71 100644 --- a/src/uml/qumlgeneralizationset.cpp +++ b/src/uml/qumlgeneralizationset.cpp @@ -63,6 +63,10 @@ QT_BEGIN_NAMESPACE \brief A generalization set is a packageable element whose instances define collections of subsets of generalization relationships. */ + +/*! + Creates a new QUmlGeneralizationSet. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true. +*/ QUmlGeneralizationSet::QUmlGeneralizationSet(bool createQModelingObject) : _isCovering(false), _isDisjoint(false), @@ -72,6 +76,9 @@ QUmlGeneralizationSet::QUmlGeneralizationSet(bool createQModelingObject) : _qModelingObject = qobject_cast<QModelingObject *>(new QUmlGeneralizationSetObject(this)); } +/*! + Returns a deep-copied clone of the QUmlGeneralizationSet. +*/ QModelingElement *QUmlGeneralizationSet::clone() const { QUmlGeneralizationSet *c = new QUmlGeneralizationSet; @@ -100,6 +107,10 @@ QModelingElement *QUmlGeneralizationSet::clone() const /*! Designates the instances of Generalization which are members of a given GeneralizationSet. + + \sa addGeneralization(), removeGeneralization() + + \b {Opposite property(ies):} QUmlGeneralization::generalizationSets(). */ const QSet<QUmlGeneralization *> QUmlGeneralizationSet::generalizations() const { @@ -108,6 +119,11 @@ const QSet<QUmlGeneralization *> QUmlGeneralizationSet::generalizations() const return _generalizations; } +/*! + Adds \a generalization to generalizations. + + \sa generalizations(), removeGeneralization() + */ void QUmlGeneralizationSet::addGeneralization(QUmlGeneralization *generalization) { // This is a read-write association end @@ -124,6 +140,11 @@ void QUmlGeneralizationSet::addGeneralization(QUmlGeneralization *generalization } } +/*! + Removes \a generalization from generalizations. + + \sa generalizations(), addGeneralization() + */ void QUmlGeneralizationSet::removeGeneralization(QUmlGeneralization *generalization) { // This is a read-write association end @@ -148,6 +169,9 @@ bool QUmlGeneralizationSet::isCovering() const return _isCovering; } +/*! + Adjusts isCovering to \a isCovering. + */ void QUmlGeneralizationSet::setCovering(bool isCovering) { // This is a read-write property @@ -168,6 +192,9 @@ bool QUmlGeneralizationSet::isDisjoint() const return _isDisjoint; } +/*! + Adjusts isDisjoint to \a isDisjoint. + */ void QUmlGeneralizationSet::setDisjoint(bool isDisjoint) { // This is a read-write property @@ -180,6 +207,8 @@ void QUmlGeneralizationSet::setDisjoint(bool isDisjoint) /*! Designates the Classifier that is defined as the power type for the associated GeneralizationSet. + + \b {Opposite property(ies):} QUmlClassifier::powertypeExtents(). */ QUmlClassifier *QUmlGeneralizationSet::powertype() const { @@ -188,6 +217,9 @@ QUmlClassifier *QUmlGeneralizationSet::powertype() const return _powertype; } +/*! + Adjusts powertype to \a powertype. + */ void QUmlGeneralizationSet::setPowertype(QUmlClassifier *powertype) { // This is a read-write association end |