umbrello: umbrello/umlmodel/classifierlistitem.h Source File

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

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

- File List
- File Members

classifierlistitem.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
12class UMLClassifier;
13
24 class UMLClassifierListItem : public UMLObject
25{
26 Q_OBJECT
27public:
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
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:137
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition classifierlistitem.cpp:87
UMLClassifierListItem::~UMLClassifierListItem
virtual ~UMLClassifierListItem()
Definition classifierlistitem.cpp:64
UMLClassifierListItem::clone
virtual UMLObject * clone() const =0
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition classifierlistitem.cpp:98
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition classifierlistitem.cpp:108
UMLClassifierListItem::setType
virtual void setType(UMLObject *type)
Definition classifierlistitem.cpp:123
UMLClassifierListItem::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition classifierlistitem.cpp:72
UMLClassifierListItem::UMLClassifierListItem
UMLClassifierListItem(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition classifierlistitem.cpp:34
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: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