umbrello/umbrello
xmlelementcodeblock.cpp
Go to the documentation of this file.
21 XMLElementCodeBlock::XMLElementCodeBlock (CodeDocument * parentDoc, const QString & nodeName, const QString & comment)
121 // now set close of starting/ending node, the style depending on whether we have child text or not
135 void XMLElementCodeBlock::init (CodeDocument *parentDoc, const QString &nodeName, const QString &comment)
virtual void setNodeName(const QString &name)
Definition: xmlelementcodeblock.cpp:77
QString & append(QChar ch)
XMLElementCodeBlock(CodeDocument *parentDoc, const QString &nodeName, const QString &comment=QString())
Empty Constructor.
Definition: xmlelementcodeblock.cpp:21
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
void setText(const QString &text)
Set the value of m_text The actual text of this code block.
Definition: textblock.cpp:80
void setEndText(const QString &new_var)
Set the value of m_endText.
Definition: hierarchicalcodeblock.cpp:43
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
static QString getNewLineEndingChars()
Get the new line chars which ends the line.
Definition: textblock.cpp:172
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: xmlelementcodeblock.cpp:46
int count(const T &value) const
void append(const T &value)
void setAttribute(const QString &name, const QString &value)
bool isEmpty() const
void addAttribute(UMLAttribute *at)
Definition: xmlelementcodeblock.cpp:87
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: xmlelementcodeblock.cpp:68
void setStartText(const QString &text)
Definition: hierarchicalcodeblock.cpp:199
TextBlockList * getTextBlockList() const
Get the list of TextBlock objects held by m_textblockVector.
Definition: codegenobjectwithtextblocks.cpp:46
virtual UMLAttributeList * getAttributeList()
Definition: xmlelementcodeblock.cpp:92
void updateContent()
Update the start/end text of this codeblock.
Definition: xmlelementcodeblock.cpp:100
Definition: hierarchicalcodeblock.h:22
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: xmlelementcodeblock.cpp:55
QDomElement createElement(const QString &tagName)
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &elem)
set attributes of the node that represents this class in the XMI document.
Definition: hierarchicalcodeblock.cpp:251
virtual void setAttributesFromNode(QDomElement &element)
set the class attributes of this object from the passed element node.
Definition: hierarchicalcodeblock.cpp:278
void setComment(CodeComment *object)
Set the Comment object.
Definition: codeblockwithcomments.cpp:38
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: xmlelementcodeblock.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 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:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.