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

umbrello 2.32.3 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
25 class JavaANTCodeDocument : public CodeDocument
26 {
27 Q_OBJECT
28 public:
29
33 JavaANTCodeDocument ();
34
38 virtual ~JavaANTCodeDocument ();
39
40 QString getPath ();
41
42 void updateContent();
43
47 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
48
52 virtual void loadFromXMI1 (QDomElement & root);
53
58 virtual HierarchicalCodeBlock * newHierarchicalCodeBlock ();
59
60 //**
61 // * Create a new CodeBlockWithComments object belonging to this CodeDocument.
62 // * @return CodeBlockWithComments
63 // */
64 // virtual CodeBlockWithComments * newCodeBlockWithComments ();
65
66 protected:
67
72 virtual void setAttributesOnNode (QDomDocument & doc, QDomElement & blockElement);
73
78 virtual void setAttributesFromNode (QDomElement & element);
79
84 virtual void loadChildTextBlocksFromNode (QDomElement & root);
85
86 private:
87
88 };
89
90 #endif // JAVAANTCODEDOCUMENT_H
CodeDocument
Definition: codedocument.h:33
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:23
JavaANTCodeDocument
Definition: javaantcodedocument.h:26
JavaANTCodeDocument::newHierarchicalCodeBlock
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()
Definition: javaantcodedocument.cpp:49
JavaANTCodeDocument::JavaANTCodeDocument
JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:27
JavaANTCodeDocument::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: javaantcodedocument.cpp:179
JavaANTCodeDocument::updateContent
void updateContent()
Definition: javaantcodedocument.cpp:222
JavaANTCodeDocument::~JavaANTCodeDocument
virtual ~JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:34
JavaANTCodeDocument::getPath
QString getPath()
Definition: javaantcodedocument.cpp:255
JavaANTCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: javaantcodedocument.cpp:58
JavaANTCodeDocument::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: javaantcodedocument.cpp:199
JavaANTCodeDocument::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: javaantcodedocument.cpp:191
JavaANTCodeDocument::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: javaantcodedocument.cpp:211
codedocument.h