umbrello 26.03.70-f7b1fd3 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

umluniqueconstraint.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef UNIQUECONSTRAINT_H
7#define UNIQUECONSTRAINT_H
8
9#include "basictypes.h"
10#include "umlclassifierlistitem.h"
11#include "umlentityconstraint.h"
12#include "umlclassifierlist.h"
13#include "umlentityattributelist.h"
14
23 class UMLUniqueConstraint : public UMLEntityConstraint
24{
25 public:
26
27 UMLUniqueConstraint(UMLObject *parent, const QString& name,
28 Uml::ID::Type id = Uml::ID::None);
29 explicit UMLUniqueConstraint(UMLObject *parent);
30 virtual ~UMLUniqueConstraint();
31
32 bool operator==(const UMLUniqueConstraint &rhs) const;
33
34 virtual void copyInto(UMLObject *lhs) const;
35
36 virtual UMLObject* clone() const;
37
38 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig,
39 bool withStereotype=false) const;
40
41 QString getFullyQualifiedName(const QString& separator = QString(),
42 bool includeRoot = false) const;
43
44 void saveToXMI(QXmlStreamWriter& writer);
45
46 virtual bool showPropertiesDialog(QWidget *parent = nullptr);
47
48 bool hasEntityAttribute(UMLEntityAttribute* attr) const;
49
50 bool addEntityAttribute(UMLEntityAttribute* attr);
51
52 bool removeEntityAttribute(UMLEntityAttribute* attr);
53
54 UMLEntityAttributeList getEntityAttributeList() const;
55
56 void clearAttributeList();
57
58 protected:
59
60 bool load1(QDomElement & element);
61
62 private:
63
64 void init();
65
69 UMLEntityAttributeList m_EntityAttributeList;
70
71};
72
73#endif
basictypes.h
UMLEntityAttribute
Sets up entityattribute information.
Definition: umlentityattribute.h:21
UMLEntityAttributeList
Definition: umlentityattributelist.h:20
UMLEntityConstraint
Sets up entity constraint information.
Definition: umlentityconstraint.h:22
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: umluniqueconstraint.h:24
UMLUniqueConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umluniqueconstraint.cpp:70
UMLUniqueConstraint::hasEntityAttribute
bool hasEntityAttribute(UMLEntityAttribute *attr) const
Definition: umluniqueconstraint.cpp:228
UMLUniqueConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: umluniqueconstraint.cpp:110
UMLUniqueConstraint::load1
bool load1(QDomElement &element)
Definition: umluniqueconstraint.cpp:180
UMLUniqueConstraint::~UMLUniqueConstraint
virtual ~UMLUniqueConstraint()
Definition: umluniqueconstraint.cpp:62
UMLUniqueConstraint::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umluniqueconstraint.cpp:150
UMLUniqueConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umluniqueconstraint.cpp:140
UMLUniqueConstraint::clone
virtual UMLObject * clone() const
Definition: umluniqueconstraint.cpp:96
UMLUniqueConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition: umluniqueconstraint.cpp:171
UMLUniqueConstraint::addEntityAttribute
bool addEntityAttribute(UMLEntityAttribute *attr)
Definition: umluniqueconstraint.cpp:247
UMLUniqueConstraint::clearAttributeList
void clearAttributeList()
Definition: umluniqueconstraint.cpp:326
UMLUniqueConstraint::removeEntityAttribute
bool removeEntityAttribute(UMLEntityAttribute *attr)
Definition: umluniqueconstraint.cpp:281
UMLUniqueConstraint::operator==
bool operator==(const UMLUniqueConstraint &rhs) const
Definition: umluniqueconstraint.cpp:48
UMLUniqueConstraint::m_EntityAttributeList
UMLEntityAttributeList m_EntityAttributeList
Definition: umluniqueconstraint.h:69
UMLUniqueConstraint::getEntityAttributeList
UMLEntityAttributeList getEntityAttributeList() const
Definition: umluniqueconstraint.cpp:313
UMLUniqueConstraint::init
void init()
Definition: umluniqueconstraint.cpp:318
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:160
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:161
umlclassifierlist.h
umlclassifierlistitem.h
umlentityattributelist.h
umlentityconstraint.h