umbrello 26.03.70-1a62d36 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

umlclassifierlistitem.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 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,
42 bool withStereotype=false) const;
43
44 virtual void copyInto(UMLObject *lhs) const;
45
50 virtual UMLObject* clone() const = 0;
51
52};
53
54#endif
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: umlclassifierlistitem.h:25
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: umlclassifierlistitem.cpp:137
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: umlclassifierlistitem.cpp:87
UMLClassifierListItem::~UMLClassifierListItem
virtual ~UMLClassifierListItem()
Definition: umlclassifierlistitem.cpp:64
UMLClassifierListItem::clone
virtual UMLObject * clone() const =0
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: umlclassifierlistitem.cpp:98
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: umlclassifierlistitem.cpp:108
UMLClassifierListItem::setType
virtual void setType(UMLObject *type)
Definition: umlclassifierlistitem.cpp:123
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlclassifierlistitem.cpp:72
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
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