umbrello: umbrello/object_factory.h Source File

umbrello 25.08.0 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 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
13class UMLPackage;
14class UMLClassifier;
15class UMLClassifierListItem;
16class UMLAttribute;
17class UMLOperation;
18
19namespace Object_Factory {
20
21UMLObject* createUMLObject(UMLObject::ObjectType type,
22 const QString &n = QString(),
23 UMLPackage *parentPkg = nullptr,
24 bool solicitNewName = true);
25
26UMLObject* createNewUMLObject(UMLObject::ObjectType type,
27 const QString &n,
28 UMLPackage *parentPkg,
29 bool undoable = true);
30
31UMLClassifierListItem* createChildObject(UMLClassifier *parent,
32 UMLObject::ObjectType type,
33 const QString& name = QString());
34
35UMLAttribute *createAttribute(UMLObject *parent, const QString& name,
36 UMLObject *type = nullptr);
37
38UMLOperation *createOperation(UMLClassifier *parent, const QString& name);
39
40void assignUniqueIdOnCreation(bool yesno);
41bool assignUniqueIdOnCreation();
42
43UMLObject* 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::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: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