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

checkconstraint.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 "entityconstraint.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 = 0);
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 checkconstraint.h:21
UMLCheckConstraint::load1
bool load1(QDomElement &element)
Definition checkconstraint.cpp:131
UMLCheckConstraint::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition checkconstraint.cpp:110
UMLCheckConstraint::~UMLCheckConstraint
virtual ~UMLCheckConstraint()
Definition checkconstraint.cpp:55
UMLCheckConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition checkconstraint.cpp:100
UMLCheckConstraint::init
void init()
Definition checkconstraint.cpp:147
UMLCheckConstraint::operator==
bool operator==(const UMLCheckConstraint &rhs) const
Definition checkconstraint.cpp:41
UMLCheckConstraint::clone
virtual UMLObject * clone() const
Definition checkconstraint.cpp:77
UMLCheckConstraint::setCheckCondition
void setCheckCondition(const QString &condition)
Definition checkconstraint.h:51
UMLCheckConstraint::getCheckCondition
QString getCheckCondition() const
Definition checkconstraint.h:47
UMLCheckConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition checkconstraint.cpp:89
UMLCheckConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition checkconstraint.cpp:63
UMLCheckConstraint::m_CheckCondition
QString m_CheckCondition
the check condition
Definition checkconstraint.h:63
UMLCheckConstraint::UMLCheckConstraint
UMLCheckConstraint(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition checkconstraint.cpp:20
UMLCheckConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition checkconstraint.cpp:122
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
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