umbrello/umbrello
codemethodblock.cpp
Go to the documentation of this file.
19 CodeMethodBlock::CodeMethodBlock(ClassifierCodeDocument * doc, UMLObject * parentObj, const QString & body, const QString & comment)
virtual void release()
Causes the text block to release all of its connections and any other text blocks that it 'owns'...
Definition: ownedcodeblock.cpp:52
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
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:33
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: ownedcodeblock.cpp:81
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: codeblockwithcomments.cpp:83
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codeblockwithcomments.cpp:68
void setText(const QString &text)
Set the value of m_text The actual text of this code block.
Definition: textblock.cpp:80
the content was generated by code generation itself
Definition: codeblock.h:28
QString getNewLineEndingChars() const
Utility function to get the actual characters.
Definition: codegenerationpolicy.cpp:248
virtual void release()
Causes the text block to release all of its connections and any other text blocks that it 'owns'...
Definition: codemethodblock.cpp:76
virtual void updateContent()=0
This is the method called from within syncToparent() to update the body of the method.
QString getStartMethodText() const
Get the starting text that begins this method before the body is printed.
Definition: codemethodblock.cpp:42
ContentType contentType() const
Get the value of m_contentType specifies whether the content (text) of this object was generated by t...
Definition: codeblock.cpp:54
int getIndentationLevel() const
Get how many times to indent this text block.
Definition: textblock.cpp:163
virtual void updateMethodDeclaration()=0
This is the method called from within syncToparent().
class CodeBlockWithComments A very common type of text block in any type of code. ...
Definition: codeblockwithcomments.h:24
class CodeMethodBlock A common type of "code block" that occurs in OO code.
Definition: codemethodblock.h:28
Describes any codeblock which is 'owned' by a UMLobject of some sort and should be in sync with that ...
Definition: ownedcodeblock.h:26
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codeblockwithcomments.cpp:105
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2132
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codemethodblock.cpp:106
The fundemental unit of text within an output file containing code.
Definition: textblock.h:24
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: ownedcodeblock.cpp:106
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Format a long text string to be more readable.
Definition: textblock.cpp:288
QString getIndentationString(int level=0) const
Get the actual amount of indentation for a given level of indentation.
Definition: textblock.cpp:193
static QString decodeText(const QString &text, const QString &endLine)
Decode text from XML storage.
Definition: textblock.cpp:392
bool getWriteOutText() const
Get the value of m_writeOutText Whether or not to include the text of this TextBlock into a file...
Definition: textblock.cpp:141
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codemethodblock.cpp:87
CodeMethodBlock(ClassifierCodeDocument *doc, UMLObject *parentObj, const QString &body="", const QString &comment="")
Constructors.
Definition: codemethodblock.cpp:19
static QString encodeText(const QString &text, const QString &endLine)
Encode text for XML storage.
Definition: textblock.cpp:378
QString getEndMethodText() const
Get the ending text that finishes this method after the body is printed.
Definition: codemethodblock.cpp:50
QString getText() const
Get the value of m_text The actual text of this code block.
Definition: textblock.cpp:99
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: codemethodblock.cpp:124
virtual void release()
Causes the text block to release all of its connections and any other text blocks that it 'owns'...
Definition: textblock.cpp:275
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.