umbrello 2.39.2 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Topics
- 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 = 0,
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 = 0);
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 attribute.h:23
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition classifierlistitem.h:25
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLObject::ObjectType
ObjectType
Definition umlobject.h:76
UMLOperation
Definition operation.h:20
UMLPackage
Non-graphical information for a Package.
Definition package.h:28
Object_Factory
Definition object_factory.cpp:56
Object_Factory::createNewUMLObject
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition object_factory.cpp:93
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition object_factory.cpp:209
Object_Factory::createOperation
UMLOperation * createOperation(UMLClassifier *parent, const QString &name)
Definition object_factory.cpp:289
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition object_factory.cpp:380
Object_Factory::createChildObject
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Definition object_factory.cpp:304
Object_Factory::assignUniqueIdOnCreation
bool assignUniqueIdOnCreation()
Definition object_factory.cpp:78
Object_Factory::createAttribute
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition object_factory.cpp:279
umlobject.h