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

classifierlistitem.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) 2003-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CLASSIFIERLISTITEM_H
12 #define CLASSIFIERLISTITEM_H
13
14 #include "umlobject.h"
15
16 // forward declaration
17 class UMLClassifier;
18
29 class UMLClassifierListItem : public UMLObject
30 {
31 Q_OBJECT
32 public:
33
34 UMLClassifierListItem(UMLObject *parent,
35 const QString& name,
36 Uml::ID::Type id = Uml::ID::None);
37 explicit UMLClassifierListItem(UMLObject *parent);
38 virtual ~UMLClassifierListItem();
39
40 virtual void setType(UMLObject *type);
41 UMLClassifier * getType() const;
42
43 void setTypeName(const QString &type);
44 virtual QString getTypeName() const;
45
46 virtual QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig, bool withStereotype=false);
47
48 virtual void copyInto(UMLObject *lhs) const;
49
54 virtual UMLObject* clone() const = 0;
55
56 };
57
58 #endif
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1310
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:102
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:112
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:286
object_factory.h
UMLObject::emitModified
void emitModified()
Definition: umlobject.cpp:385
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
model_utils.h
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:282
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:141
pc
char * pc
Definition: cxx11-null-pointer-constant.h:4
classifierlistitem.h
UMLClassifierListItem::~UMLClassifierListItem
virtual ~UMLClassifierListItem()
Definition: classifierlistitem.cpp:67
Model_Utils::isCommonDataType
bool isCommonDataType(QString type)
Definition: model_utils.cpp:786
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
UMLClassifierListItem::setType
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:127
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
uDebug
#define uDebug()
Definition: debug_utils.h:122
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:162
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: classifierlistitem.cpp:90
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLDoc
Definition: umldoc.h:75
UMLClassifierListItem::clone
virtual UMLObject * clone() const =0
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
uml.h
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:163
umlobject.h
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
UMLClassifierListItem::UMLClassifierListItem
UMLClassifierListItem(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: classifierlistitem.cpp:37
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: classifierlistitem.cpp:75
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33