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

javacodeaccessormethod.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 JAVACODEACCESSORMETHOD_H
13 #define JAVACODEACCESSORMETHOD_H
14
15 #include "codeaccessormethod.h"
16
17 #include <QString>
18
19 class CodeClassField;
20
21 class JavaCodeAccessorMethod : public CodeAccessorMethod
22 {
23 Q_OBJECT
24 public:
25
29 JavaCodeAccessorMethod (CodeClassField * field, CodeAccessorMethod::AccessorType type);
30
34 virtual ~JavaCodeAccessorMethod ();
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 // JAVACODEACCESSORMETHOD_H
umlrole.h
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:53
JavaCodeClassField::getFieldName
QString getFieldName()
Definition: javacodeclassfield.cpp:40
JavaCodeAccessorMethod::update
void update()
Definition: javacodeaccessormethod.cpp:202
JavaCodeAccessorMethod::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: javacodeaccessormethod.cpp:44
CodeClassField::parentIsAttribute
bool parentIsAttribute() const
Definition: codeclassfield.cpp:127
CodeAccessorMethod::SET
@ SET
Definition: codeaccessormethod.h:32
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
CodeAccessorMethod::getParentClassField
CodeClassField * getParentClassField()
Definition: codeaccessormethod.cpp:40
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
javaclassifiercodedocument.h
Uml::Visibility::FromParent
@ FromParent
Definition: basictypes.h:64
CodeParameter::getParentDocument
ClassifierCodeDocument * getParentDocument()
Definition: codeparameter.cpp:133
JavaCodeClassField::getTypeName
QString getTypeName()
Definition: javacodeclassfield.cpp:83
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:64
JavaCodeAccessorMethod::updateContent
virtual void updateContent()
Definition: javacodeaccessormethod.cpp:60
CodeAccessorMethod::getType
AccessorType getType()
Definition: codeaccessormethod.cpp:64
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
Codegen_Utils::capitalizeFirstLetter
QString capitalizeFirstLetter(const QString &string)
Definition: codegen_utils.cpp:430
CodeBlockWithComments::setComment
void setComment(CodeComment *object)
Definition: codeblockwithcomments.cpp:39
JavaCodeClassField
Definition: javacodeclassfield.h:22
attribute.h
JavaCodeAccessorMethod::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: javacodeaccessormethod.cpp:52
javacodeclassfield.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
javacodedocumentation.h
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
JavaCodeAccessorMethod::JavaCodeAccessorMethod
JavaCodeAccessorMethod(CodeClassField *field, CodeAccessorMethod::AccessorType type)
Definition: javacodeaccessormethod.cpp:30
CodeClassField::getListObjectType
QString getListObjectType()
Definition: codeclassfield.cpp:112
codegenerationpolicy.h
JavaCodeAccessorMethod::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: javacodeaccessormethod.cpp:118
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
CodeClassField::maximumListOccurances
int maximumListOccurances()
Definition: codeclassfield.cpp:357
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
JavaCodeAccessorMethod
Definition: javacodeaccessormethod.h:22
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
CodeAccessorMethod::GET
@ GET
Definition: codeaccessormethod.h:32
javacodegenerationpolicy.h
CodeParameter::getVisibility
Uml::Visibility::Enum getVisibility() const
Definition: codeparameter.cpp:89
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:33
CodeAccessorMethod::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeaccessormethod.cpp:137
CodeMethodBlock::setEndMethodText
void setEndMethodText(const QString &value)
Definition: codemethodblock.cpp:66
uError
#define uError()
Definition: debug_utils.h:123
JavaCodeDocumentation
Definition: javacodedocumentation.h:28
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
codeaccessormethod.h
umlobject.h
javacodeaccessormethod.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
codegen_utils.h
JavaCodeAccessorMethod::~JavaCodeAccessorMethod
virtual ~JavaCodeAccessorMethod()
Definition: javacodeaccessormethod.cpp:40