umbrello/umbrello
cppheadercodeaccessormethod.cpp
Go to the documentation of this file.
27 CPPHeaderCodeAccessorMethod::CPPHeaderCodeAccessorMethod(CodeClassField * field, CodeAccessorMethod::AccessorType type)
108 headerText = "Add a "+fieldName+" object to the "+fieldName+"List"+endLine+getParentObject()->doc()+endLine+tag+"return void";
114 headerText = "Remove a "+fieldName+" object from the "+fieldName+"List"+endLine+getParentObject()->doc()+endLine+tag+"return void";
119 headerText = "Get the "+fieldName+"List"+endLine+getParentObject()->doc()+endLine+tag+"return "+vectorClassName+"with list of objects";
125 headerText = "Set the value of "+fieldName+endLine+getParentObject()->doc()+endLine+tag+"param value the value of "+fieldName;
131 headerText = "Get the value of "+fieldName+endLine+getParentObject()->doc()+endLine+tag+"return the value of "+fieldName;
void setType(AccessorType type)
Set the type of accessor method this is.
Definition: codeaccessormethod.cpp:72
QString getVectorClassName()
Definition: cppcodegenerationpolicy.cpp:172
void setEndMethodText(const QString &value)
Set the ending text that finishes this method after the body is printed.
Definition: codemethodblock.cpp:66
void setStartMethodText(const QString &value)
Set the starting text that begins this method before the body is printed.
Definition: codemethodblock.cpp:58
CPPHeaderCodeAccessorMethod(CodeClassField *field, CodeAccessorMethod::AccessorType type)
Empty Constructor.
Definition: cppheadercodeaccessormethod.cpp:27
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:33
void setText(const QString &text)
Set the value of m_text The actual text of this code block.
Definition: textblock.cpp:80
QString getNewLineEndingChars() const
Utility function to get the actual characters.
Definition: codegenerationpolicy.cpp:248
AccessorType getType()
Utility method to get the value of the parent object of the parent classifield.
Definition: codeaccessormethod.cpp:64
CodeClassField * getParentClassField()
Get the value of m_parentclassfield.
Definition: codeaccessormethod.cpp:40
void setOverallIndentationLevel(int level)
A utility method that causes the comment and body of the code block to have the same indentation leve...
Definition: codeblockwithcomments.cpp:163
QString getVectorMethodRemove(const QString &variableName="", const QString &itemClassName="")
Definition: cppcodegenerationpolicy.cpp:266
virtual void updateContent()
This is the method called from within syncToparent() to update the body of the method.
Definition: cppheadercodeaccessormethod.cpp:44
virtual ~CPPHeaderCodeAccessorMethod()
Empty Destructor.
Definition: cppheadercodeaccessormethod.cpp:39
ClassifierCodeDocument * getParentDocument()
Get the parent Code Document.
Definition: codeparameter.cpp:133
Definition: codeaccessormethod.h:32
bool getAccessorsAreInline()
Get the value of m_inlineAccessors.
Definition: cppcodegenerationpolicy.cpp:81
Definition: codeaccessormethod.h:32
Definition: cppcodeclassfield.h:21
Definition: codeaccessormethod.h:20
Definition: codeaccessormethod.h:32
class CPPCodeDocumentation A CPP code comment.
Definition: cppcodedocumentation.h:27
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2132
void update()
Must be called before this object is usable.
Definition: cppheadercodeaccessormethod.cpp:33
Definition: codeaccessormethod.h:32
Base class for programming language specific code generation policy extensions.
Definition: codegenpolicyext.h:28
QString getVectorMethodAppend(const QString &variableName="", const QString &itemClassName="")
More flexible generation.
Definition: cppcodegenerationpolicy.cpp:255
virtual void updateMethodDeclaration()
This is the method called from within syncToparent().
Definition: cppheadercodeaccessormethod.cpp:79
void setComment(CodeComment *object)
Set the Comment object.
Definition: codeblockwithcomments.cpp:38
QString getDocToolTag()
Definition: cppcodegenerationpolicy.cpp:212
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.