summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlinstancespecification.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlinstancespecification.h')
-rw-r--r--src/uml/qumlinstancespecification.h141
1 files changed, 21 insertions, 120 deletions
diff --git a/src/uml/qumlinstancespecification.h b/src/uml/qumlinstancespecification.h
index 375ba04a..5f172ade 100644
--- a/src/uml/qumlinstancespecification.h
+++ b/src/uml/qumlinstancespecification.h
@@ -43,10 +43,10 @@
#include <QtUml/QtUmlGlobal>
-#include <QtCore/QObject>
-#include "private/umlinstancespecification_p.h"
+#include <QtUml/QUmlDeployedArtifact>
+#include <QtUml/QUmlPackageableElement>
+#include <QtUml/QUmlDeploymentTarget>
-#include <QtUml/QtUmlNamespace>
QT_BEGIN_HEADER
@@ -55,133 +55,34 @@ QT_BEGIN_NAMESPACE
QT_MODULE(QtUml)
class QUmlClassifier;
-class QUmlComment;
-class QUmlDependency;
-class QUmlDeployment;
-class QUmlElement;
-class QUmlNamedElement;
-class QUmlNamespace;
-class QUmlPackage;
-class QUmlPackageableElement;
-class QUmlParameterableElement;
class QUmlSlot;
-class QUmlStringExpression;
-class QUmlTemplateParameter;
class QUmlValueSpecification;
-class Q_UML_EXPORT QUmlInstanceSpecification : public QObject, public UmlInstanceSpecification
+class Q_UML_EXPORT QUmlInstanceSpecification : public QUmlDeployedArtifact, public QUmlPackageableElement, public QUmlDeploymentTarget
{
- Q_OBJECT
-
- // Properties [Element]
- Q_PROPERTY(QSet<QUmlComment *> ownedComment READ ownedComment)
- Q_PROPERTY(QSet<QUmlElement *> ownedElement READ ownedElement)
- Q_PROPERTY(QUmlElement * owner READ owner)
-
- // Properties [NamedElement]
- Q_PROPERTY(QSet<QUmlDependency *> clientDependency READ clientDependency)
- Q_PROPERTY(QString name READ name)
- Q_PROPERTY(QUmlStringExpression * nameExpression READ nameExpression)
- Q_PROPERTY(QUmlNamespace * namespace_ READ namespace_)
- Q_PROPERTY(QString qualifiedName READ qualifiedName)
-
- // Properties [ParameterableElement]
- Q_PROPERTY(QUmlTemplateParameter * owningTemplateParameter READ owningTemplateParameter)
- Q_PROPERTY(QUmlTemplateParameter * templateParameter READ templateParameter)
-
- // Properties [PackageableElement]
- Q_PROPERTY(QtUml::VisibilityKind visibility READ visibility)
-
- // Properties [DeploymentTarget]
- Q_PROPERTY(QSet<QUmlPackageableElement *> deployedElement READ deployedElement)
- Q_PROPERTY(QSet<QUmlDeployment *> deployment READ deployment)
-
- // Properties [InstanceSpecification]
- Q_PROPERTY(QSet<QUmlClassifier *> classifier READ classifier)
- Q_PROPERTY(QSet<QUmlSlot *> slot_ READ slot_)
- Q_PROPERTY(QUmlValueSpecification * specification READ specification)
-
public:
- Q_INVOKABLE explicit QUmlInstanceSpecification(QObject *parent = 0);
-
- // Owned attributes [Element]
- Q_INVOKABLE const QSet<QUmlComment *> ownedComment() const;
- Q_INVOKABLE const QSet<QUmlElement *> ownedElement() const;
- Q_INVOKABLE QUmlElement *owner() const;
-
- // Owned attributes [NamedElement]
- Q_INVOKABLE const QSet<QUmlDependency *> clientDependency() const;
- Q_INVOKABLE QString name() const;
- Q_INVOKABLE QUmlStringExpression *nameExpression() const;
- Q_INVOKABLE QUmlNamespace *namespace_() const;
- Q_INVOKABLE QString qualifiedName() const;
-
- // Owned attributes [ParameterableElement]
- Q_INVOKABLE QUmlTemplateParameter *owningTemplateParameter() const;
- Q_INVOKABLE QUmlTemplateParameter *templateParameter() const;
-
- // Owned attributes [PackageableElement]
- Q_INVOKABLE QtUml::VisibilityKind visibility() const;
-
- // Owned attributes [DeploymentTarget]
- Q_INVOKABLE const QSet<QUmlPackageableElement *> deployedElement() const;
- Q_INVOKABLE const QSet<QUmlDeployment *> deployment() const;
-
- // Owned attributes [InstanceSpecification]
- Q_INVOKABLE const QSet<QUmlClassifier *> classifier() const;
- Q_INVOKABLE const QSet<QUmlSlot *> slot_() const;
- Q_INVOKABLE QUmlValueSpecification *specification() const;
-
- // Operations [Element]
- Q_INVOKABLE QSet<QUmlElement *> allOwnedElements() const;
- Q_INVOKABLE bool mustBeOwned() const;
-
- // Operations [NamedElement]
- Q_INVOKABLE QList<QUmlNamespace *> allNamespaces() const;
- Q_INVOKABLE QSet<QUmlPackage *> allOwningPackages() const;
- Q_INVOKABLE bool isDistinguishableFrom(QUmlNamedElement *n, QUmlNamespace *ns) const;
- Q_INVOKABLE QString separator() const;
-
- // Operations [ParameterableElement]
- Q_INVOKABLE bool isCompatibleWith(QUmlParameterableElement *p) const;
- Q_INVOKABLE bool isTemplateParameter() const;
-
-public Q_SLOTS:
-
- // Slots for owned attributes [Element]
- void addOwnedComment(UmlComment *ownedComment);
- void removeOwnedComment(UmlComment *ownedComment);
-
- // Slots for owned attributes [NamedElement]
- void addClientDependency(UmlDependency *clientDependency);
- void removeClientDependency(UmlDependency *clientDependency);
- void setName(QString name);
- void setNameExpression(QUmlStringExpression *nameExpression);
-
- // Slots for owned attributes [ParameterableElement]
- void setOwningTemplateParameter(QUmlTemplateParameter *owningTemplateParameter);
- void setTemplateParameter(QUmlTemplateParameter *templateParameter);
-
- // Slots for owned attributes [PackageableElement]
- void setVisibility(QtUml::VisibilityKind visibility);
-
- // Slots for owned attributes [DeploymentTarget]
- void addDeployment(UmlDeployment *deployment);
- void removeDeployment(UmlDeployment *deployment);
-
- // Slots for owned attributes [InstanceSpecification]
- void addClassifier(UmlClassifier *classifier);
- void removeClassifier(UmlClassifier *classifier);
- void addSlot(UmlSlot *slot_);
- void removeSlot(UmlSlot *slot_);
+ explicit QUmlInstanceSpecification(bool createQObject = true);
+ virtual ~QUmlInstanceSpecification();
+
+ // Owned attributes
+ const QSet<QUmlClassifier *> classifier() const;
+ void addClassifier(QUmlClassifier *classifier);
+ void removeClassifier(QUmlClassifier *classifier);
+ const QSet<QUmlSlot *> slot_() const;
+ void addSlot(QUmlSlot *slot_);
+ void removeSlot(QUmlSlot *slot_);
+ QUmlValueSpecification *specification() const;
void setSpecification(QUmlValueSpecification *specification);
+
+protected:
+ QSet<QUmlClassifier *> _classifier;
+ QSet<QUmlSlot *> _slot_;
+ QUmlValueSpecification *_specification;
};
QT_END_NAMESPACE
-Q_DECLARE_METATYPE(QUmlInstanceSpecification *)
-Q_DECLARE_METATYPE(QList<QUmlInstanceSpecification *> *)
-Q_DECLARE_METATYPE(QSet<QUmlInstanceSpecification *> *)
+Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QUmlInstanceSpecification) *)
QT_END_HEADER