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

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

javaclassifiercodedocument.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 JAVACLASSIFIERCODEDOCUMENT_H
13 #define JAVACLASSIFIERCODEDOCUMENT_H
14
15 #include "codeclassfieldlist.h"
16 #include "classifiercodedocument.h"
17 #include "classifier.h"
18 #include "hierarchicalcodeblock.h"
19 #include "javacodeclassfield.h"
20 #include "javacodeoperation.h"
21
22 #include <QString>
23
24 class JavaClassDeclarationBlock;
25 class JavaCodeGenerationPolicy;
26
32 class JavaClassifierCodeDocument : public ClassifierCodeDocument
33 {
34 Q_OBJECT
35 public:
36
40 explicit JavaClassifierCodeDocument (UMLClassifier * classifier);
41
45 virtual ~JavaClassifierCodeDocument ();
46
51 //CodeDocumentDialog getDialog ();
52
53 // Make it easier on ourselves
54 JavaCodeGenerationPolicy * getJavaPolicy();
55
56 QString getJavaClassName (const QString &name);
57
58 QString getPath();
59
64 bool addCodeOperation (CodeOperation * op);
65
66 void updateContent();
67
68 protected:
69
70 // reset/clear our inventory of textblocks in this document
71 void resetTextBlocks();
72
77 virtual void loadChildTextBlocksFromNode (QDomElement & root);
78
79 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, JavaClassDeclarationBlock * codeBlock);
80
81 bool forceDoc ();
82
83 private:
84
85 JavaClassDeclarationBlock * classDeclCodeBlock;
86 HierarchicalCodeBlock * constructorBlock;
87 HierarchicalCodeBlock * operationsBlock;
88
89 void init ();
90 JavaClassDeclarationBlock * getClassDecl();
91 };
92
93 #endif // JAVACLASSIFIERCODEDOCUMENT_H
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
CodeOperation
Definition: codeoperation.h:24
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:25
JavaClassDeclarationBlock
Definition: javaclassdeclarationblock.h:21
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:33
JavaClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: javaclassifiercodedocument.cpp:128
JavaClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: javaclassifiercodedocument.cpp:115
JavaClassifierCodeDocument::init
void init()
Definition: javaclassifiercodedocument.cpp:94
JavaClassifierCodeDocument::forceDoc
bool forceDoc()
Definition: javaclassifiercodedocument.cpp:66
JavaClassifierCodeDocument::classDeclCodeBlock
JavaClassDeclarationBlock * classDeclCodeBlock
Definition: javaclassifiercodedocument.h:85
JavaClassifierCodeDocument::getJavaClassName
QString getJavaClassName(const QString &name)
Definition: javaclassifiercodedocument.cpp:88
JavaClassifierCodeDocument::updateContent
void updateContent()
Definition: javaclassifiercodedocument.cpp:270
JavaClassifierCodeDocument::getPath
QString getPath()
Definition: javaclassifiercodedocument.cpp:72
JavaClassifierCodeDocument::~JavaClassifierCodeDocument
virtual ~JavaClassifierCodeDocument()
Definition: javaclassifiercodedocument.cpp:44
JavaClassifierCodeDocument::getClassDecl
JavaClassDeclarationBlock * getClassDecl()
Definition: javaclassifiercodedocument.cpp:242
JavaClassifierCodeDocument::operationsBlock
HierarchicalCodeBlock * operationsBlock
Definition: javaclassifiercodedocument.h:87
JavaClassifierCodeDocument::constructorBlock
HierarchicalCodeBlock * constructorBlock
Definition: javaclassifiercodedocument.h:86
JavaClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: javaclassifiercodedocument.cpp:252
JavaClassifierCodeDocument::JavaClassifierCodeDocument
JavaClassifierCodeDocument(UMLClassifier *classifier)
Definition: javaclassifiercodedocument.cpp:38
JavaClassifierCodeDocument::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy()
Definition: javaclassifiercodedocument.cpp:49
JavaClassifierCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, JavaClassDeclarationBlock *codeBlock)
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
classifier.h
classifiercodedocument.h
codeclassfieldlist.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:17
hierarchicalcodeblock.h
javacodeclassfield.h
javacodeoperation.h