summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlconnectableelement.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/qumlconnectableelement.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/qumlconnectableelement.cpp')
-rw-r--r--src/uml/qumlconnectableelement.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/uml/qumlconnectableelement.cpp b/src/uml/qumlconnectableelement.cpp
index 65c60b7f..dbae0a49 100644
--- a/src/uml/qumlconnectableelement.cpp
+++ b/src/uml/qumlconnectableelement.cpp
@@ -60,12 +60,21 @@ QT_BEGIN_NAMESPACE
\inmodule QtUml
\brief ConnectableElement is an abstract metaclass representing a set of instances that play roles of a classifier. Connectable elements may be joined by attached connectors and specify configurations of linked instances to be created within an instance of the containing classifier.A connectable element may be exposed as a connectable element template parameter.
+
+ \b {QUmlConnectableElement is an abstract class.}
*/
+
+/*!
+ Creates a new QUmlConnectableElement.
+*/
QUmlConnectableElement::QUmlConnectableElement() :
_templateParameter(0)
{
}
+/*!
+ Returns a deep-copied clone of the QUmlConnectableElement.
+*/
QModelingElement *QUmlConnectableElement::clone() const
{
QUmlConnectableElement *c = new QUmlConnectableElement;
@@ -90,6 +99,10 @@ QModelingElement *QUmlConnectableElement::clone() const
/*!
Denotes a set of connector ends that attaches to this connectable element.
+
+ \b {This is a read-only derived property.}
+
+ \b {Opposite property(ies):} QUmlConnectorEnd::role().
*/
const QList<QUmlConnectorEnd *> QUmlConnectableElement::ends() const
{
@@ -100,6 +113,11 @@ const QList<QUmlConnectorEnd *> QUmlConnectableElement::ends() const
return QList<QUmlConnectorEnd *>();
}
+/*!
+ Adds \a end to ends.
+
+ \sa ends(), removeEnd()
+ */
void QUmlConnectableElement::addEnd(QUmlConnectorEnd *end)
{
// This is a read-only derived association end
@@ -117,6 +135,11 @@ void QUmlConnectableElement::addEnd(QUmlConnectorEnd *end)
}
}
+/*!
+ Removes \a end from ends.
+
+ \sa ends(), addEnd()
+ */
void QUmlConnectableElement::removeEnd(QUmlConnectorEnd *end)
{
// This is a read-only derived association end
@@ -136,6 +159,10 @@ void QUmlConnectableElement::removeEnd(QUmlConnectorEnd *end)
/*!
The ConnectableElementTemplateParameter for this ConnectableElement parameter.
+
+ \b {Redefined property(ies):} QUmlParameterableElement::templateParameter().
+
+ \b {Opposite property(ies):} QUmlConnectableElementTemplateParameter::parameteredElement().
*/
QUmlConnectableElementTemplateParameter *QUmlConnectableElement::templateParameter() const
{
@@ -144,6 +171,9 @@ QUmlConnectableElementTemplateParameter *QUmlConnectableElement::templateParamet
return _templateParameter;
}
+/*!
+ Adjusts templateParameter to \a templateParameter.
+ */
void QUmlConnectableElement::setTemplateParameter(QUmlConnectableElementTemplateParameter *templateParameter)
{
// This is a read-write association end