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

rubycodeaccessormethod.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) 2005 *
8 * Richard Dale <Richard_Dale@tipitina.demon.co.uk> *
9 * copyright (C) 2006-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef RUBYCODEACCESSORMETHOD_H
14 #define RUBYCODEACCESSORMETHOD_H
15
16 #include "codeaccessormethod.h"
17 #include "rubycodeclassfield.h"
18
19 #include <QString>
20
21 class RubyCodeAccessorMethod : public CodeAccessorMethod
22 {
23 Q_OBJECT
24 public:
25
26 RubyCodeAccessorMethod(CodeClassField * field, CodeAccessorMethod::AccessorType type);
27 virtual ~RubyCodeAccessorMethod();
28
29 void update();
30
31 virtual void updateMethodDeclaration();
32 virtual void updateContent();
33
34 protected:
35
36 virtual void setAttributesOnNode(QDomDocument & doc, QDomElement & blockElement);
37 virtual void setAttributesFromNode(QDomElement & element);
38
39 private:
40
41 };
42
43 #endif // RUBYCODEACCESSORMETHOD_H
RubyCodeDocumentation
Definition: rubycodedocumentation.h:30
umlrole.h
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:53
rubycodeaccessormethod.h
rubycodeclassfield.h
CodeClassField::parentIsAttribute
bool parentIsAttribute() const
Definition: codeclassfield.cpp:127
RubyCodeAccessorMethod::updateMethodDeclaration
virtual void updateMethodDeclaration()
Definition: rubycodeaccessormethod.cpp:144
RubyCodeAccessorMethod::update
void update()
Definition: rubycodeaccessormethod.cpp:240
CodeAccessorMethod::SET
@ SET
Definition: codeaccessormethod.h:32
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
CodeAccessorMethod::getParentClassField
CodeClassField * getParentClassField()
Definition: codeaccessormethod.cpp:40
RubyCodeAccessorMethod::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: rubycodeaccessormethod.cpp:70
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
RubyCodeAccessorMethod::updateContent
virtual void updateContent()
Definition: rubycodeaccessormethod.cpp:78
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:64
CodeAccessorMethod::getType
AccessorType getType()
Definition: codeaccessormethod.cpp:64
rubyclassifiercodedocument.h
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
attribute.h
RubyCodeAccessorMethod::RubyCodeAccessorMethod
RubyCodeAccessorMethod(CodeClassField *field, CodeAccessorMethod::AccessorType type)
Definition: rubycodeaccessormethod.cpp:37
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
CodeClassField::getListObjectType
QString getListObjectType()
Definition: codeclassfield.cpp:112
CodeGenerationPolicy
Definition: codegenerationpolicy.h:30
rubycodedocumentation.h
CodeClassField::maximumListOccurances
int maximumListOccurances()
Definition: codeclassfield.cpp:357
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
RubyCodeAccessorMethod
Definition: rubycodeaccessormethod.h:22
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
RubyCodeClassField
Definition: rubycodeclassfield.h:23
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
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
RubyClassifierCodeDocument
Definition: rubyclassifiercodedocument.h:37
codeaccessormethod.h
umlobject.h
RubyCodeClassField::getFieldName
QString getFieldName()
Definition: rubycodeclassfield.cpp:43
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
RubyCodeAccessorMethod::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: rubycodeaccessormethod.cpp:58
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
RubyCodeGenerator::cppToRubyType
static QString cppToRubyType(const QString &cppType)
Definition: rubycodegenerator.cpp:111
CodeAccessorMethod::ADD
@ ADD
Definition: codeaccessormethod.h:32
rubycodegenerator.h
TextBlock::getText
QString getText() const
Definition: textblock.cpp:99
CodeAccessorMethod::AccessorType
AccessorType
Definition: codeaccessormethod.h:32
codegen_utils.h
RubyCodeClassField::getTypeName
QString getTypeName()
Definition: rubycodeclassfield.cpp:88
rubycodegenerationpolicy.h
RubyCodeGenerator::cppToRubyName
static QString cppToRubyName(const QString &cppName)
Definition: rubycodegenerator.cpp:135
RubyCodeAccessorMethod::~RubyCodeAccessorMethod
virtual ~RubyCodeAccessorMethod()
Definition: rubycodeaccessormethod.cpp:50
description
static const char description[]
Definition: main.cpp:37