umbrello: umbrello/uml1model/classifierlistitem.h Source File

umbrello 2.32.1 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 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5
6 #ifndef CLASSIFIERLISTITEM_H
7 #define CLASSIFIERLISTITEM_H
8
9 #include "umlobject.h"
10
11 // forward declaration
12 class UMLClassifier;
13
24 class UMLClassifierListItem : public UMLObject
25 {
26 Q_OBJECT
27 public:
28
29 UMLClassifierListItem(UMLObject *parent,
30 const QString& name,
31 Uml::ID::Type id = Uml::ID::None);
32 explicit UMLClassifierListItem(UMLObject *parent);
33 virtual ~UMLClassifierListItem();
34
35 virtual void setType(UMLObject *type);
36 UMLClassifier * getType() const;
37
38 void setTypeName(const QString &type);
39 virtual QString getTypeName() const;
40
41 virtual QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig, bool withStereotype=false);
42
43 virtual void copyInto(UMLObject *lhs) const;
44
49 virtual UMLObject* clone() const = 0;
50
51 };
52
53 #endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:25
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:136
UMLClassifierListItem::~UMLClassifierListItem
virtual ~UMLClassifierListItem()
Definition: classifierlistitem.cpp:62
UMLClassifierListItem::clone
virtual UMLObject * clone() const =0
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:97
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:107
UMLClassifierListItem::setType
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:122
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: classifierlistitem.cpp:70
UMLClassifierListItem::UMLClassifierListItem
UMLClassifierListItem(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: classifierlistitem.cpp:32
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: classifierlistitem.cpp:85
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:160
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:161
umlobject.h