umbrello 26.03.70-1a62d36 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

umlcheckconstraint.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 CHECKCONSTRAINT_H
7#define CHECKCONSTRAINT_H
8
9#include "basictypes.h"
10#include "umlentityconstraint.h"
11
20 class UMLCheckConstraint : public UMLEntityConstraint
21{
22 Q_OBJECT
23 public:
24
25 UMLCheckConstraint(UMLObject *parent, const QString& name,
26 Uml::ID::Type id = Uml::ID::None);
27 explicit UMLCheckConstraint(UMLObject *parent);
28
29 bool operator==(const UMLCheckConstraint &rhs) const;
30
31 virtual ~UMLCheckConstraint();
32
33 virtual void copyInto(UMLObject *lhs) const;
34
35 virtual UMLObject* clone() const;
36
37 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig,
38 bool withStereotype=false) const;
39
40 QString getFullyQualifiedName(const QString& separator = QString(),
41 bool includeRoot = false) const;
42
43 void saveToXMI(QXmlStreamWriter& writer);
44
45 virtual bool showPropertiesDialog(QWidget *parent = nullptr);
46
47 QString getCheckCondition() const {
48 return m_CheckCondition;
49 }
50
51 void setCheckCondition(const QString& condition) {
52 m_CheckCondition = condition.trimmed();
53 }
54
55 protected:
56
57 bool load1(QDomElement & element);
58
59 private:
60
61 void init();
62
63 QString m_CheckCondition;
64
65};
66
67#endif
basictypes.h
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: umlcheckconstraint.h:21
UMLCheckConstraint::load1
bool load1(QDomElement &element)
Definition: umlcheckconstraint.cpp:131
UMLCheckConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition: umlcheckconstraint.cpp:122
UMLCheckConstraint::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umlcheckconstraint.cpp:110
UMLCheckConstraint::~UMLCheckConstraint
virtual ~UMLCheckConstraint()
Definition: umlcheckconstraint.cpp:55
UMLCheckConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlcheckconstraint.cpp:100
UMLCheckConstraint::init
void init()
Definition: umlcheckconstraint.cpp:147
UMLCheckConstraint::operator==
bool operator==(const UMLCheckConstraint &rhs) const
Definition: umlcheckconstraint.cpp:41
UMLCheckConstraint::clone
virtual UMLObject * clone() const
Definition: umlcheckconstraint.cpp:77
UMLCheckConstraint::setCheckCondition
void setCheckCondition(const QString &condition)
Definition: umlcheckconstraint.h:51
UMLCheckConstraint::getCheckCondition
QString getCheckCondition() const
Definition: umlcheckconstraint.h:47
UMLCheckConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: umlcheckconstraint.cpp:89
UMLCheckConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlcheckconstraint.cpp:63
UMLCheckConstraint::m_CheckCondition
QString m_CheckCondition
the check condition
Definition: umlcheckconstraint.h:63
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
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
umlentityconstraint.h