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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

umlobject.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 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() const;
147
148 QStringList& tags();
149
150 QString package(const QString& separator = QString(),
151 bool includeRoot = false) const;
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 = nullptr);
172
173 virtual bool resolveRef();
174
175 virtual void saveToXMI(QXmlStreamWriter& writer);
176 virtual bool loadFromXMI(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) const; //: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(QXmlStreamWriter& writer, const QString& type, const QString& tag = QString());
192
193 friend QDebug operator<< (QDebug out, const UMLObject& obj);
194
195 bool isUMLActor() const { return baseType() == ot_Actor; }
196 bool isUMLArtifact() const { return baseType() == ot_Artifact; }
197 bool isUMLAssociation() const { return baseType() == ot_Association; }
198 bool isUMLAttribute() const { return baseType() == ot_Attribute; }
199 //bool isUMLCanvasObject() const { return baseType() == ot_CanvasObject; }
200 bool isUMLCategory() const { return baseType() == ot_Category; }
201 bool isUMLCheckConstraint() const { return baseType() == ot_CheckConstraint; }
202 bool isUMLClassifier() const { return baseType() == ot_Class; }
203 bool isUMLComponent() const { return baseType() == ot_Component; }
204 bool isUMLDatatype() const { return baseType() == ot_Datatype; }
205 bool isUMLEntity() const { return baseType() == ot_Entity; }
206 bool isUMLEntityAttribute() const { return baseType() == ot_EntityAttribute; }
207 bool isUMLEntityConstraint() const { return baseType() == ot_EntityConstraint; }
208 bool isUMLEnum() const { return baseType() == ot_Enum; }
209 bool isUMLEnumLiteral() const { return baseType() == ot_EnumLiteral; }
210 bool isUMLFolder() const { return baseType() == ot_Folder; }
211 bool isUMLForeignKeyConstraint() const { return baseType() == ot_ForeignKeyConstraint; }
212 bool isUMLInstance() const { return baseType() == ot_Instance; }
213 bool isUMLInstanceAttribute() const { return baseType() == ot_InstanceAttribute; }
214 bool isUMLNode() const { return baseType() == ot_Node; }
215 bool isUMLObject() const { return baseType() == ot_UMLObject; }
216 bool isUMLOperation() const { return baseType() == ot_Operation; }
217 bool isUMLPackage() const { return baseType() == ot_Package; }
218 bool isUMLPort() const { return baseType() == ot_Port; }
219 bool isUMLRole() const { return baseType() == ot_Role; }
220 bool isUMLStereotype() const { return baseType() == ot_Stereotype; }
221 bool isUMLTemplate() const { return baseType() == ot_Template; }
222 bool isUMLUniqueConstraint() const { return baseType() == ot_UniqueConstraint; }
223 bool isUMLUseCase() const { 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 const UMLActor * asUMLActor() const;
258 const UMLArtifact * asUMLArtifact() const;
259 const UMLAssociation * asUMLAssociation() const;
260 const UMLAttribute * asUMLAttribute() const;
261 const UMLCanvasObject * asUMLCanvasObject() const;
262 const UMLCategory * asUMLCategory() const;
263 const UMLCheckConstraint * asUMLCheckConstraint() const;
264 const UMLClassifier * asUMLClassifier() const;
265 const UMLClassifierListItem * asUMLClassifierListItem() const;
266 const UMLClassifierSet * asUMLClassifierSet() const;
267 const UMLComponent * asUMLComponent() const;
268 const UMLDatatype * asUMLDatatype() const;
269 const UMLEntity * asUMLEntity() const;
270 const UMLEntityAttribute * asUMLEntityAttribute() const;
271 const UMLEntityConstraint * asUMLEntityConstraint() const;
272 const UMLEnum * asUMLEnum() const;
273 const UMLEnumLiteral * asUMLEnumLiteral() const;
274 const UMLFolder * asUMLFolder() const;
275 const UMLForeignKeyConstraint * asUMLForeignKeyConstraint() const;
276 const UMLInstance * asUMLInstance() const;
277 const UMLInstanceAttribute * asUMLInstanceAttribute() const;
278 const UMLNode * asUMLNode() const;
279 const UMLObject * asUMLObject() const;
280 const UMLOperation * asUMLOperation() const;
281 const UMLPackage * asUMLPackage() const;
282 const UMLPort * asUMLPort() const;
283 const UMLRole * asUMLRole() const;
284 const UMLStereotype * asUMLStereotype() const;
285 const UMLTemplate * asUMLTemplate() const;
286 const UMLUniqueConstraint * asUMLUniqueConstraint() const;
287 const UMLUseCase * asUMLUseCase() const;
288
289 public Q_SLOTS:
290 void emitModified();
291
292Q_SIGNALS:
293 void modified();
294
295 protected:
296 void init();
297
298 void maybeSignalObjectCreated();
299
300 void save1end(QXmlStreamWriter& writer);
301
302 virtual bool load1(QDomElement& element);
303
304 Uml::ID::Type m_nId;
305 QString m_Doc;
306 QPointer<UMLStereotype> m_pStereotype;
307 QString m_name;
308 ObjectType m_BaseType;
309 Uml::Visibility::Enum m_visibility;
310 bool m_bAbstract;
311 bool m_bStatic;
312 bool m_bCreationWasSignalled;
313 QPointer<UMLObject> m_pSecondary;
317 QString m_SecondaryId;
320 QString m_SecondaryFallback;
326 QStringList m_TaggedValues;
331 UMLObjectPrivate *m_d;
332 friend class ObjectsModel;
333};
334
335 Q_DECLARE_METATYPE(UMLObject*);
336
337#endif
basictypes.h
ObjectsModel
Definition: objectsmodel.h:16
UMLActor
Information for a non-graphical UML Actor.
Definition: umlactor.h:23
UMLArtifact
Non-graphical information for a Artifact.
Definition: umlartifact.h:23
UMLAssociation
Sets up association information.
Definition: umlassociation.h:29
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:32
UMLCategory
Information for a non-graphical UML Category.
Definition: umlcategory.h:22
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: umlcheckconstraint.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: umlclassifierlistitem.h:25
UMLClassifierSet
holds set of classifiers for recursive loop detection
Definition: umlclassifier.cpp:48
UMLComponent
Non-graphical information for a Component.
Definition: umlcomponent.h:23
UMLDatatype
Non-graphical information for a Datatype.
Definition: umldatatype.h:21
UMLEntityAttribute
Sets up entityattribute information.
Definition: umlentityattribute.h:21
UMLEntityConstraint
Sets up entity constraint information.
Definition: umlentityconstraint.h:22
UMLEntity
Non-graphical Information for an Entity.
Definition: umlentity.h:30
UMLEnum
Non-graphical Information for an Enum.
Definition: umlenum.h:24
UMLEnumLiteral
Sets up attribute information.
Definition: umlenumliteral.h:21
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: umlfolder.h:30
UMLForeignKeyConstraint
Sets up Foreign Key entity constraint information.
Definition: umlforeignkeyconstraint.h:28
UMLInstanceAttribute
Sets up instanceattribute information.
Definition: umlinstanceattribute.h:34
UMLInstance
Non-graphical Information for an Instance.
Definition: umlinstance.h:43
UMLNode
Non-graphical information for a Node.
Definition: umlnode.h:22
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::isUMLEntityAttribute
bool isUMLEntityAttribute() const
Definition: umlobject.h:206
UMLObject::m_nId
Uml::ID::Type m_nId
object's id
Definition: umlobject.h:304
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1433
UMLObject::asUMLCheckConstraint
UMLCheckConstraint * asUMLCheckConstraint()
Definition: umlobject.cpp:1421
UMLObject::tags
QStringList & tags()
Definition: umlobject.cpp:565
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::asUMLUseCase
UMLUseCase * asUMLUseCase()
Definition: umlobject.cpp:1444
UMLObject::asUMLEnumLiteral
UMLEnumLiteral * asUMLEnumLiteral()
Definition: umlobject.cpp:1430
UMLObject::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition: umlobject.cpp:141
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1438
UMLObject::package
QString package(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:582
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:421
UMLObject::isUMLNode
bool isUMLNode() const
Definition: umlobject.h:214
UMLObject::isUMLPackage
bool isUMLPackage() const
Definition: umlobject.h:217
UMLObject::isUMLComponent
bool isUMLComponent() const
Definition: umlobject.h:203
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:676
UMLObject::asUMLClassifierSet
UMLClassifierSet * asUMLClassifierSet()
UMLObject::m_SecondaryFallback
QString m_SecondaryFallback
Definition: umlobject.h:320
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1424
UMLObject::resolveRef
virtual bool resolveRef()
Definition: umlobject.cpp:744
UMLObject::isUMLUseCase
bool isUMLUseCase() const
Definition: umlobject.h:223
UMLObject::acceptAssociationType
virtual bool acceptAssociationType(Uml::AssociationType::Enum) const
Definition: umlobject.cpp:169
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:198
UMLObject::clone
virtual UMLObject * clone() const
Definition: umlobject.cpp:334
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:344
UMLObject::save1end
void save1end(QXmlStreamWriter &writer)
Definition: umlobject.cpp:937
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:310
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1431
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:381
UMLObject::toI18nString
static QString toI18nString(ObjectType t)
Definition: umlobject.cpp:1224
UMLObject::operator==
bool operator==(const UMLObject &rhs) const
Definition: umlobject.cpp:251
UMLObject::m_bCreationWasSignalled
bool m_bCreationWasSignalled
auxiliary to maybeSignalObjectCreated()
Definition: umlobject.h:312
UMLObject::operator<<
friend QDebug operator<<(QDebug out, const UMLObject &obj)
Definition: umlobject.cpp:1382
UMLObject::m_d
UMLObjectPrivate * m_d
private data
Definition: umlobject.h:331
UMLObject::isUMLEnumLiteral
bool isUMLEnumLiteral() const
Definition: umlobject.h:209
UMLObject::setVisibilityCmd
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:482
UMLObject::asUMLEntityAttribute
UMLEntityAttribute * asUMLEntityAttribute()
Definition: umlobject.cpp:1427
UMLObject::m_bAbstract
bool m_bAbstract
state of whether the object is abstract or not
Definition: umlobject.h:310
UMLObject::asUMLNode
UMLNode * asUMLNode()
Definition: umlobject.cpp:1435
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1417
UMLObject::asUMLActor
UMLActor * asUMLActor()
Definition: umlobject.cpp:1415
UMLObject::asUMLUniqueConstraint
UMLUniqueConstraint * asUMLUniqueConstraint()
Definition: umlobject.cpp:1443
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:179
UMLObject::loadStereotype
bool loadStereotype(QDomElement &element)
Definition: umlobject.cpp:986
UMLObject::toIcon
static Icon_Utils::IconType toIcon(ObjectType t)
Definition: umlobject.cpp:1291
UMLObject::m_Doc
QString m_Doc
object's documentation
Definition: umlobject.h:305
UMLObject::isUMLDatatype
bool isUMLDatatype() const
Definition: umlobject.h:204
UMLObject::hasDoc
bool hasDoc() const
Definition: umlobject.cpp:441
UMLObject::umlStereotype
UMLStereotype * umlStereotype() const
Definition: umlobject.cpp:547
UMLObject::setSecondaryId
void setSecondaryId(const QString &id)
Definition: umlobject.cpp:694
UMLObject::asUMLClassifierSet
const UMLClassifierSet * asUMLClassifierSet() const
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1437
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:651
UMLObject::setUMLStereotype
void setUMLStereotype(UMLStereotype *stereo)
Definition: umlobject.cpp:497
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1426
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:223
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:555
UMLObject::isUMLRole
bool isUMLRole() const
Definition: umlobject.h:219
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:531
UMLObject::isUMLCategory
bool isUMLCategory() const
Definition: umlobject.h:200
UMLObject::save1
void save1(QXmlStreamWriter &writer, const QString &type, const QString &tag=QString())
Definition: umlobject.cpp:861
UMLObject::isUMLStereotype
bool isUMLStereotype() const
Definition: umlobject.h:220
UMLObject::~UMLObject
virtual ~UMLObject()
Definition: umlobject.cpp:106
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1425
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:362
UMLObject::modified
void modified()
UMLObject::isUMLActor
bool isUMLActor() const
Definition: umlobject.h:195
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:431
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:620
UMLObject::setSecondaryFallback
void setSecondaryFallback(const QString &id)
Definition: umlobject.cpp:712
UMLObject::secondaryId
QString secondaryId() const
Definition: umlobject.cpp:684
UMLObject::isUMLPort
bool isUMLPort() const
Definition: umlobject.h:218
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:451
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:524
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1440
UMLObject::isUMLEntityConstraint
bool isUMLEntityConstraint() const
Definition: umlobject.h:207
UMLObject::isUMLUniqueConstraint
bool isUMLUniqueConstraint() const
Definition: umlobject.h:222
UMLObject::setBaseType
virtual void setBaseType(ObjectType ot)
Definition: umlobject.cpp:411
UMLObject::asUMLTemplate
UMLTemplate * asUMLTemplate()
Definition: umlobject.cpp:1442
UMLObject::setAbstract
void setAbstract(bool bAbstract)
Definition: umlobject.cpp:352
UMLObject::isUMLFolder
bool isUMLFolder() const
Definition: umlobject.h:210
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:313
UMLObject::isUMLOperation
bool isUMLOperation() const
Definition: umlobject.h:216
UMLObject::m_TaggedValues
QStringList m_TaggedValues
Definition: umlobject.h:326
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:188
UMLObject::init
void init()
Definition: umlobject.cpp:122
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1420
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:462
UMLObject::isUMLInstanceAttribute
bool isUMLInstanceAttribute() const
Definition: umlobject.h:213
UMLObject::m_pStereotype
QPointer< UMLStereotype > m_pStereotype
stereotype of the object if applicable
Definition: umlobject.h:306
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLObject::asUMLInstanceAttribute
UMLInstanceAttribute * asUMLInstanceAttribute()
Definition: umlobject.cpp:1434
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:393
UMLObject::asUMLObject
UMLObject * asUMLObject()
Definition: umlobject.cpp:1436
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:317
UMLObject::asUMLStereotype
UMLStereotype * asUMLStereotype()
Definition: umlobject.cpp:1441
UMLObject::maybeSignalObjectCreated
void maybeSignalObjectCreated()
Definition: umlobject.cpp:721
UMLObject::isUMLTemplate
bool isUMLTemplate() const
Definition: umlobject.h:221
UMLObject::baseTypeStr
QLatin1String baseTypeStr() const
Definition: umlobject.cpp:401
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1439
UMLObject::m_name
QString m_name
objects name
Definition: umlobject.h:307
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1418
UMLObject::asUMLEntityConstraint
UMLEntityConstraint * asUMLEntityConstraint()
Definition: umlobject.cpp:1428
UMLObject::asUMLCanvasObject
UMLCanvasObject * asUMLCanvasObject()
Definition: umlobject.cpp:1419
UMLObject::isUMLCheckConstraint
bool isUMLCheckConstraint() const
Definition: umlobject.h:201
UMLObject::setStatic
void setStatic(bool bStatic)
Definition: umlobject.cpp:370
UMLObject::setUMLParent
void setUMLParent(UMLObject *parent)
Definition: umlobject.cpp:663
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1422
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1429
UMLObject::setVisibility
void setVisibility(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:472
UMLObject::asUMLForeignKeyConstraint
UMLForeignKeyConstraint * asUMLForeignKeyConstraint()
Definition: umlobject.cpp:1432
UMLObject::loadFromXMI
virtual bool loadFromXMI(QDomElement &element)
Definition: umlobject.cpp:1027
UMLObject::isUMLForeignKeyConstraint
bool isUMLForeignKeyConstraint() const
Definition: umlobject.h:211
UMLObject::packages
UMLPackageList packages(bool includeRoot=false) const
Definition: umlobject.cpp:602
UMLObject::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: umlobject.cpp:840
UMLObject::isUMLArtifact
bool isUMLArtifact() const
Definition: umlobject.h:196
UMLObject::isUMLClassifier
bool isUMLClassifier() const
Definition: umlobject.h:202
UMLObject::isUMLInstance
bool isUMLInstance() const
Definition: umlobject.h:212
UMLObject::m_visibility
Uml::Visibility::Enum m_visibility
objects visibility
Definition: umlobject.h:309
UMLObject::load1
virtual bool load1(QDomElement &element)
Definition: umlobject.cpp:973
UMLObject::isUMLEnum
bool isUMLEnum() const
Definition: umlobject.h:208
UMLObject::m_bStatic
bool m_bStatic
flag for instance scope
Definition: umlobject.h:311
UMLObject::isUMLAssociation
bool isUMLAssociation() const
Definition: umlobject.h:197
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1214
UMLObject::isUMLEntity
bool isUMLEntity() const
Definition: umlobject.h:205
UMLObject::secondaryFallback
QString secondaryFallback() const
Definition: umlobject.cpp:703
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1416
UMLObject::isUMLObject
bool isUMLObject() const
Definition: umlobject.h:215
UMLObject::isUMLAttribute
bool isUMLAttribute() const
Definition: umlobject.h:198
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:308
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1423
UMLObjectPrivate
Definition: umlobjectprivate.h:10
UMLOperation
Definition: umloperation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
UMLPort
Non-graphical information for a Port.
Definition: umlport.h:22
UMLRole
Definition: umlrole.h:20
UMLStereotype
Sets up stereotype information.
Definition: umlstereotype.h:36
UMLTemplate
Sets up template information.
Definition: umltemplate.h:22
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: umluniqueconstraint.h:24
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: umlusecase.h:20
icon_utils.h
Icon_Utils::IconType
IconType
Definition: icon_utils.h:25
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
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(UMLObject *)
umlpackagelist.h
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:13