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

javaclassdeclarationblock.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 JAVACLASSDECLARATIONBLOCK_H
13 #define JAVACLASSDECLARATIONBLOCK_H
14
15 #include "javaclassifiercodedocument.h"
16 #include "ownedhierarchicalcodeblock.h"
17
18 #include <QString>
19
20 class JavaClassDeclarationBlock : public OwnedHierarchicalCodeBlock
21 {
22 Q_OBJECT
23 public:
24
28 explicit JavaClassDeclarationBlock (JavaClassifierCodeDocument * parentDoc, const QString &start = QString(), const QString &endText = QLatin1String("}"), const QString &comment = QString());
29
33 virtual ~JavaClassDeclarationBlock ();
34
38 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
39
43 virtual void loadFromXMI1 (QDomElement & root);
44
48 void updateContent ();
49
50 private:
51
52 void init (JavaClassifierCodeDocument * parent, const QString &comment);
53
54 };
55
56 #endif // JAVACLASSDECLARATIONBLOCK_H
OwnedHierarchicalCodeBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: ownedhierarchicalcodeblock.cpp:83
HierarchicalCodeBlock::setEndText
void setEndText(const QString &new_var)
Definition: hierarchicalcodeblock.cpp:43
ClassifierCodeDocument::parentIsInterface
bool parentIsInterface()
Definition: classifiercodedocument.cpp:418
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
HierarchicalCodeBlock::setStartText
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
JavaClassifierCodeDocument::getJavaClassName
QString getJavaClassName(const QString &name)
Definition: javaclassifiercodedocument.cpp:88
JavaClassDeclarationBlock::~JavaClassDeclarationBlock
virtual ~JavaClassDeclarationBlock()
Definition: javaclassdeclarationblock.cpp:26
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
UMLClassifier::INTERFACE
@ INTERFACE
Definition: classifier.h:47
JavaClassDeclarationBlock::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: javaclassdeclarationblock.cpp:33
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
ownedhierarchicalcodeblock.h
OwnedHierarchicalCodeBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedhierarchicalcodeblock.cpp:57
javaclassdeclarationblock.h
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
javaclassifiercodedocument.h
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
JavaClassDeclarationBlock::JavaClassDeclarationBlock
JavaClassDeclarationBlock(JavaClassifierCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("}"), const QString &comment=QString())
Definition: javaclassdeclarationblock.cpp:20
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
JavaClassDeclarationBlock::updateContent
void updateContent()
Definition: javaclassdeclarationblock.cpp:51
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
javacodedocumentation.h
OwnedHierarchicalCodeBlock
Definition: ownedhierarchicalcodeblock.h:27
codegenerationpolicy.h
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeGenerationPolicy::getCodeVerboseDocumentComments
bool getCodeVerboseDocumentComments() const
Definition: codegenerationpolicy.cpp:152
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
CodeDocument::cleanName
QString cleanName(const QString &name)
Definition: codedocument.cpp:270
JavaClassDeclarationBlock::init
void init(JavaClassifierCodeDocument *parent, const QString &comment)
Definition: javaclassdeclarationblock.cpp:137
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:33
ClassifierCodeDocument::getParentClassifier
UMLClassifier * getParentClassifier()
Definition: classifiercodedocument.cpp:275
JavaCodeDocumentation
Definition: javacodedocumentation.h:28
uml.h
OwnedHierarchicalCodeBlock::getParentDocument
CodeDocument * getParentDocument()
Definition: ownedhierarchicalcodeblock.cpp:93
CodeGenerationPolicy::getNewLineEndingChars
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:253
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLClassifier::CLASS
@ CLASS
Definition: classifier.h:47
codegenerator.h
JavaClassDeclarationBlock
Definition: javaclassdeclarationblock.h:21
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
JavaClassDeclarationBlock::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: javaclassdeclarationblock.cpp:43