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

umbrello 25.04.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 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
27
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::ClassifierCodeDocument
ClassifierCodeDocument(UMLClassifier *parent)
Definition classifiercodedocument.cpp:34
ClassifierCodeDocument::HierarchicalCodeBlock
friend class HierarchicalCodeBlock
Definition classifiercodedocument.h:30
CodeOperation
Definition codeoperation.h:20
JavaClassDeclarationBlock
Definition javaclassdeclarationblock.h:17
JavaClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition javaclassifiercodedocument.cpp:126
JavaClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition javaclassifiercodedocument.cpp:113
JavaClassifierCodeDocument::getJavaClassName
QString getJavaClassName(const QString &name) const
Definition javaclassifiercodedocument.cpp:86
JavaClassifierCodeDocument::init
void init()
Definition javaclassifiercodedocument.cpp:92
JavaClassifierCodeDocument::forceDoc
bool forceDoc()
Definition javaclassifiercodedocument.cpp:64
JavaClassifierCodeDocument::classDeclCodeBlock
JavaClassDeclarationBlock * classDeclCodeBlock
Definition javaclassifiercodedocument.h:81
JavaClassifierCodeDocument::updateContent
void updateContent()
Definition javaclassifiercodedocument.cpp:269
JavaClassifierCodeDocument::~JavaClassifierCodeDocument
virtual ~JavaClassifierCodeDocument()
Definition javaclassifiercodedocument.cpp:42
JavaClassifierCodeDocument::getClassDecl
JavaClassDeclarationBlock * getClassDecl()
Definition javaclassifiercodedocument.cpp:241
JavaClassifierCodeDocument::operationsBlock
HierarchicalCodeBlock * operationsBlock
Definition javaclassifiercodedocument.h:83
JavaClassifierCodeDocument::constructorBlock
HierarchicalCodeBlock * constructorBlock
Definition javaclassifiercodedocument.h:82
JavaClassifierCodeDocument::getPath
QString getPath() const
Definition javaclassifiercodedocument.cpp:70
JavaClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition javaclassifiercodedocument.cpp:251
JavaClassifierCodeDocument::JavaClassifierCodeDocument
JavaClassifierCodeDocument(UMLClassifier *classifier)
Definition javaclassifiercodedocument.cpp:36
JavaClassifierCodeDocument::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy() const
Definition javaclassifiercodedocument.cpp:47
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:14
hierarchicalcodeblock.h
javacodeclassfield.h
javacodeoperation.h