umbrello: umbrello/uml1model/checkconstraint.h Source File

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

checkconstraint.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 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
23public:
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, bool withStereotype=false);
38
39 QString getFullyQualifiedName(const QString& separator = QString(),
40 bool includeRoot = false) const;
41
42 void saveToXMI1(QXmlStreamWriter& writer);
43
44 virtual bool showPropertiesDialog(QWidget* parent = 0);
45
46 QString getCheckCondition() const {
47 return m_CheckCondition;
48 }
49
50 void setCheckCondition(const QString& condition) {
51 m_CheckCondition = condition.trimmed();
52 }
53
54protected:
55
56 bool load1(QDomElement & element);
57
58private:
59
60 void init();
61
62 QString m_CheckCondition;
63
64};
65
66#endif
basictypes.h
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: checkconstraint.h:21
UMLCheckConstraint::load1
bool load1(QDomElement &element)
Definition: checkconstraint.cpp:134
UMLCheckConstraint::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: checkconstraint.cpp:113
UMLCheckConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: checkconstraint.cpp:91
UMLCheckConstraint::~UMLCheckConstraint
virtual ~UMLCheckConstraint()
Definition: checkconstraint.cpp:55
UMLCheckConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: checkconstraint.cpp:103
UMLCheckConstraint::init
void init()
Definition: checkconstraint.cpp:150
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:50
UMLCheckConstraint::getCheckCondition
QString getCheckCondition() const
Definition: checkconstraint.h:46
UMLCheckConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: checkconstraint.cpp:63
UMLCheckConstraint::m_CheckCondition
QString m_CheckCondition
the check condition
Definition: checkconstraint.h:62
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:125
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:206
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