umbrello/umbrello
rubyclassdeclarationblock.cpp
Go to the documentation of this file.
19 (RubyClassifierCodeDocument * parentDoc, const QString &startText, const QString &endText, const QString &comment)
20 : OwnedHierarchicalCodeBlock(parentDoc->getParentClassifier(), parentDoc, startText, endText, comment)
54 RubyClassifierCodeDocument *parentDoc = dynamic_cast<RubyClassifierCodeDocument*>(getParentDocument());
97 startText.append(QString(QLatin1String(" < ")) + RubyCodeGenerator::cppToRubyType(concept->name()) + endLine);
101 startText.append(QLatin1String("include ") + RubyCodeGenerator::cppToRubyType(concept->name()) + endLine);
108 startText.append(QString(QLatin1String("include ")) + RubyCodeGenerator::cppToRubyType(concept->name()) + endLine);
115 void RubyClassDeclarationBlock::init (RubyClassifierCodeDocument *parentDoc, const QString &comment)
QString getRubyClassName(const QString &name)
Definition: rubyclassifiercodedocument.cpp:87
QString & append(QChar ch)
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
class OwnedHierarchicalCodeBlock A "chunk" of code within the code document that is "owned" by some u...
Definition: ownedhierarchicalcodeblock.h:26
Definition: classifier.h:47
QDomNode appendChild(const QDomNode &newChild)
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
class RubyCodeDocumentation A Ruby code comment.
Definition: rubycodedocumentation.h:29
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: rubyclassdeclarationblock.cpp:32
void setEndText(const QString &new_var)
Set the value of m_endText.
Definition: hierarchicalcodeblock.cpp:43
class CodeGenerationPolicy This class describes the code generation policy for this project...
Definition: codegenerationpolicy.h:29
UMLClassifier * getParentClassifier()
Get the value of m_parentclassifier.
Definition: classifiercodedocument.cpp:271
QString & remove(int position, int n)
virtual void loadFromXMI(QDomElement &root)
load params from the appropriate XMI element node.
Definition: rubyclassdeclarationblock.cpp:44
void updateContent()
Update the start/end text of this codeblock.
Definition: rubyclassdeclarationblock.cpp:52
RubyClassDeclarationBlock(RubyClassifierCodeDocument *parentDoc, const QString &start=QString(), const QString &endText=QLatin1String("end"), const QString &comment=QString())
Empty Constructor.
Definition: rubyclassdeclarationblock.cpp:19
bool getCodeVerboseDocumentComments() const
Get the value of m_codeVerboseDocumentComments Whether or not verbose code commenting for documentati...
Definition: codegenerationpolicy.cpp:147
virtual void setAttributesFromNode(QDomElement &element)
set the class attributes of this object from the passed element node.
Definition: ownedhierarchicalcodeblock.cpp:83
class RubyClassifierCodeDocument A Ruby UMLClassifier Code Document.
Definition: rubyclassifiercodedocument.h:36
bool isEmpty() const
bool parentIsInterface()
Return if the parent classifier is an interface.
Definition: classifiercodedocument.cpp:413
void setWriteOutText(bool write)
Set the value of m_writeOutText Whether or not to include the text of this TextBlock into a file...
Definition: textblock.cpp:131
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2219
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which this concept inherits from.
Definition: classifier.cpp:624
QString & replace(int position, int n, QChar after)
Definition: classifier.h:47
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
set attributes of the node that represents this class in the XMI document.
Definition: ownedhierarchicalcodeblock.cpp:57
QDomElement createElement(const QString &tagName)
void setComment(CodeComment *object)
Set the Comment object.
Definition: codeblockwithcomments.cpp:38
CodeDocument * getParentDocument()
Return the parent code document.
Definition: ownedhierarchicalcodeblock.cpp:93
static QString cppToRubyType(const QString &cppType)
Convert a C++ type such as 'int' or 'QWidget' to ruby types Integer and Qt::Widget.
Definition: rubycodegenerator.cpp:110
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.