umbrello 26.07.70-c53146a Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

umlinstanceattribute.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2016-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UMLINSTANCEATTRIBUTE_H
7#define UMLINSTANCEATTRIBUTE_H
8
9#include "umlobject.h"
10
11 class UMLInstance;
12 class UMLAttribute;
13
33 class UMLInstanceAttribute : public UMLObject
34{
35 Q_OBJECT
36 public:
37 UMLInstanceAttribute(UMLInstance *parent,
38 UMLAttribute *umlAttr, const QString& value = QString());
39
40 void setAttribute(UMLAttribute *umlAttr);
41 UMLAttribute *getAttribute() const;
42
43 void setValue(const QString& value);
44 QString getValue() const;
45
46 QString toString() const;
47
48 virtual void saveToXMI(QXmlStreamWriter& writer);
49
50 virtual bool showPropertiesDialog(QWidget *parent = nullptr);
51
52 protected:
53 virtual bool load1(QDomElement &element);
54
55 private:
56 void init();
57 QString m_value;
58};
59
60#endif // UMLINSTANCEATTRIBUTE_H
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
UMLInstanceAttribute
Sets up instanceattribute information.
Definition: umlinstanceattribute.h:34
UMLInstanceAttribute::setAttribute
void setAttribute(UMLAttribute *umlAttr)
Definition: umlinstanceattribute.cpp:57
UMLInstanceAttribute::setValue
void setValue(const QString &value)
Definition: umlinstanceattribute.cpp:78
UMLInstanceAttribute::init
void init()
UMLInstanceAttribute::init Initialize members of this class.
Definition: umlinstanceattribute.cpp:48
UMLInstanceAttribute::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: umlinstanceattribute.cpp:105
UMLInstanceAttribute::getValue
QString getValue() const
Definition: umlinstanceattribute.cpp:87
UMLInstanceAttribute::getAttribute
UMLAttribute * getAttribute() const
Definition: umlinstanceattribute.cpp:67
UMLInstanceAttribute::toString
QString toString() const
Definition: umlinstanceattribute.cpp:96
UMLInstanceAttribute::m_value
QString m_value
Definition: umlinstanceattribute.h:57
UMLInstanceAttribute::load1
virtual bool load1(QDomElement &element)
Definition: umlinstanceattribute.cpp:122
UMLInstanceAttribute::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition: umlinstanceattribute.cpp:147
UMLInstance
Non-graphical Information for an Instance.
Definition: umlinstance.h:43
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
umlobject.h