umbrello: umbrello/uml1model/umlobject.h Source File

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