umbrello 26.07.70-c53146a 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

object_factory.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef OBJECT_FACTORY__H
7#define OBJECT_FACTORY__H
8
9#include "umlobject.h"
10
11#include <QString>
12
13 class UMLPackage;
14 class UMLClassifier;
15 class UMLClassifierListItem;
16 class UMLAttribute;
17 class UMLOperation;
18
19 namespace Object_Factory {
20
21 UMLObject* createUMLObject(UMLObject::ObjectType type,
22 const QString &n = QString(),
23 UMLPackage *parentPkg = nullptr,
24 bool solicitNewName = true);
25
26 UMLObject* createNewUMLObject(UMLObject::ObjectType type,
27 const QString &n,
28 UMLPackage *parentPkg,
29 bool undoable = true);
30
31 UMLClassifierListItem* createChildObject(UMLClassifier *parent,
32 UMLObject::ObjectType type,
33 const QString& name = QString());
34
35 UMLAttribute *createAttribute(UMLObject *parent, const QString& name,
36 UMLObject *type = nullptr);
37
38 UMLOperation *createOperation(UMLClassifier *parent, const QString& name);
39
40 void assignUniqueIdOnCreation(bool yesno);
41 bool assignUniqueIdOnCreation();
42
43 UMLObject* makeObjectFromXMI(const QString& xmiTag,
44 const QString& stereoID = QString());
45
46}
47
48#endif
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
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
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:76
UMLOperation
Definition: umloperation.h:20
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
Object_Factory
Definition: object_factory.cpp:55
Object_Factory::createNewUMLObject
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition: object_factory.cpp:92
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:288
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition: object_factory.cpp:379
Object_Factory::createChildObject
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Definition: object_factory.cpp:303
Object_Factory::assignUniqueIdOnCreation
bool assignUniqueIdOnCreation()
Definition: object_factory.cpp:77
Object_Factory::createAttribute
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:278
umlobject.h