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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

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
20 class JavaClassDeclarationBlock;
21 class JavaCodeGenerationPolicy;
22
28 class JavaClassifierCodeDocument : public ClassifierCodeDocument
29{
30 Q_OBJECT
31 public:
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
64 protected:
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
79 private:
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: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