umbrello: umbrello/object_factory.h Source File

umbrello 2.32.1 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;
20 class UMLClassifierListItem;
21 class UMLAttribute;
22 class UMLOperation;
23
24 namespace Object_Factory {
25
26 UMLObject* createUMLObject(UMLObject::ObjectType type,
27 const QString &n = QString(),
28 UMLPackage *parentPkg = 0,
29 bool solicitNewName = true);
30
31 UMLObject* createNewUMLObject(UMLObject::ObjectType type,
32 const QString &n,
33 UMLPackage *parentPkg,
34 bool undoable = true);
35
36 UMLClassifierListItem* createChildObject(UMLClassifier *parent,
37 UMLObject::ObjectType type,
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);
46 bool assignUniqueIdOnCreation();
47
48 UMLObject* makeObjectFromXMI(const QString& xmiTag,
49 const QString& stereoID = QString());
50
51 }
52
53 #endif
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:81
UMLOperation
Definition: operation.h:25
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
Object_Factory
Definition: object_factory.cpp:58
Object_Factory::createNewUMLObject
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition: object_factory.cpp:95
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:208
Object_Factory::createOperation
UMLOperation * createOperation(UMLClassifier *parent, const QString &name)
Definition: object_factory.cpp:290
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition: object_factory.cpp:381
Object_Factory::assignUniqueIdOnCreation
void assignUniqueIdOnCreation(bool yesno)
Definition: object_factory.cpp:69
Object_Factory::createChildObject
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Definition: object_factory.cpp:305
Object_Factory::createAttribute
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:280
umlobject.h