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/qumlcollaboration.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/qumlcollaboration.cpp')
-rw-r--r-- | src/uml/qumlcollaboration.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/uml/qumlcollaboration.cpp b/src/uml/qumlcollaboration.cpp index cf09d983..0ef20787 100644 --- a/src/uml/qumlcollaboration.cpp +++ b/src/uml/qumlcollaboration.cpp @@ -83,12 +83,19 @@ QT_BEGIN_NAMESPACE \brief A collaboration use represents the application of the pattern described by a collaboration to a specific situation involving specific classes or instances playing the roles of the collaboration. */ + +/*! + Creates a new QUmlCollaboration. Also creates the corresponding QObject-based representation returned by asQModelingObject() if \a createQModelingObject is true. +*/ QUmlCollaboration::QUmlCollaboration(bool createQModelingObject) { if (createQModelingObject) _qModelingObject = qobject_cast<QModelingObject *>(new QUmlCollaborationObject(this)); } +/*! + Returns a deep-copied clone of the QUmlCollaboration. +*/ QModelingElement *QUmlCollaboration::clone() const { QUmlCollaboration *c = new QUmlCollaboration; @@ -154,6 +161,10 @@ QModelingElement *QUmlCollaboration::clone() const /*! References connectable elements (possibly owned by other classifiers) which represent roles that instances may play in this collaboration. + + \sa addCollaborationRole(), removeCollaborationRole() + + \b {Subsetted property(ies):} QUmlStructuredClassifier::roles(). */ const QSet<QUmlConnectableElement *> QUmlCollaboration::collaborationRoles() const { @@ -162,6 +173,11 @@ const QSet<QUmlConnectableElement *> QUmlCollaboration::collaborationRoles() con return _collaborationRoles; } +/*! + Adds \a collaborationRole to collaborationRoles. + + \sa collaborationRoles(), removeCollaborationRole() + */ void QUmlCollaboration::addCollaborationRole(QUmlConnectableElement *collaborationRole) { // This is a read-write association end @@ -176,6 +192,11 @@ void QUmlCollaboration::addCollaborationRole(QUmlConnectableElement *collaborati } } +/*! + Removes \a collaborationRole from collaborationRoles. + + \sa collaborationRoles(), addCollaborationRole() + */ void QUmlCollaboration::removeCollaborationRole(QUmlConnectableElement *collaborationRole) { // This is a read-write association end |