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

umlenumliteral.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 ENUMLITERAL_H
7#define ENUMLITERAL_H
8
9#include "umlclassifierlistitem.h"
10
20 class UMLEnumLiteral : public UMLClassifierListItem
21{
22 public:
23 UMLEnumLiteral(UMLObject* parent,
24 const QString& name, Uml::ID::Type id = Uml::ID::None,
25 const QString& v = QString());
26 explicit UMLEnumLiteral(UMLObject* parent);
27
28 bool operator==(const UMLEnumLiteral &rhs) const;
29
30 virtual void copyInto(UMLObject *lhs) const;
31
32 virtual UMLObject* clone() const;
33
34 virtual ~UMLEnumLiteral();
35
36 QString value() const;
37 void setValue(const QString &v);
38
39 QString toString(Uml::SignatureType::Enum sig = Uml::SignatureType::NoSig,
40 bool withStereotype=false) const;
41
42 virtual void saveToXMI(QXmlStreamWriter& writer);
43
44 virtual bool showPropertiesDialog(QWidget *parent = nullptr);
45
46 protected:
47 bool load1(QDomElement& element);
48
55 QString m_Value;
56
57};
58
59#endif
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: umlclassifierlistitem.h:25
UMLEnumLiteral
Sets up attribute information.
Definition: umlenumliteral.h:21
UMLEnumLiteral::clone
virtual UMLObject * clone() const
Definition: umlenumliteral.cpp:118
UMLEnumLiteral::showPropertiesDialog
virtual bool showPropertiesDialog(QWidget *parent=nullptr)
Definition: umlenumliteral.cpp:149
UMLEnumLiteral::setValue
void setValue(const QString &v)
Definition: umlenumliteral.cpp:63
UMLEnumLiteral::operator==
bool operator==(const UMLEnumLiteral &rhs) const
Definition: umlenumliteral.cpp:92
UMLEnumLiteral::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlenumliteral.cpp:107
UMLEnumLiteral::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: umlenumliteral.cpp:129
UMLEnumLiteral::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: umlenumliteral.cpp:77
UMLEnumLiteral::~UMLEnumLiteral
virtual ~UMLEnumLiteral()
Definition: umlenumliteral.cpp:44
UMLEnumLiteral::value
QString value() const
Definition: umlenumliteral.cpp:53
UMLEnumLiteral::load1
bool load1(QDomElement &element)
Definition: umlenumliteral.cpp:140
UMLEnumLiteral::m_Value
QString m_Value
Definition: umlenumliteral.h:55
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
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
umlclassifierlistitem.h