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

dcodeaccessormethod.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) 2007 Jari-Matti Mäkelä <jmjm@iki.fi> *
8 * copyright (C) 2008-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DCODEACCESSORMETHOD_H
13 #define DCODEACCESSORMETHOD_H
14
15 #include "codeaccessormethod.h"
16
17 #include <QString>
18
19 class CodeClassField;
20
21 class DCodeAccessorMethod : public CodeAccessorMethod
22 {
23 Q_OBJECT
24 public:
25
29 DCodeAccessorMethod (CodeClassField * field, CodeAccessorMethod::AccessorType type);
30
34 virtual ~DCodeAccessorMethod ();
35
39 void update();
40
41 virtual void updateMethodDeclaration();
42 virtual void updateContent();
43
44 protected:
45
50 virtual void setAttributesOnNode (QDomDocument & doc, QDomElement & blockElement);
51
56 virtual void setAttributesFromNode (QDomElement & element);
57
58 };
59
60 #endif // DCODEACCESSORMETHOD_H
umlrole.h
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:53
DCodeAccessorMethod::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: dcodeaccessormethod.cpp:119
CodeClassField::parentIsAttribute
bool parentIsAttribute() const
Definition: codeclassfield.cpp:127
dcodegenerationpolicy.h
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
CodeAccessorMethod::SET
@ SET
Definition: codeaccessormethod.h:32
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
CodeAccessorMethod::getParentClassField
CodeClassField * getParentClassField()
Definition: codeaccessormethod.cpp:40
dcodeclassfield.h
CodeAccessorMethod
Definition: codeaccessormethod.h:21
TextBlock::getIndentation
static QString getIndentation()
Definition: textblock.cpp:182
CodeBlockWithComments::getComment
CodeComment * getComment() const
Definition: codeblockwithcomments.cpp:47
CodeAccessorMethod::setType
void setType(AccessorType type)
Definition: codeaccessormethod.cpp:72
CodeClassField
Definition: codeclassfield.h:30
Uml::Visibility::FromParent
@ FromParent
Definition: basictypes.h:64
CodeParameter::getParentDocument
ClassifierCodeDocument * getParentDocument()
Definition: codeparameter.cpp:133
DCodeAccessorMethod
Definition: dcodeaccessormethod.h:22
DCodeAccessorMethod::update
void update()
Definition: dcodeaccessormethod.cpp:208
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:64
CodeAccessorMethod::getType
AccessorType getType()
Definition: codeaccessormethod.cpp:64
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
DCodeAccessorMethod::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: dcodeaccessormethod.cpp:53
Codegen_Utils::capitalizeFirstLetter
QString capitalizeFirstLetter(const QString &string)
Definition: codegen_utils.cpp:430
dcodedocumentation.h
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
DCodeAccessorMethod::~DCodeAccessorMethod
virtual ~DCodeAccessorMethod()
Definition: dcodeaccessormethod.cpp:41
dcodeaccessormethod.h
attribute.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:107
CodeAccessorMethod::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codeaccessormethod.cpp:123
classifiercodedocument.h
DCodeDocumentation
Definition: dcodedocumentation.h:28
CodeClassField::getListObjectType
QString getListObjectType()
Definition: codeclassfield.cpp:112
codegenerationpolicy.h
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeClassField::maximumListOccurances
int maximumListOccurances()
Definition: codeclassfield.cpp:357
DCodeAccessorMethod::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: dcodeaccessormethod.cpp:45
DCodeAccessorMethod::updateContent
virtual void updateContent()
Definition: dcodeaccessormethod.cpp:61
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
dclassifiercodedocument.h
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
CodeAccessorMethod::GET
@ GET
Definition: codeaccessormethod.h:32
CodeParameter::getVisibility
Uml::Visibility::Enum getVisibility() const
Definition: codeparameter.cpp:89
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
CodeAccessorMethod::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeaccessormethod.cpp:137
CodeMethodBlock::setEndMethodText
void setEndMethodText(const QString &value)
Definition: codemethodblock.cpp:66
DCodeAccessorMethod::DCodeAccessorMethod
DCodeAccessorMethod(CodeClassField *field, CodeAccessorMethod::AccessorType type)
Definition: dcodeaccessormethod.cpp:31
uError
#define uError()
Definition: debug_utils.h:123
uml.h
CodeClassField::minimumListOccurances
int minimumListOccurances()
Definition: codeclassfield.cpp:329
CodeGenerationPolicy::getNewLineEndingChars
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:253
debug_utils.h
CodeAccessorMethod::LIST
@ LIST
Definition: codeaccessormethod.h:32
DCodeClassField::getFieldName
QString getFieldName()
Definition: dcodeclassfield.cpp:44
codeaccessormethod.h
umlobject.h
CodeAccessorMethod::REMOVE
@ REMOVE
Definition: codeaccessormethod.h:32
codegenerator.h
CodeMethodBlock::setStartMethodText
void setStartMethodText(const QString &value)
Definition: codemethodblock.cpp:58
CodeGenerationPolicy::getAttributeAccessorScope
Uml::Visibility::Enum getAttributeAccessorScope()
Definition: codegenerationpolicy.cpp:384
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
TextBlock::setText
void setText(const QString &text)
Definition: textblock.cpp:80
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
CodeAccessorMethod::ADD
@ ADD
Definition: codeaccessormethod.h:32
TextBlock::getText
QString getText() const
Definition: textblock.cpp:99
CodeAccessorMethod::AccessorType
AccessorType
Definition: codeaccessormethod.h:32
DCodeClassField
Definition: dcodeclassfield.h:22
codegen_utils.h
DCodeClassField::getTypeName
QString getTypeName()
Definition: dcodeclassfield.cpp:90