umbrello 26.03.70-f7b1fd3 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

xmlelementcodeblock.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov>
5 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef XMLELEMENTCODEBLOCK_H
9#define XMLELEMENTCODEBLOCK_H
10
11#include "hierarchicalcodeblock.h"
12#include "umlattributelist.h"
13
14#include <QString>
15
16 class CodeDocument;
17 class UMLAttribute;
18
19 class XMLElementCodeBlock : public HierarchicalCodeBlock
20{
21 public:
22
26 XMLElementCodeBlock (CodeDocument * parentDoc, const QString & nodeName, const QString & comment = QString());
27
31 virtual ~XMLElementCodeBlock ();
32
36 virtual void saveToXMI(QXmlStreamWriter& writer);
37
41 virtual void loadFromXMI (QDomElement & root);
42
43 virtual UMLAttributeList * getAttributeList();
44
45 virtual void setNodeName (const QString &name);
46 virtual QString getNodeName ();
47
48 void addAttribute (UMLAttribute * at);
49
53 void updateContent ();
54
55 protected:
56
61 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
62
67 virtual void setAttributesFromNode (QDomElement & element);
68
69 private:
70
71 UMLAttributeList m_attList;
72 QString m_nodeName;
73 void init (CodeDocument * parent, const QString &nodeName, const QString &comment);
74
75};
76
77#endif // XMLELEMENTCODEBLOCK_H
CodeDocument
Definition: codedocument.h:30
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:21
UMLAttribute
Sets up attribute information.
Definition: umlattribute.h:23
UMLAttributeList
Definition: umlattributelist.h:21
XMLElementCodeBlock
Definition: xmlelementcodeblock.h:20
XMLElementCodeBlock::m_attList
UMLAttributeList m_attList
Definition: xmlelementcodeblock.h:71
XMLElementCodeBlock::setNodeName
virtual void setNodeName(const QString &name)
Definition: xmlelementcodeblock.cpp:77
XMLElementCodeBlock::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: xmlelementcodeblock.cpp:34
XMLElementCodeBlock::getNodeName
virtual QString getNodeName()
Definition: xmlelementcodeblock.cpp:82
XMLElementCodeBlock::addAttribute
void addAttribute(UMLAttribute *at)
Definition: xmlelementcodeblock.cpp:87
XMLElementCodeBlock::init
void init(CodeDocument *parent, const QString &nodeName, const QString &comment)
Definition: xmlelementcodeblock.cpp:135
XMLElementCodeBlock::getAttributeList
virtual UMLAttributeList * getAttributeList()
Definition: xmlelementcodeblock.cpp:92
XMLElementCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: xmlelementcodeblock.cpp:68
XMLElementCodeBlock::~XMLElementCodeBlock
virtual ~XMLElementCodeBlock()
Definition: xmlelementcodeblock.cpp:27
XMLElementCodeBlock::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Definition: xmlelementcodeblock.cpp:46
XMLElementCodeBlock::updateContent
void updateContent()
Definition: xmlelementcodeblock.cpp:100
XMLElementCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: xmlelementcodeblock.cpp:55
XMLElementCodeBlock::m_nodeName
QString m_nodeName
Definition: xmlelementcodeblock.h:72
hierarchicalcodeblock.h
umlattributelist.h