umbrello: umbrello/codegenerators/java/javaantcodedocument.h Source File

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

javaantcodedocument.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef JAVAANTCODEDOCUMENT_H
13 #define JAVAANTCODEDOCUMENT_H
14
15 #include "codedocument.h"
16
17 #include <QDomDocument>
18 #include <QDomElement>
19 #include <QString>
20 #include <QXmlStreamWriter>
21
26 class JavaANTCodeDocument : public CodeDocument
27 {
28 Q_OBJECT
29 public:
30
34 JavaANTCodeDocument ();
35
39 virtual ~JavaANTCodeDocument ();
40
41 QString getPath ();
42
43 void updateContent();
44
48 virtual void saveToXMI1(QXmlStreamWriter& writer);
49
53 virtual void loadFromXMI1 (QDomElement & root);
54
59 virtual HierarchicalCodeBlock * newHierarchicalCodeBlock ();
60
61 //**
62 // * Create a new CodeBlockWithComments object belonging to this CodeDocument.
63 // * @return CodeBlockWithComments
64 // */
65 // virtual CodeBlockWithComments * newCodeBlockWithComments ();
66
67 protected:
68
73 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
74
79 virtual void setAttributesFromNode (QDomElement & element);
80
85 virtual void loadChildTextBlocksFromNode (QDomElement & root);
86
87 private:
88
89 };
90
91 #endif // JAVAANTCODEDOCUMENT_H
CodeDocument
Definition: codedocument.h:34
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:25
JavaANTCodeDocument
Definition: javaantcodedocument.h:27
JavaANTCodeDocument::newHierarchicalCodeBlock
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()
Definition: javaantcodedocument.cpp:50
JavaANTCodeDocument::JavaANTCodeDocument
JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:28
JavaANTCodeDocument::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: javaantcodedocument.cpp:180
JavaANTCodeDocument::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: javaantcodedocument.cpp:212
JavaANTCodeDocument::updateContent
void updateContent()
Definition: javaantcodedocument.cpp:223
JavaANTCodeDocument::~JavaANTCodeDocument
virtual ~JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:35
JavaANTCodeDocument::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition: javaantcodedocument.cpp:200
JavaANTCodeDocument::getPath
QString getPath()
Definition: javaantcodedocument.cpp:256
JavaANTCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: javaantcodedocument.cpp:59
JavaANTCodeDocument::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: javaantcodedocument.cpp:192
codedocument.h