umbrello 2.32.3 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(QDomDocument & qDoc, QDomElement & qElement);
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
checkconstraint.h
UMLObject::ot_CheckConstraint
@ ot_CheckConstraint
Definition: umlobject.h:107
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLEntityConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: entityconstraint.cpp:70
UMLCheckConstraint::m_CheckCondition
QString m_CheckCondition
the check condition
Definition: checkconstraint.h:67
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLCheckConstraint::UMLCheckConstraint
UMLCheckConstraint(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: checkconstraint.cpp:25
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:165
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
UMLEntityConstraint
Sets up entity constraint information.
Definition: entityconstraint.h:27
UMLCheckConstraint::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: checkconstraint.cpp:131
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::asUMLCheckConstraint
UMLCheckConstraint * asUMLCheckConstraint()
Definition: umlobject.cpp:1308
entityconstraint.h
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLCheckConstraint::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: checkconstraint.cpp:68
UMLCheckConstraint::operator==
bool operator==(const UMLCheckConstraint &rhs) const
Definition: checkconstraint.cpp:46
UMLCheckConstraint::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: checkconstraint.cpp:118
UMLCheckConstraint::clone
virtual UMLObject * clone() const
Definition: checkconstraint.cpp:82
UMLCheckConstraint::load1
bool load1(QDomElement &element)
Definition: checkconstraint.cpp:140
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:845
UMLCheckConstraint::getFullyQualifiedName
QString getFullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: checkconstraint.cpp:108
basictypes.h
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:162
UMLCheckConstraint::setCheckCondition
void setCheckCondition(const QString &condition)
Definition: checkconstraint.h:55
UMLCheckConstraint::getCheckCondition
QString getCheckCondition() const
Definition: checkconstraint.h:51
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
Uml::SignatureType::ShowSig
@ ShowSig
Definition: basictypes.h:164
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: checkconstraint.h:26
UMLCheckConstraintDialog
A dialog page to display check constraint properties.
Definition: umlcheckconstraintdialog.h:31
debug_utils.h
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:163
umlcheckconstraintdialog.h
UMLCheckConstraint::init
void init()
Definition: checkconstraint.cpp:156