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

umlobject.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 UMLOBJECT_H
7#define UMLOBJECT_H
8
9#include "basictypes.h"
10#include "icon_utils.h"
11#include "umlpackagelist.h"
12
13//qt includes
14#include <QDomDocument>
15#include <QDomElement>
16#include <QObject>
17#include <QPointer>
18#include <QString>
19#include <QXmlStreamWriter>
20
21 class UMLActor;
22 class UMLArtifact;
23 class UMLAssociation;
24 class UMLAttribute;
25 class UMLCanvasObject;
26 class UMLCategory;
27 class UMLCheckConstraint;
28 class UMLClassifier;
29 class UMLClassifierListItem;
30 class UMLClassifierSet;
31 class UMLComponent;
32 class UMLDatatype;
33 class UMLEntity;
34 class UMLEntityAttribute;
35 class UMLEntityConstraint;
36 class UMLEnum;
37 class UMLEnumLiteral;
38 class UMLFolder;
39 class UMLForeignKeyConstraint;
40 class UMLInstance;
41 class UMLInstanceAttribute;
42 class UMLNode;
43 class UMLOperation;
44 class UMLPackage;
45 class UMLPort;
46 class UMLRole;
47 class UMLStereotype;
48 class UMLTemplate;
49 class UMLUniqueConstraint;
50 class UMLUseCase;
51 class UMLObjectPrivate;
52
69 class UMLObject : public QObject
70{
71 Q_OBJECT
72 Q_ENUMS(ObjectType)
73
74 public:
75 enum ObjectType
76 {
77 ot_Unknown = -1,
78 ot_UMLObject = 100,
79 ot_Actor,
80 ot_UseCase,
81 ot_Package,
82 ot_Interface,
83 ot_Datatype,
84 ot_Enum,
85 ot_Class,
86 ot_Instance,
87 ot_Association,
88 ot_Attribute,
89 ot_Operation,
90 ot_EnumLiteral,
91 ot_Template,
92 ot_Component,
93 ot_Artifact,
94 ot_Node,
95 ot_Stereotype,
96 ot_Role,
97 ot_Entity,
98 ot_EntityAttribute,
99 ot_Folder,
100 ot_EntityConstraint,
101 ot_UniqueConstraint,
102 ot_ForeignKeyConstraint,
103 ot_CheckConstraint,
104 ot_Category,
105 ot_Port,
106 ot_InstanceAttribute,
107 ot_SubSystem
108 };
109
110 static QString toString(ObjectType ot);
111 static QString toI18nString(ObjectType t);
112 static Icon_Utils::IconType toIcon(ObjectType t);
113
114 explicit UMLObject(const UMLObject& other);
115 explicit UMLObject(UMLObject* parent, const QString& name, Uml::ID::Type id = Uml::ID::None);
116 explicit UMLObject(UMLObject* parent);
117 explicit UMLObject(const QString& name = QString(), Uml::ID::Type id = Uml::ID::None);
118 virtual ~UMLObject();
119
120 bool operator==(const UMLObject & rhs) const;
121
122 virtual void copyInto(UMLObject *lhs) const;
123
124 virtual UMLObject* clone() const;
125
126 virtual void setBaseType(ObjectType ot);
127 ObjectType baseType() const;
128 QLatin1String baseTypeStr() const;
129
130 virtual void setID(Uml::ID::Type NewID);
131 virtual Uml::ID::Type id() const;
132
133 QString doc() const;
134 bool hasDoc() const;
135 void setDoc(const QString &d);
136
137 void setVisibility(Uml::Visibility::Enum visibility);
138 void setVisibilityCmd(Uml::Visibility::Enum visibility);
139 Uml::Visibility::Enum visibility() const;
140
141 void setStereotype(const QString &_name);
142 void setStereotypeCmd(const QString &_name);
143 QString stereotype(bool includeAdornments = false) const;
144
145 void setUMLStereotype(UMLStereotype *stereo);
146 UMLStereotype *umlStereotype();
147
148 QStringList& tags();
149
150 QString package(const QString& separator = QString(),
151 bool includeRoot = false);
152
153 UMLPackageList packages(bool includeRoot = false) const;
154
155 bool setUMLPackage(UMLPackage* pPkg);
156 UMLPackage* umlPackage() const;
157
158 void setUMLParent(UMLObject* parent);
159 UMLObject* umlParent() const;
160
161 virtual void setName(const QString &strName);
162 virtual void setNameCmd(const QString &strName) ;
163 QString name() const;
164
165 virtual QString fullyQualifiedName(const QString& separator = QString(),
166 bool includeRoot = false) const;
167
168 void setAbstract(bool bAbstract);
169 bool isAbstract() const;
170
171 virtual bool showPropertiesDialog(QWidget* parent = 0);
172
173 virtual bool resolveRef();
174
175 virtual void saveToXMI1(QXmlStreamWriter& writer);
176 virtual bool loadFromXMI1(QDomElement & element);
177
178 bool loadStereotype(QDomElement & element);
179
180 void setStatic(bool bStatic);
181 bool isStatic() const;
182
183 virtual bool acceptAssociationType(Uml::AssociationType::Enum); //:TODO: check if this is really needed here
184
185 void setSecondaryId(const QString& id);
186 QString secondaryId() const;
187
188 void setSecondaryFallback(const QString& id);
189 QString secondaryFallback() const;
190
191 void save1(const QString& tag, QXmlStreamWriter& writer);
192
193 friend QDebug operator<< (QDebug out, const UMLObject& obj);
194
195 bool isUMLActor() { return baseType() == ot_Actor; }
196 bool isUMLArtifact() { return baseType() == ot_Artifact; }
197 bool isUMLAssociation() { return baseType() == ot_Association; }
198 bool isUMLAttribute() { return baseType() == ot_Attribute; }
199 //bool isUMLCanvasObject() { return baseType() == ot_CanvasObject; }
200 bool isUMLCategory() { return baseType() == ot_Category; }
201 bool isUMLCheckConstraint() { return baseType() == ot_CheckConstraint; }
202 bool isUMLClassifier() { return baseType() == ot_Class; }
203 bool isUMLComponent() { return baseType() == ot_Component; }
204 bool isUMLDatatype() { return baseType() == ot_Datatype; }
205 bool isUMLEntity() { return baseType() == ot_Entity; }
206 bool isUMLEntityAttribute() { return baseType() == ot_EntityAttribute; }
207 bool isUMLEntityConstraint() { return baseType() == ot_EntityConstraint; }
208 bool isUMLEnum() { return baseType() == ot_Enum; }
209 bool isUMLEnumLiteral() { return baseType() == ot_EnumLiteral; }
210 bool isUMLFolder() { return baseType() == ot_Folder; }
211 bool isUMLForeignKeyConstraint() { return baseType() == ot_ForeignKeyConstraint; }
212 bool isUMLInstance() { return baseType() == ot_Instance; }
213 bool isUMLInstanceAttribute() { return baseType() == ot_InstanceAttribute; }
214 bool isUMLNode() { return baseType() == ot_Node; }
215 bool isUMLObject() { return baseType() == ot_UMLObject; }
216 bool isUMLOperation() { return baseType() == ot_Operation; }
217 bool isUMLPackage() { return baseType() == ot_Package; }
218 bool isUMLPort() { return baseType() == ot_Port; }
219 bool isUMLRole() { return baseType() == ot_Role; }
220 bool isUMLStereotype() { return baseType() == ot_Stereotype; }
221 bool isUMLTemplate() { return baseType() == ot_Template; }
222 bool isUMLUniqueConstraint() { return baseType() == ot_UniqueConstraint; }
223 bool isUMLUseCase() { return baseType() == ot_UseCase; }
224
225 UMLActor* asUMLActor();
226 UMLArtifact* asUMLArtifact();
227 UMLAssociation* asUMLAssociation();
228 UMLAttribute* asUMLAttribute();
229 UMLCanvasObject* asUMLCanvasObject();
230 UMLCategory* asUMLCategory();
231 UMLCheckConstraint* asUMLCheckConstraint();
232 UMLClassifier* asUMLClassifier();
233 UMLClassifierListItem* asUMLClassifierListItem();
234 UMLClassifierSet* asUMLClassifierSet();
235 UMLComponent* asUMLComponent();
236 UMLDatatype* asUMLDatatype();
237 UMLEntity* asUMLEntity();
238 UMLEntityAttribute* asUMLEntityAttribute();
239 UMLEntityConstraint* asUMLEntityConstraint();
240 UMLEnum* asUMLEnum();
241 UMLEnumLiteral* asUMLEnumLiteral();
242 UMLFolder* asUMLFolder();
243 UMLForeignKeyConstraint* asUMLForeignKeyConstraint();
244 UMLInstance* asUMLInstance();
245 UMLInstanceAttribute* asUMLInstanceAttribute();
246 UMLNode* asUMLNode();
247 UMLObject* asUMLObject();
248 UMLOperation* asUMLOperation();
249 UMLPackage* asUMLPackage();
250 UMLPort* asUMLPort();
251 UMLRole* asUMLRole();
252 UMLStereotype* asUMLStereotype();
253 UMLTemplate* asUMLTemplate();
254 UMLUniqueConstraint* asUMLUniqueConstraint();
255 UMLUseCase* asUMLUseCase();
256
257 public slots:
258 void emitModified();
259
260signals:
261 void modified();
262
263 protected:
264 void init();
265
266 void maybeSignalObjectCreated();
267
268 void save1end(QXmlStreamWriter& writer);
269
270 virtual bool load1(QDomElement& element);
271
272 Uml::ID::Type m_nId;
273 QString m_Doc;
274 QPointer<UMLStereotype> m_pStereotype;
275 QString m_name;
276 ObjectType m_BaseType;
277 Uml::Visibility::Enum m_visibility;
278 bool m_bAbstract;
279 bool m_bStatic;
280 bool m_bInPaste;
281 bool m_bCreationWasSignalled;
282 QPointer<UMLObject> m_pSecondary;
286 QString m_SecondaryId;
289 QString m_SecondaryFallback;
295 QStringList m_TaggedValues;
300 UMLObjectPrivate *m_d;
301 friend class ObjectsModel;
302};
303
304#endif
basictypes.h
ObjectsModel
Definition: objectsmodel.h:16
UMLActor
Information for a non-graphical UML Actor.
Definition: actor.h:23
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:23
UMLAssociation
Sets up association information.
Definition: association.h:29
UMLAttribute
Sets up attribute information.
Definition: attribute.h:23
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:32
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:22
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: checkconstraint.h:21
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:25
UMLClassifierSet
holds set of classifiers for recursive loop detection
Definition: classifier.cpp:45
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLComponent
Non-graphical information for a Component.
Definition: component.h:23
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:21
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:21
UMLEntityConstraint
Sets up entity constraint information.
Definition: entityconstraint.h:22
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:30
UMLEnumLiteral
Sets up attribute information.
Definition: enumliteral.h:21
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:24
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:30
UMLForeignKeyConstraint
Sets up Foreign Key entity constraint information.
Definition: foreignkeyconstraint.h:28
UMLInstanceAttribute
Sets up instanceattribute information.
Definition: instanceattribute.h:34
UMLInstance
Non-graphical Information for an Instance.
Definition: instance.h:43
UMLNode
Non-graphical information for a Node.
Definition: node.h:22
UMLObjectPrivate
Definition: umlobjectprivate.h:10
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::m_nId
Uml::ID::Type m_nId
object's id
Definition: umlobject.h:272
UMLObject::acceptAssociationType
virtual bool acceptAssociationType(Uml::AssociationType::Enum)
Definition: umlobject.cpp:168
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1399
UMLObject::asUMLCheckConstraint
UMLCheckConstraint * asUMLCheckConstraint()
Definition: umlobject.cpp:1387
UMLObject::tags
QStringList & tags()
Definition: umlobject.cpp:564
UMLObject::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlobject.cpp:140
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:82
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:105
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:104
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:87
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:78
UMLObject::ot_Stereotype
@ ot_Stereotype
Definition: umlobject.h:95
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:88
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:84
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:81
UMLObject::ot_Unknown
@ ot_Unknown
Definition: umlobject.h:77
UMLObject::ot_ForeignKeyConstraint
@ ot_ForeignKeyConstraint
Definition: umlobject.h:102
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:90
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:89
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:79
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:91
UMLObject::ot_EntityConstraint
@ ot_EntityConstraint
Definition: umlobject.h:100
UMLObject::ot_CheckConstraint
@ ot_CheckConstraint
Definition: umlobject.h:103
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:94
UMLObject::ot_Role
@ ot_Role
Definition: umlobject.h:96
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:85
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:83
UMLObject::ot_SubSystem
@ ot_SubSystem
no real object type
Definition: umlobject.h:107
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:86
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:92
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:99
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:98
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:80
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:106
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:93
UMLObject::ot_UniqueConstraint
@ ot_UniqueConstraint
Definition: umlobject.h:101
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:97
UMLObject::isUMLUseCase
bool isUMLUseCase()
Definition: umlobject.h:223
UMLObject::isUMLClassifier
bool isUMLClassifier()
Definition: umlobject.h:202
UMLObject::asUMLUseCase
UMLUseCase * asUMLUseCase()
Definition: umlobject.cpp:1410
UMLObject::asUMLEnumLiteral
UMLEnumLiteral * asUMLEnumLiteral()
Definition: umlobject.cpp:1396
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1404
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:420
UMLObject::isUMLAttribute
bool isUMLAttribute()
Definition: umlobject.h:198
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:673
UMLObject::asUMLClassifierSet
UMLClassifierSet * asUMLClassifierSet()
UMLObject::m_SecondaryFallback
QString m_SecondaryFallback
Definition: umlobject.h:289
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1390
UMLObject::resolveRef
virtual bool resolveRef()
Definition: umlobject.cpp:741
UMLObject::isUMLPort
bool isUMLPort()
Definition: umlobject.h:218
UMLObject::isUMLUniqueConstraint
bool isUMLUniqueConstraint()
Definition: umlobject.h:222
UMLObject::isUMLCategory
bool isUMLCategory()
Definition: umlobject.h:200
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:197
UMLObject::clone
virtual UMLObject * clone() const
Definition: umlobject.cpp:333
UMLObject::umlStereotype
UMLStereotype * umlStereotype()
Definition: umlobject.cpp:546
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:343
UMLObject::save1end
void save1end(QXmlStreamWriter &writer)
Definition: umlobject.cpp:903
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:309
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1397
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:380
UMLObject::toI18nString
static QString toI18nString(ObjectType t)
Definition: umlobject.cpp:1189
UMLObject::isUMLDatatype
bool isUMLDatatype()
Definition: umlobject.h:204
UMLObject::operator==
bool operator==(const UMLObject &rhs) const
Definition: umlobject.cpp:250
UMLObject::m_bCreationWasSignalled
bool m_bCreationWasSignalled
auxiliary to maybeSignalObjectCreated()
Definition: umlobject.h:281
UMLObject::isUMLFolder
bool isUMLFolder()
Definition: umlobject.h:210
UMLObject::operator<<
friend QDebug operator<<(QDebug out, const UMLObject &obj)
Definition: umlobject.cpp:1347
UMLObject::m_d
UMLObjectPrivate * m_d
private data
Definition: umlobject.h:300
UMLObject::setVisibilityCmd
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:481
UMLObject::asUMLEntityAttribute
UMLEntityAttribute * asUMLEntityAttribute()
Definition: umlobject.cpp:1393
UMLObject::m_bAbstract
bool m_bAbstract
state of whether the object is abstract or not
Definition: umlobject.h:278
UMLObject::asUMLNode
UMLNode * asUMLNode()
Definition: umlobject.cpp:1401
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1383
UMLObject::asUMLActor
UMLActor * asUMLActor()
Definition: umlobject.cpp:1381
UMLObject::isUMLPackage
bool isUMLPackage()
Definition: umlobject.h:217
UMLObject::asUMLUniqueConstraint
UMLUniqueConstraint * asUMLUniqueConstraint()
Definition: umlobject.cpp:1409
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:178
UMLObject::loadStereotype
bool loadStereotype(QDomElement &element)
Definition: umlobject.cpp:951
UMLObject::toIcon
static Icon_Utils::IconType toIcon(ObjectType t)
Definition: umlobject.cpp:1256
UMLObject::m_Doc
QString m_Doc
object's documentation
Definition: umlobject.h:273
UMLObject::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: umlobject.cpp:992
UMLObject::hasDoc
bool hasDoc() const
Definition: umlobject.cpp:440
UMLObject::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: umlobject.cpp:836
UMLObject::setSecondaryId
void setSecondaryId(const QString &id)
Definition: umlobject.cpp:691
UMLObject::isUMLComponent
bool isUMLComponent()
Definition: umlobject.h:203
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1403
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:648
UMLObject::setUMLStereotype
void setUMLStereotype(UMLStereotype *stereo)
Definition: umlobject.cpp:496
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1392
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:222
UMLObject::UMLObject
UMLObject(const UMLObject &other)
Definition: umlobject.cpp:43
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:554
UMLObject::isUMLEnumLiteral
bool isUMLEnumLiteral()
Definition: umlobject.h:209
UMLObject::isUMLNode
bool isUMLNode()
Definition: umlobject.h:214
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:530
UMLObject::isUMLEnum
bool isUMLEnum()
Definition: umlobject.h:208
UMLObject::isUMLAssociation
bool isUMLAssociation()
Definition: umlobject.h:197
UMLObject::~UMLObject
virtual ~UMLObject()
Definition: umlobject.cpp:105
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1391
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:361
UMLObject::modified
void modified()
Definition: moc_umlobject.cpp:217
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:430
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:618
UMLObject::setSecondaryFallback
void setSecondaryFallback(const QString &id)
Definition: umlobject.cpp:709
UMLObject::secondaryId
QString secondaryId() const
Definition: umlobject.cpp:681
UMLObject::isUMLObject
bool isUMLObject()
Definition: umlobject.h:215
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:450
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:523
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1406
UMLObject::setBaseType
virtual void setBaseType(ObjectType ot)
Definition: umlobject.cpp:410
UMLObject::asUMLTemplate
UMLTemplate * asUMLTemplate()
Definition: umlobject.cpp:1408
UMLObject::setAbstract
void setAbstract(bool bAbstract)
Definition: umlobject.cpp:351
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:282
UMLObject::m_TaggedValues
QStringList m_TaggedValues
Definition: umlobject.h:295
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:187
UMLObject::init
void init()
Definition: umlobject.cpp:121
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1386
UMLObject::m_bInPaste
bool m_bInPaste
caller sets this true when in paste operation
Definition: umlobject.h:280
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:461
UMLObject::m_pStereotype
QPointer< UMLStereotype > m_pStereotype
stereotype of the object if applicable
Definition: umlobject.h:274
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
UMLObject::asUMLInstanceAttribute
UMLInstanceAttribute * asUMLInstanceAttribute()
Definition: umlobject.cpp:1400
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:392
UMLObject::asUMLObject
UMLObject * asUMLObject()
Definition: umlobject.cpp:1402
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:286
UMLObject::isUMLRole
bool isUMLRole()
Definition: umlobject.h:219
UMLObject::asUMLStereotype
UMLStereotype * asUMLStereotype()
Definition: umlobject.cpp:1407
UMLObject::maybeSignalObjectCreated
void maybeSignalObjectCreated()
Definition: umlobject.cpp:718
UMLObject::isUMLInstance
bool isUMLInstance()
Definition: umlobject.h:212
UMLObject::baseTypeStr
QLatin1String baseTypeStr() const
Definition: umlobject.cpp:400
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1405
UMLObject::package
QString package(const QString &separator=QString(), bool includeRoot=false)
Definition: umlobject.cpp:580
UMLObject::m_name
QString m_name
objects name
Definition: umlobject.h:275
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1384
UMLObject::asUMLEntityConstraint
UMLEntityConstraint * asUMLEntityConstraint()
Definition: umlobject.cpp:1394
UMLObject::isUMLEntityAttribute
bool isUMLEntityAttribute()
Definition: umlobject.h:206
UMLObject::isUMLTemplate
bool isUMLTemplate()
Definition: umlobject.h:221
UMLObject::asUMLCanvasObject
UMLCanvasObject * asUMLCanvasObject()
Definition: umlobject.cpp:1385
UMLObject::setStatic
void setStatic(bool bStatic)
Definition: umlobject.cpp:369
UMLObject::setUMLParent
void setUMLParent(UMLObject *parent)
Definition: umlobject.cpp:660
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1388
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1395
UMLObject::isUMLCheckConstraint
bool isUMLCheckConstraint()
Definition: umlobject.h:201
UMLObject::setVisibility
void setVisibility(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:471
UMLObject::asUMLForeignKeyConstraint
UMLForeignKeyConstraint * asUMLForeignKeyConstraint()
Definition: umlobject.cpp:1398
UMLObject::isUMLInstanceAttribute
bool isUMLInstanceAttribute()
Definition: umlobject.h:213
UMLObject::packages
UMLPackageList packages(bool includeRoot=false) const
Definition: umlobject.cpp:600
UMLObject::isUMLEntity
bool isUMLEntity()
Definition: umlobject.h:205
UMLObject::m_visibility
Uml::Visibility::Enum m_visibility
objects visibility
Definition: umlobject.h:277
UMLObject::load1
virtual bool load1(QDomElement &element)
Definition: umlobject.cpp:938
UMLObject::m_bStatic
bool m_bStatic
flag for instance scope
Definition: umlobject.h:279
UMLObject::isUMLStereotype
bool isUMLStereotype()
Definition: umlobject.h:220
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1179
UMLObject::secondaryFallback
QString secondaryFallback() const
Definition: umlobject.cpp:700
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1382
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLObject::isUMLActor
bool isUMLActor()
Definition: umlobject.h:195
UMLObject::isUMLForeignKeyConstraint
bool isUMLForeignKeyConstraint()
Definition: umlobject.h:211
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1389
UMLObject::save1
void save1(const QString &tag, QXmlStreamWriter &writer)
Definition: umlobject.cpp:849
UMLObject::isUMLEntityConstraint
bool isUMLEntityConstraint()
Definition: umlobject.h:207
UMLObject::isUMLOperation
bool isUMLOperation()
Definition: umlobject.h:216
UMLObject::isUMLArtifact
bool isUMLArtifact()
Definition: umlobject.h:196
UMLOperation
Definition: operation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
UMLPort
Non-graphical information for a Port.
Definition: port.h:22
UMLRole
Definition: umlrole.h:20
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:36
UMLTemplate
Sets up template information.
Definition: template.h:22
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: uniqueconstraint.h:24
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: usecase.h:20
icon_utils.h
Icon_Utils::IconType
IconType
Definition: icon_utils.h:33
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:92
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::Visibility::Enum
Enum
Definition: basictypes.h:45
visibility
Definition: visibility.py:1
umlpackagelist.h
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:11