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
codegenfactory.h
CodeGenObjectWithTextBlocks::getCodeBlockWithComments
virtual CodeBlockWithComments * getCodeBlockWithComments(const QString &tag, const QString &comment, int indentLevel)
Definition: codegenobjectwithtextblocks.cpp:209
CodeBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeblock.cpp:91
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
JavaANTCodeDocument::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: javaantcodedocument.cpp:211
CodeDocument::setFileName
void setFileName(const QString &new_var)
Definition: codedocument.cpp:53
CodeComment
Definition: codecomment.h:24
CodeDocument::setFileExtension
void setFileExtension(const QString &new_var)
Definition: codedocument.cpp:72
XMLCodeComment
Definition: xmlcodecomment.h:26
xmlcodecomment.h
CodeGenObjectWithTextBlocks::addTextBlock
virtual bool addTextBlock(TextBlock *add_object)
Definition: codegenobjectwithtextblocks.cpp:57
TextBlock::setTag
void setTag(const QString &value)
Definition: textblock.cpp:121
JavaANTCodeDocument::updateContent
void updateContent()
Definition: javaantcodedocument.cpp:222
JavaANTCodeDocument::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: javaantcodedocument.cpp:199
CodeDocument
Definition: codedocument.h:33
JavaANTCodeDocument::JavaANTCodeDocument
JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:27
JavaANTCodeDocument::getPath
QString getPath()
Definition: javaantcodedocument.cpp:255
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
CodeBlock
Definition: codeblock.h:21
CodeDocument::getPackage
QString getPackage() const
Definition: codedocument.cpp:123
CodeOperation::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeoperation.cpp:83
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
HierarchicalCodeBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: hierarchicalcodeblock.cpp:269
uWarning
#define uWarning()
Definition: debug_utils.h:124
JavaANTCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: javaantcodedocument.cpp:58
CodeBlockWithComments::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeblockwithcomments.cpp:97
uDebug
#define uDebug()
Definition: debug_utils.h:122
JavaANTCodeDocument::~JavaANTCodeDocument
virtual ~JavaANTCodeDocument()
Definition: javaantcodedocument.cpp:34
CodeBlockWithComments
Definition: codeblockwithcomments.h:24
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
XMLElementCodeBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: xmlelementcodeblock.cpp:46
CodeDocument::newCodeBlock
virtual CodeBlock * newCodeBlock()
Definition: codedocument.cpp:460
codedocument.h
javacodegenerator.h
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:23
javaantcodedocument.h
uError
#define uError()
Definition: debug_utils.h:123
CodeDocument::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codedocument.cpp:357
UMLOperation
Definition: operation.h:25
CodeOperation
Definition: codeoperation.h:24
CodeDocument::getFileName
QString getFileName() const
Definition: codedocument.cpp:63
uml.h
debug_utils.h
JavaANTCodeDocument::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: javaantcodedocument.cpp:191
CodeDocument::newCodeBlockWithComments
virtual CodeBlockWithComments * newCodeBlockWithComments()
Definition: codedocument.cpp:469
JavaANTCodeDocument
Definition: javaantcodedocument.h:26
JavaANTCodeDocument::newHierarchicalCodeBlock
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()
Definition: javaantcodedocument.cpp:49
JavaANTCodeDocument::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: javaantcodedocument.cpp:179
CodeComment::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codecomment.cpp:42
TextBlock
Definition: textblock.h:25
XMLElementCodeBlock
Definition: xmlelementcodeblock.h:24
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
CodeDocument::findCodeClassFieldTextBlockByTag
virtual TextBlock * findCodeClassFieldTextBlockByTag(const QString &tag)
Definition: codedocument.cpp:520
CodeDocument::setID
void setID(const QString &new_id)
Definition: codedocument.cpp:134
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
CodeDocument::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codedocument.cpp:388
xmlelementcodeblock.h