umbrello  2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
object_factory.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) 2006-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef OBJECT_FACTORY__H
12 #define OBJECT_FACTORY__H
13 
14 #include "umlobject.h"
15 
16 #include <QString>
17 
18 class UMLPackage;
19 class UMLClassifier;
21 class UMLAttribute;
22 class UMLOperation;
23 
24 namespace Object_Factory {
25 
27  const QString &n = QString(),
28  UMLPackage *parentPkg = 0,
29  bool solicitNewName = true);
30 
32  const QString &n,
33  UMLPackage *parentPkg,
34  bool undoable = true);
35 
38  const QString& name = QString());
39 
40 UMLAttribute *createAttribute(UMLObject *parent, const QString& name,
41  UMLObject *type = 0);
42 
43 UMLOperation *createOperation(UMLClassifier *parent, const QString& name);
44 
45 void assignUniqueIdOnCreation(bool yesno);
47 
48 UMLObject* makeObjectFromXMI(const QString& xmiTag,
49  const QString& stereoID = QString());
50 
51 }
52 
53 #endif
Sets up attribute information.
Definition: attribute.h:28
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
The base class for UML objects.
Definition: umlobject.h:74
ObjectType
Definition: umlobject.h:80
Definition: operation.h:25
Non-graphical information for a Package.
Definition: package.h:33
Definition: object_factory.cpp:58
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition: object_factory.cpp:95
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
UMLOperation * createOperation(UMLClassifier *parent, const QString &name)
Definition: object_factory.cpp:285
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition: object_factory.cpp:374
void assignUniqueIdOnCreation(bool yesno)
Definition: object_factory.cpp:69
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Definition: object_factory.cpp:300
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:275