• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
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-2013 *
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 UMLClassifierListItem* createChildObject(UMLClassifier *parent, UMLObject::ObjectType type);
32 
33 UMLAttribute *createAttribute(UMLObject *parent, const QString& name,
34  UMLObject *type = 0);
35 
36 UMLOperation *createOperation(UMLClassifier *parent, const QString& name);
37 
38 void assignUniqueIdOnCreation(bool yesno);
39 bool assignUniqueIdOnCreation();
40 
41 UMLObject* makeObjectFromXMI(const QString& xmiTag,
42  const QString& stereoID = QString());
43 
44 }
45 
46 #endif
umlobject.h
UMLPackage
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
UMLClassifier
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLClassifierListItem
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
UMLAttribute
This class is used to set up information for an attribute.
Definition: attribute.h:27
Object_Factory::createOperation
UMLOperation * createOperation(UMLClassifier *parent, const QString &name)
Definition: object_factory.cpp:228
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
Object_Factory::assignUniqueIdOnCreation
void assignUniqueIdOnCreation(bool yesno)
Control whether the createUMLObject() solicits a new unique ID for the created object.
Definition: object_factory.cpp:64
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:162
Object_Factory::createAttribute
UMLAttribute * createAttribute(UMLObject *parent, const QString &name, UMLObject *type)
Definition: object_factory.cpp:218
Object_Factory::createChildObject
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type)
Creates an operation, attribute, template, or enum literal for the parent classifier.
Definition: object_factory.cpp:242
UMLOperation
This class represents an operation in the UML model.
Definition: operation.h:24
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:47
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Make a new UMLObject according to the given XMI tag.
Definition: object_factory.cpp:309
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal