umbrello: umbrello/uml1model/checkconstraint.h Source File

umbrello 2.32.0 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CHECKCONSTRAINT_H
12 #define CHECKCONSTRAINT_H
13
14 #include "basictypes.h"
15 #include "entityconstraint.h"
16
25 class UMLCheckConstraint : public UMLEntityConstraint
26 {
27 Q_OBJECT
28 public:
29
30 UMLCheckConstraint(UMLObject *parent, const QString& name,
31 Uml::ID::Type id = Uml::ID::None);
32 explicit UMLCheckConstraint(UMLObject *parent);
33
34 bool operator==(const UMLCheckConstraint &rhs) const;
35
36 virtual ~UMLCheckConstraint();
37
38 virtual void copyInto(UMLObject *lhs) const;
39
40 virtual UMLObject* clone() const;
41
42 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig, bool withStereotype=false);
43
44 QString getFullyQualifiedName(const QString& separator = QString(),
45 bool includeRoot = false) const;
46
47 void saveToXMI1(QXmlStreamWriter& writer);
48
49 virtual bool showPropertiesDialog(QWidget* parent = 0);
50
51 QString getCheckCondition() const {
52 return m_CheckCondition;
53 }
54
55 void setCheckCondition(const QString& condition) {
56 m_CheckCondition = condition.trimmed();
57 }
58
59 protected:
60
61 bool load1(QDomElement & element);
62
63 private:
64
65 void init();
66
67 QString m_CheckCondition;
68
69 };
70
71 #endif
basictypes.h
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: checkconstraint.h:26
UMLCheckConstraint::load1
bool load1(QDomElement &element)
Definition: checkconstraint.cpp:139
UMLCheckConstraint::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: checkconstraint.cpp:118
UMLCheckConstraint::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: checkconstraint.cpp:96
UMLCheckConstraint::~UMLCheckConstraint
virtual ~UMLCheckConstraint()
Definition: checkconstraint.cpp:60
UMLCheckConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: checkconstraint.cpp:108
UMLCheckConstraint::init
void init()
Definition: checkconstraint.cpp:155
UMLCheckConstraint::operator==
bool operator==(const UMLCheckConstraint &rhs) const
Definition: checkconstraint.cpp:46
UMLCheckConstraint::clone
virtual UMLObject * clone() const
Definition: checkconstraint.cpp:82
UMLCheckConstraint::setCheckCondition
void setCheckCondition(const QString &condition)
Definition: checkconstraint.h:55
UMLCheckConstraint::getCheckCondition
QString getCheckCondition() const
Definition: checkconstraint.h:51
UMLCheckConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: checkconstraint.cpp:68
UMLCheckConstraint::m_CheckCondition
QString m_CheckCondition
the check condition
Definition: checkconstraint.h:67
UMLCheckConstraint::UMLCheckConstraint
UMLCheckConstraint(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: checkconstraint.cpp:25
UMLCheckConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: checkconstraint.cpp:130
UMLEntityConstraint
Sets up entity constraint information.
Definition: entityconstraint.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
entityconstraint.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
Uml::ID::Type
std::string Type
Definition: basictypes.h:385
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:174
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:175