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

umbrello 2.32.2 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 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 JAVACLASSIFIERCODEDOCUMENT_H
9#define JAVACLASSIFIERCODEDOCUMENT_H
10
11#include "codeclassfieldlist.h"
12#include "classifiercodedocument.h"
13#include "classifier.h"
14#include "hierarchicalcodeblock.h"
15#include "javacodeclassfield.h"
16#include "javacodeoperation.h"
17
18#include <QString>
19
20class JavaClassDeclarationBlock;
21class JavaCodeGenerationPolicy;
22
28 class JavaClassifierCodeDocument : public ClassifierCodeDocument
29{
30 Q_OBJECT
31public:
32
36 explicit JavaClassifierCodeDocument (UMLClassifier * classifier);
37
41 virtual ~JavaClassifierCodeDocument ();
42
47 //CodeDocumentDialog getDialog ();
48
49 // Make it easier on ourselves
50 JavaCodeGenerationPolicy * getJavaPolicy() const;
51
52 QString getJavaClassName (const QString &name) const;
53
54 QString getPath() const;
55
60 bool addCodeOperation (CodeOperation * op);
61
62 void updateContent();
63
64protected:
65
66 // reset/clear our inventory of textblocks in this document
67 void resetTextBlocks();
68
73 virtual void loadChildTextBlocksFromNode (QDomElement & root);
74
75 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, JavaClassDeclarationBlock * codeBlock);
76
77 bool forceDoc ();
78
79private:
80
81 JavaClassDeclarationBlock * classDeclCodeBlock;
82 HierarchicalCodeBlock * constructorBlock;
83 HierarchicalCodeBlock * operationsBlock;
84
85 void init ();
86 JavaClassDeclarationBlock * getClassDecl();
87};
88
89#endif // JAVACLASSIFIERCODEDOCUMENT_H
ClassifierCodeDocument
Definition: classifiercodedocument.h:29
CodeOperation
Definition: codeoperation.h:20
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:21
JavaClassDeclarationBlock
Definition: javaclassdeclarationblock.h:17
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:29
JavaClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: javaclassifiercodedocument.cpp:124
JavaClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: javaclassifiercodedocument.cpp:111
JavaClassifierCodeDocument::getJavaClassName
QString getJavaClassName(const QString &name) const
Definition: javaclassifiercodedocument.cpp:84
JavaClassifierCodeDocument::init
void init()
Definition: javaclassifiercodedocument.cpp:90
JavaClassifierCodeDocument::forceDoc
bool forceDoc()
Definition: javaclassifiercodedocument.cpp:62
JavaClassifierCodeDocument::classDeclCodeBlock
JavaClassDeclarationBlock * classDeclCodeBlock
Definition: javaclassifiercodedocument.h:81
JavaClassifierCodeDocument::updateContent
void updateContent()
Definition: javaclassifiercodedocument.cpp:266
JavaClassifierCodeDocument::~JavaClassifierCodeDocument
virtual ~JavaClassifierCodeDocument()
Definition: javaclassifiercodedocument.cpp:40
JavaClassifierCodeDocument::getClassDecl
JavaClassDeclarationBlock * getClassDecl()
Definition: javaclassifiercodedocument.cpp:238
JavaClassifierCodeDocument::operationsBlock
HierarchicalCodeBlock * operationsBlock
Definition: javaclassifiercodedocument.h:83
JavaClassifierCodeDocument::constructorBlock
HierarchicalCodeBlock * constructorBlock
Definition: javaclassifiercodedocument.h:82
JavaClassifierCodeDocument::getPath
QString getPath() const
Definition: javaclassifiercodedocument.cpp:68
JavaClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: javaclassifiercodedocument.cpp:248
JavaClassifierCodeDocument::JavaClassifierCodeDocument
JavaClassifierCodeDocument(UMLClassifier *classifier)
Definition: javaclassifiercodedocument.cpp:34
JavaClassifierCodeDocument::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy() const
Definition: javaclassifiercodedocument.cpp:45
JavaClassifierCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, JavaClassDeclarationBlock *codeBlock)
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:19
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
classifier.h
classifiercodedocument.h
codeclassfieldlist.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:12
hierarchicalcodeblock.h
javacodeclassfield.h
javacodeoperation.h