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

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

- File List
- File Members

uniqueconstraint.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 "classifierlistitem.h"
11#include "entityconstraint.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 = 0);
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
UMLEntityAttributeList
Definition umlentityattributelist.h:20
UMLEntityAttribute
Sets up entityattribute information.
Definition entityattribute.h:21
UMLEntityConstraint
Sets up entity constraint information.
Definition entityconstraint.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 uniqueconstraint.h:24
UMLUniqueConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition uniqueconstraint.cpp:70
UMLUniqueConstraint::hasEntityAttribute
bool hasEntityAttribute(UMLEntityAttribute *attr) const
Definition uniqueconstraint.cpp:228
UMLUniqueConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition uniqueconstraint.cpp:110
UMLUniqueConstraint::load1
bool load1(QDomElement &element)
Definition uniqueconstraint.cpp:180
UMLUniqueConstraint::~UMLUniqueConstraint
virtual ~UMLUniqueConstraint()
Definition uniqueconstraint.cpp:62
UMLUniqueConstraint::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition uniqueconstraint.cpp:150
UMLUniqueConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition uniqueconstraint.cpp:140
UMLUniqueConstraint::UMLUniqueConstraint
UMLUniqueConstraint(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition uniqueconstraint.cpp:28
UMLUniqueConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition uniqueconstraint.cpp:171
UMLUniqueConstraint::clone
virtual UMLObject * clone() const
Definition uniqueconstraint.cpp:96
UMLUniqueConstraint::addEntityAttribute
bool addEntityAttribute(UMLEntityAttribute *attr)
Definition uniqueconstraint.cpp:247
UMLUniqueConstraint::clearAttributeList
void clearAttributeList()
Definition uniqueconstraint.cpp:326
UMLUniqueConstraint::removeEntityAttribute
bool removeEntityAttribute(UMLEntityAttribute *attr)
Definition uniqueconstraint.cpp:281
UMLUniqueConstraint::operator==
bool operator==(const UMLUniqueConstraint &rhs) const
Definition uniqueconstraint.cpp:48
UMLUniqueConstraint::m_EntityAttributeList
UMLEntityAttributeList m_EntityAttributeList
Definition uniqueconstraint.h:69
UMLUniqueConstraint::getEntityAttributeList
UMLEntityAttributeList getEntityAttributeList() const
Definition uniqueconstraint.cpp:313
UMLUniqueConstraint::init
void init()
Definition uniqueconstraint.cpp:318
classifierlistitem.h
entityconstraint.h
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
umlentityattributelist.h