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 * 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
25 class UMLActor;
26 class UMLArtifact;
27 class UMLAssociation;
28 class UMLAttribute;
29 class UMLCanvasObject;
30 class UMLCategory;
31 class UMLCheckConstraint;
32 class UMLClassifier;
33 class UMLClassifierListItem;
34 class UMLClassifierSet;
35 class UMLComponent;
36 class UMLDatatype;
37 class UMLEntity;
38 class UMLEntityAttribute;
39 class UMLEntityConstraint;
40 class UMLEnum;
41 class UMLEnumLiteral;
42 class UMLFolder;
43 class UMLForeignKeyConstraint;
44 class UMLInstance;
45 class UMLInstanceAttribute;
46 class UMLNode;
47 class UMLOperation;
48 class UMLPackage;
49 class UMLPort;
50 class UMLRole;
51 class UMLStereotype;
52 class UMLTemplate;
53 class UMLUniqueConstraint;
54 class UMLUseCase;
55 class UMLObjectPrivate;
56
73 class UMLObject : public QObject
74 {
75 Q_OBJECT
76 Q_ENUMS(ObjectType)
77
78 public:
79 enum ObjectType
80 {
81 ot_Unknown = -1,
82 ot_UMLObject = 100,
83 ot_Actor,
84 ot_UseCase,
85 ot_Package,
86 ot_Interface,
87 ot_Datatype,
88 ot_Enum,
89 ot_Class,
90 ot_Instance,
91 ot_Association,
92 ot_Attribute,
93 ot_Operation,
94 ot_EnumLiteral,
95 ot_Template,
96 ot_Component,
97 ot_Artifact,
98 ot_Node,
99 ot_Stereotype,
100 ot_Role,
101 ot_Entity,
102 ot_EntityAttribute,
103 ot_Folder,
104 ot_EntityConstraint,
105 ot_UniqueConstraint,
106 ot_ForeignKeyConstraint,
107 ot_CheckConstraint,
108 ot_Category,
109 ot_Port,
110 ot_InstanceAttribute,
111 ot_SubSystem
112 };
113
114 static QString toString(ObjectType ot);
115 static QString toI18nString(ObjectType t);
116 static Icon_Utils::IconType toIcon(ObjectType t);
117
118 explicit UMLObject(const UMLObject& other);
119 explicit UMLObject(UMLObject* parent, const QString& name, Uml::ID::Type id = Uml::ID::None);
120 explicit UMLObject(UMLObject* parent);
121 explicit UMLObject(const QString& name = QString(), Uml::ID::Type id = Uml::ID::None);
122 virtual ~UMLObject();
123
124 bool operator==(const UMLObject & rhs) const;
125
126 virtual void copyInto(UMLObject *lhs) const;
127
128 virtual UMLObject* clone() const;
129
130 virtual void setBaseType(ObjectType ot);
131 ObjectType baseType() const;
132 QLatin1String baseTypeStr() const;
133
134 virtual void setID(Uml::ID::Type NewID);
135 virtual Uml::ID::Type id() const;
136
137 QString doc() const;
138 bool hasDoc() const;
139 void setDoc(const QString &d);
140
141 void setVisibility(Uml::Visibility::Enum visibility);
142 void setVisibilityCmd(Uml::Visibility::Enum visibility);
143 Uml::Visibility::Enum visibility() const;
144
145 void setStereotype(const QString &_name);
146 void setStereotypeCmd(const QString &_name);
147 QString stereotype(bool includeAdornments = false) const;
148
149 void setUMLStereotype(UMLStereotype *stereo);
150 UMLStereotype *umlStereotype();
151
152 QString package(const QString& separator = QString(),
153 bool includeRoot = false);
154
155 UMLPackageList packages(bool includeRoot = false) const;
156
157 bool setUMLPackage(UMLPackage* pPkg);
158 UMLPackage* umlPackage() const;
159
160 void setUMLParent(UMLObject* parent);
161 UMLObject* umlParent() const;
162
163 virtual void setName(const QString &strName);
164 virtual void setNameCmd(const QString &strName) ;
165 QString name() const;
166
167 virtual QString fullyQualifiedName(const QString& separator = QString(),
168 bool includeRoot = false) const;
169
170 void setAbstract(bool bAbstract);
171 bool isAbstract() const;
172
173 virtual bool showPropertiesDialog(QWidget* parent = 0);
174
175 virtual bool resolveRef();
176
177 virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
178 virtual bool loadFromXMI1(QDomElement & element);
179
180 bool loadStereotype(QDomElement & element);
181
182 void setStatic(bool bStatic);
183 bool isStatic() const;
184
185 virtual bool acceptAssociationType(Uml::AssociationType::Enum); //:TODO: check if this is really needed here
186
187 void setSecondaryId(const QString& id);
188 QString secondaryId() const;
189
190 void setSecondaryFallback(const QString& id);
191 QString secondaryFallback() const;
192
193 QDomElement save1(const QString &tag, QDomDocument & qDoc);
194
195 friend QDebug operator<< (QDebug out, const UMLObject& obj);
196
197 bool isUMLActor() { return baseType() == ot_Actor; }
198 bool isUMLArtifact() { return baseType() == ot_Artifact; }
199 bool isUMLAssociation() { return baseType() == ot_Association; }
200 bool isUMLAttribute() { return baseType() == ot_Attribute; }
201 //bool isUMLCanvasObject() { return baseType() == ot_CanvasObject; }
202 bool isUMLCategory() { return baseType() == ot_Category; }
203 bool isUMLCheckConstraint() { return baseType() == ot_CheckConstraint; }
204 bool isUMLClassifier() { return baseType() == ot_Class; }
205 bool isUMLComponent() { return baseType() == ot_Component; }
206 bool isUMLDatatype() { return baseType() == ot_Datatype; }
207 bool isUMLEntity() { return baseType() == ot_Entity; }
208 bool isUMLEntityAttribute() { return baseType() == ot_EntityAttribute; }
209 bool isUMLEntityConstraint() { return baseType() == ot_EntityConstraint; }
210 bool isUMLEnum() { return baseType() == ot_Enum; }
211 bool isUMLEnumLiteral() { return baseType() == ot_EnumLiteral; }
212 bool isUMLFolder() { return baseType() == ot_Folder; }
213 bool isUMLForeignKeyConstraint() { return baseType() == ot_ForeignKeyConstraint; }
214 bool isUMLInstance() { return baseType() == ot_Instance; }
215 bool isUMLInstanceAttribute() { return baseType() == ot_InstanceAttribute; }
216 bool isUMLNode() { return baseType() == ot_Node; }
217 bool isUMLObject() { return baseType() == ot_UMLObject; }
218 bool isUMLOperation() { return baseType() == ot_Operation; }
219 bool isUMLPackage() { return baseType() == ot_Package; }
220 bool isUMLPort() { return baseType() == ot_Port; }
221 bool isUMLRole() { return baseType() == ot_Role; }
222 bool isUMLStereotype() { return baseType() == ot_Stereotype; }
223 bool isUMLTemplate() { return baseType() == ot_Template; }
224 bool isUMLUniqueConstraint() { return baseType() == ot_UniqueConstraint; }
225 bool isUMLUseCase() { return baseType() == ot_UseCase; }
226
227 UMLActor* asUMLActor();
228 UMLArtifact* asUMLArtifact();
229 UMLAssociation* asUMLAssociation();
230 UMLAttribute* asUMLAttribute();
231 UMLCanvasObject* asUMLCanvasObject();
232 UMLCategory* asUMLCategory();
233 UMLCheckConstraint* asUMLCheckConstraint();
234 UMLClassifier* asUMLClassifier();
235 UMLClassifierListItem* asUMLClassifierListItem();
236 UMLClassifierSet* asUMLClassifierSet();
237 UMLComponent* asUMLComponent();
238 UMLDatatype* asUMLDatatype();
239 UMLEntity* asUMLEntity();
240 UMLEntityAttribute* asUMLEntityAttribute();
241 UMLEntityConstraint* asUMLEntityConstraint();
242 UMLEnum* asUMLEnum();
243 UMLEnumLiteral* asUMLEnumLiteral();
244 UMLFolder* asUMLFolder();
245 UMLForeignKeyConstraint* asUMLForeignKeyConstraint();
246 UMLInstance* asUMLInstance();
247 UMLInstanceAttribute* asUMLInstanceAttribute();
248 UMLNode* asUMLNode();
249 UMLObject* asUMLObject();
250 UMLOperation* asUMLOperation();
251 UMLPackage* asUMLPackage();
252 UMLPort* asUMLPort();
253 UMLRole* asUMLRole();
254 UMLStereotype* asUMLStereotype();
255 UMLTemplate* asUMLTemplate();
256 UMLUniqueConstraint* asUMLUniqueConstraint();
257 UMLUseCase* asUMLUseCase();
258
259 public slots:
260 void emitModified();
261
262 signals:
263 void modified();
264
265 protected:
266 void init();
267
268 void maybeSignalObjectCreated();
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;
283 QString m_SecondaryId;
287 QString m_SecondaryFallback;
290 UMLObjectPrivate *m_d;
296 friend class ObjectsModel;
297 };
298
299 #endif
UMLObject::package
QString package(const QString &separator=QString(), bool includeRoot=false)
Definition: umlobject.cpp:578
umlrole.h
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:35
UMLObject::asUMLNode
UMLNode * asUMLNode()
Definition: umlobject.cpp:1322
UMLDoc::objectsModel
ObjectsModel * objectsModel()
Definition: umldoc.cpp:2599
category.h
UMLObject::isUMLEnum
bool isUMLEnum()
Definition: umlobject.h:210
UMLObject::~UMLObject
virtual ~UMLObject()
Definition: umlobject.cpp:110
datatype.h
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
template.h
instance.h
umlpackagelist.h
UMLObject::asUMLEnumLiteral
UMLEnumLiteral * asUMLEnumLiteral()
Definition: umlobject.cpp:1317
UMLObject::m_bInPaste
bool m_bInPaste
caller sets this true when in paste operation
Definition: umlobject.h:280
UMLObject::asUMLUseCase
UMLUseCase * asUMLUseCase()
Definition: umlobject.cpp:1331
Uml::CmdRenameUMLObject
Definition: cmdrenameumlobject.h:21
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
UMLObject::ot_EntityConstraint
@ ot_EntityConstraint
Definition: umlobject.h:104
UMLObject::toI18nString
static QString toI18nString(ObjectType t)
Definition: umlobject.cpp:1135
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1311
port.h
checkconstraint.h
UMLDoc::datatypeFolder
UMLFolder * datatypeFolder() const
Definition: umldoc.cpp:2988
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
instanceattribute.h
UMLInstance
Non-graphical Information for an Instance.
Definition: instance.h:27
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1326
UMLObject::ot_CheckConstraint
@ ot_CheckConstraint
Definition: umlobject.h:107
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:28
docwindow.h
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1310
UMLObject::asUMLEntityConstraint
UMLEntityConstraint * asUMLEntityConstraint()
Definition: umlobject.cpp:1315
UMLObject::isUMLOperation
bool isUMLOperation()
Definition: umlobject.h:218
stereotype.h
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:34
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
UMLStereotype::incrRefCount
void incrRefCount()
Definition: stereotype.cpp:123
entity.h
objectsmodel.h
Import_Utils::newUMLObjectWasCreated
bool newUMLObjectWasCreated()
Definition: import_utils.cpp:113
component.h
UMLObject::acceptAssociationType
virtual bool acceptAssociationType(Uml::AssociationType::Enum)
Definition: umlobject.cpp:173
UMLObject::setStatic
void setStatic(bool bStatic)
Definition: umlobject.cpp:374
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator()
Definition: uml.cpp:2540
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1305
UMLObject::ot_ForeignKeyConstraint
@ ot_ForeignKeyConstraint
Definition: umlobject.h:106
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:26
UMLUseCase
Information for a non-graphical UML UseCase.
Definition: usecase.h:25
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
UMLObject::setSecondaryId
void setSecondaryId(const QString &id)
Definition: umlobject.cpp:689
UMLObject::resolveRef
virtual bool resolveRef()
Definition: umlobject.cpp:739
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
UMLObject::setVisibilityCmd
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:486
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
foreignkeyconstraint.h
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1320
UMLObject::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlobject.cpp:145
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLForeignKeyConstraint
Sets up Foreign Key entity constraint information.
Definition: foreignkeyconstraint.h:33
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:183
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
artifact.h
UMLObject::isUMLClassifier
bool isUMLClassifier()
Definition: umlobject.h:204
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:286
UMLClassifierSet
holds set of classifiers for recursive loop detection
Definition: classifier.cpp:50
object_factory.h
UMLEnumLiteral
Sets up attribute information.
Definition: enumliteral.h:26
Icon_Utils::it_Folder
@ it_Folder
Definition: icon_utils.h:51
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
UMLObjectPrivate
Definition: umlobjectprivate.h:14
ObjectsModel::add
bool add(UMLObject *o)
Definition: objectsmodel.cpp:35
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:385
umlcanvasobject.h
association.h
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
cmds.h
DocWindow::updateDocumentation
void updateDocumentation(bool clear=false, bool startup=false)
Definition: docwindow.cpp:273
UMLApp::shuttingDown
static bool shuttingDown()
Definition: uml.cpp:2945
Import_Utils::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:178
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1307
UMLObjectPrivate::isSaved
bool isSaved
Definition: umlobjectprivate.h:17
UMLObject::m_visibility
Uml::Visibility::Enum m_visibility
objects visibility
Definition: umlobject.h:277
UMLEntityConstraint
Sets up entity constraint information.
Definition: entityconstraint.h:27
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:366
UMLObject::operator==
bool operator==(const UMLObject &rhs) const
Definition: umlobject.cpp:255
UMLObject::isUMLPort
bool isUMLPort()
Definition: umlobject.h:220
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1304
UMLObject::isUMLEntity
bool isUMLEntity()
Definition: umlobject.h:207
Model_Utils::getXmiId
QString getXmiId(QDomElement element)
Definition: model_utils.cpp:747
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject::asUMLActor
UMLActor * asUMLActor()
Definition: umlobject.cpp:1302
Icon_Utils::it_Port
@ it_Port
Definition: icon_utils.h:93
UMLObject::isUMLEntityConstraint
bool isUMLEntityConstraint()
Definition: umlobject.h:209
Icon_Utils::it_Class
@ it_Class
Definition: icon_utils.h:85
ENUM_NAME
#define ENUM_NAME(o, e, v)
Definition: debug_utils.h:143
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
Icon_Utils::it_Enum
@ it_Enum
Definition: icon_utils.h:100
UMLObject::isUMLInstanceAttribute
bool isUMLInstanceAttribute()
Definition: umlobject.h:215
model_utils.h
ClassPropertiesDialog
Definition: classpropertiesdialog.h:35
UMLPort
Non-graphical information for a Port.
Definition: port.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::isUMLCheckConstraint
bool isUMLCheckConstraint()
Definition: umlobject.h:203
operator<<
QDebug operator<<(QDebug out, const UMLObject &obj)
Definition: umlobject.cpp:1268
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
UMLObject::operator<<
friend QDebug operator<<(QDebug out, const UMLObject &obj)
Definition: umlobject.cpp:1268
Icon_Utils::it_Node
@ it_Node
Definition: icon_utils.h:94
import_utils.h
UMLObject::asUMLEntityAttribute
UMLEntityAttribute * asUMLEntityAttribute()
Definition: umlobject.cpp:1314
UMLRole
Definition: umlrole.h:25
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:110
UMLDoc::loading
bool loading() const
Definition: umldoc.cpp:1572
UMLObject::asUMLCheckConstraint
UMLCheckConstraint * asUMLCheckConstraint()
Definition: umlobject.cpp:1308
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1316
Icon_Utils::it_Datatype
@ it_Datatype
Definition: icon_utils.h:99
ObjectsModel
Definition: objectsmodel.h:21
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:282
entityconstraint.h
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1312
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1303
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1318
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:94
UMLDoc::signalUMLObjectCreated
void signalUMLObjectCreated(UMLObject *o)
Definition: umldoc.cpp:1985
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1313
UMLDoc::closing
bool closing() const
Definition: umldoc.cpp:1607
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLDoc::findOrCreateStereotype
UMLStereotype * findOrCreateStereotype(const QString &name)
Definition: umldoc.cpp:1327
Icon_Utils::it_Artifact
@ it_Artifact
Definition: icon_utils.h:95
UMLObject::hasDoc
bool hasDoc() const
Definition: umlobject.cpp:445
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:41
UMLObject::isUMLEntityAttribute
bool isUMLEntityAttribute()
Definition: umlobject.h:208
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
Icon_Utils::it_Entity
@ it_Entity
Definition: icon_utils.h:101
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:535
UMLObject::m_name
QString m_name
objects name
Definition: umlobject.h:275
UMLObject::isUMLUniqueConstraint
bool isUMLUniqueConstraint()
Definition: umlobject.h:224
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
Icon_Utils::it_Home
@ it_Home
Definition: icon_utils.h:48
UMLObject::m_pStereotype
QPointer< UMLStereotype > m_pStereotype
stereotype of the object if applicable
Definition: umlobject.h:274
UMLObject::isUMLObject
bool isUMLObject()
Definition: umlobject.h:217
node.h
ObjectsModel::remove
bool remove(UMLObject *o)
Definition: objectsmodel.cpp:46
UMLObject::ot_Stereotype
@ ot_Stereotype
Definition: umlobject.h:99
UMLObject::toIcon
static Icon_Utils::IconType toIcon(ObjectType t)
Definition: umlobject.cpp:1202
UMLObject::setUMLParent
void setUMLParent(UMLObject *parent)
Definition: umlobject.cpp:658
UMLObject::asUMLStereotype
UMLStereotype * asUMLStereotype()
Definition: umlobject.cpp:1328
entityattribute.h
UMLActor
Information for a non-graphical UML Actor.
Definition: actor.h:28
UMLDoc::removeStereotype
void removeStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1364
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
uniqueid.h
UMLObject::isUMLUseCase
bool isUMLUseCase()
Definition: umlobject.h:225
UMLObject::asUMLCanvasObject
UMLCanvasObject * asUMLCanvasObject()
Definition: umlobject.cpp:1306
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
UMLApp::docWindow
DocWindow * docWindow() const
Definition: uml.cpp:1895
attribute.h
UMLObject::ot_Role
@ ot_Role
Definition: umlobject.h:100
Model_Utils::uniqObjectName
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Definition: model_utils.cpp:526
UMLComponent
Non-graphical information for a Component.
Definition: component.h:28
UMLObject::isUMLTemplate
bool isUMLTemplate()
Definition: umlobject.h:223
Icon_Utils::it_UseCase
@ it_UseCase
Definition: icon_utils.h:103
uWarning
#define uWarning()
Definition: debug_utils.h:124
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:107
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
DocWindow
Definition: docwindow.h:30
UMLObject::asUMLRole
UMLRole * asUMLRole()
Definition: umlobject.cpp:1327
Model_Utils::isCommonDataType
bool isCommonDataType(QString type)
Definition: model_utils.cpp:786
UMLObject::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlobject.cpp:834
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:845
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
UMLObject::asUMLForeignKeyConstraint
UMLForeignKeyConstraint * asUMLForeignKeyConstraint()
Definition: umlobject.cpp:1319
folder.h
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:98
i18n
#define i18n
Definition: main.cpp:39
UMLObject::asUMLObject
UMLObject * asUMLObject()
Definition: umlobject.cpp:1323
UMLObject::asUMLInstanceAttribute
UMLInstanceAttribute * asUMLInstanceAttribute()
Definition: umlobject.cpp:1321
UMLObject::ot_SubSystem
@ ot_SubSystem
no real object type
Definition: umlobject.h:111
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
UMLObject::m_bAbstract
bool m_bAbstract
state of whether the object is abstract or not
Definition: umlobject.h:278
Uml::CmdSetVisibility
Definition: cmdsetvisibility.h:19
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:102
UMLObject::isUMLInstance
bool isUMLInstance()
Definition: umlobject.h:214
basictypes.h
Icon_Utils::it_Association
@ it_Association
Definition: icon_utils.h:105
UMLObject::packages
UMLPackageList packages(bool includeRoot=false) const
Definition: umlobject.cpp:598
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLObject::isUMLForeignKeyConstraint
bool isUMLForeignKeyConstraint()
Definition: umlobject.h:213
UMLObject::modified
void modified()
Definition: moc_umlobject.cpp:217
UMLObject::asUMLClassifierSet
UMLClassifierSet * asUMLClassifierSet()
UMLObject::secondaryId
QString secondaryId() const
Definition: umlobject.cpp:679
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:528
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1125
UMLObject::ot_UniqueConstraint
@ ot_UniqueConstraint
Definition: umlobject.h:105
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
umllistview.h
UMLObject::setAbstract
void setAbstract(bool bAbstract)
Definition: umlobject.cpp:356
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
UMLObject::isUMLNode
bool isUMLNode()
Definition: umlobject.h:216
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
visibility
Definition: visibility.py:1
UMLDoc
Definition: umldoc.h:75
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
UMLObject::setBaseType
virtual void setBaseType(ObjectType ot)
Definition: umlobject.cpp:415
UMLObject::isUMLAttribute
bool isUMLAttribute()
Definition: umlobject.h:200
UMLObject::isUMLFolder
bool isUMLFolder()
Definition: umlobject.h:212
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
Uml
Definition: basictypes.cpp:37
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:17
UMLObject::load1
virtual bool load1(QDomElement &element)
Definition: umlobject.cpp:901
UMLObject::m_bCreationWasSignalled
bool m_bCreationWasSignalled
auxiliary to maybeSignalObjectCreated()
Definition: umlobject.h:281
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3582
UMLObject::m_bStatic
bool m_bStatic
flag for instance scope
Definition: umlobject.h:279
UMLObject::isUMLAssociation
bool isUMLAssociation()
Definition: umlobject.h:199
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:455
UMLObject::m_nId
Uml::ID::Type m_nId
object's id
Definition: umlobject.h:272
Icon_Utils::it_Component
@ it_Component
Definition: icon_utils.h:92
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition: basictypes.h:47
DocWindow::showDocumentation
void showDocumentation(UMLObject *object, bool overwrite=false)
Definition: docwindow.cpp:130
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
Icon_Utils::it_Actor
@ it_Actor
Definition: icon_utils.h:102
UMLObject::asUMLTemplate
UMLTemplate * asUMLTemplate()
Definition: umlobject.cpp:1329
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLObject::m_SecondaryFallback
QString m_SecondaryFallback
Definition: umlobject.h:289
UMLObject::asUMLUniqueConstraint
UMLUniqueConstraint * asUMLUniqueConstraint()
Definition: umlobject.cpp:1330
UMLObject::secondaryFallback
QString secondaryFallback() const
Definition: umlobject.cpp:698
UMLOperation
Definition: operation.h:25
uniqueconstraint.h
UMLObject::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: umlobject.cpp:955
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
Icon_Utils::IconType
IconType
Definition: icon_utils.h:47
UMLObject::isUMLActor
bool isUMLActor()
Definition: umlobject.h:197
uml.h
Icon_Utils::it_Interface
@ it_Interface
Definition: icon_utils.h:96
UMLObject::baseTypeStr
QLatin1String baseTypeStr() const
Definition: umlobject.cpp:405
UMLCheckConstraint
Sets up Check Constraint information for UMLEntities.
Definition: checkconstraint.h:26
enumliteral.h
UMLInstanceAttribute
Sets up instanceattribute information.
Definition: instanceattribute.h:26
UMLObject::m_Doc
QString m_Doc
object's documentation
Definition: umlobject.h:273
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLObject::isUMLComponent
bool isUMLComponent()
Definition: umlobject.h:205
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:33
icon_utils.h
UMLDoc::findStereotypeById
UMLStereotype * findStereotypeById(Uml::ID::Type id)
Definition: umldoc.cpp:1341
usecase.h
UMLObject::isUMLDatatype
bool isUMLDatatype()
Definition: umlobject.h:206
UMLObject::ot_Unknown
@ ot_Unknown
Definition: umlobject.h:81
UMLObject::UMLObject
UMLObject(const UMLObject &other)
Definition: umlobject.cpp:48
actor.h
Icon_Utils::it_Package
@ it_Package
Definition: icon_utils.h:90
umlobject.h
UMLObject::setVisibility
void setVisibility(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:476
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:95
UMLObject::isUMLEnumLiteral
bool isUMLEnumLiteral()
Definition: umlobject.h:211
UMLObject::m_d
UMLObjectPrivate * m_d
private data
Definition: umlobject.h:295
UMLObject::umlStereotype
UMLStereotype * umlStereotype()
Definition: umlobject.cpp:551
classpropertiesdialog.h
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:202
UMLObject::setUMLStereotype
void setUMLStereotype(UMLStereotype *stereo)
Definition: umlobject.cpp:501
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
umlobjectprivate.h
UMLTemplate
Sets up template information.
Definition: template.h:27
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:28
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
UMLObject::init
void init()
Definition: umlobject.cpp:126
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
UMLObject::maybeSignalObjectCreated
void maybeSignalObjectCreated()
Definition: umlobject.cpp:716
package.h
UMLEntityAttribute
Sets up entityattribute information.
Definition: entityattribute.h:26
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:559
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3438
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:103
Icon_Utils::it_Instance
@ it_Instance
Definition: icon_utils.h:238
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3220
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLObject::isUMLArtifact
bool isUMLArtifact()
Definition: umlobject.h:198
UMLObject::isUMLPackage
bool isUMLPackage()
Definition: umlobject.h:219
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:29
UMLObject::isUMLStereotype
bool isUMLStereotype()
Definition: umlobject.h:222
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
UMLObject::setSecondaryFallback
void setSecondaryFallback(const QString &id)
Definition: umlobject.cpp:707
UMLObject::isUMLCategory
bool isUMLCategory()
Definition: umlobject.h:202
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: uniqueconstraint.h:29
UMLNode
Non-graphical information for a Node.
Definition: node.h:27
UMLObject::clone
virtual UMLObject * clone() const
Definition: umlobject.cpp:338
UMLDoc::modelID
Uml::ID::Type modelID() const
Definition: umldoc.cpp:2052
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:108
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
Uml::CmdSetStereotype
Definition: cmdsetstereotype.h:19
enum.h
UMLObject::loadStereotype
bool loadStereotype(QDomElement &element)
Definition: umlobject.cpp:914
UMLObject::isUMLRole
bool isUMLRole()
Definition: umlobject.h:221