umbrello/umbrello
#include <xmlelementcodeblock.h>
Public Member Functions | |
XMLElementCodeBlock (CodeDocument *parentDoc, const QString &nodeName, const QString &comment="") | |
virtual | ~XMLElementCodeBlock () |
void | addAttribute (UMLAttribute *at) |
virtual UMLAttributeList * | getAttributeList () |
virtual QString | getNodeName () |
virtual void | loadFromXMI (QDomElement &root) |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
virtual void | setNodeName (const QString &name) |
void | updateContent () |
Public Member Functions inherited from HierarchicalCodeBlock | |
HierarchicalCodeBlock (CodeDocument *doc, const QString &startString="", const QString &endString="", const QString &comment="") | |
virtual | ~HierarchicalCodeBlock () |
void | addCodeClassFieldMethods (CodeClassFieldList &list) |
bool | addTextBlock (TextBlock *add_object) |
QString | getEndText () const |
QString | getStartText () const |
QString | getUniqueTag () |
QString | getUniqueTag (const QString &prefix) |
bool | insertTextBlock (TextBlock *newBlock, TextBlock *existingBlock, bool after=true) |
virtual CodeBlock * | newCodeBlock () |
virtual CodeBlockWithComments * | newCodeBlockWithComments () |
virtual HierarchicalCodeBlock * | newHierarchicalCodeBlock () |
bool | removeTextBlock (TextBlock *remove_object) |
void | setEndText (const QString &new_var) |
void | setStartText (const QString &text) |
virtual QString | toString () const |
Public Member Functions inherited from CodeBlockWithComments | |
CodeBlockWithComments (CodeDocument *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeBlockWithComments () |
CodeComment * | getComment () const |
void | setComment (CodeComment *object) |
void | setOverallIndentationLevel (int level) |
Public Member Functions inherited from CodeBlock | |
CodeBlock (CodeDocument *parent, const QString &body="") | |
virtual | ~CodeBlock () |
ContentType | contentType () const |
void | setContentType (ContentType new_var) |
Public Member Functions inherited from TextBlock | |
TextBlock (CodeDocument *parent, const QString &text="") | |
virtual | ~TextBlock () |
void | appendText (const QString &text) |
bool | canDelete () const |
virtual int | firstEditableLine () |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
virtual QString | getNewEditorLine (int amount=0) |
CodeDocument * | getParentDocument () const |
QString | getTag () const |
QString | getText () const |
bool | getWriteOutText () const |
virtual int | lastEditableLine () |
void | setIndentationLevel (int level) |
void | setTag (const QString &value) |
void | setText (const QString &text) |
void | setWriteOutText (bool write) |
virtual QString | unformatText (const QString &text, const QString &indent="") |
Public Member Functions inherited from CodeGenObjectWithTextBlocks | |
CodeGenObjectWithTextBlocks (CodeDocument *parent) | |
virtual | ~CodeGenObjectWithTextBlocks () |
CodeBlockWithComments * | addOrUpdateTaggedCodeBlockWithComments (const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate) |
CodeComment * | addOrUpdateTaggedCodeComment (const QString &tag="", const QString &text="", int indentationLevel=0) |
CodeGenObjectWithTextBlocks * | findParentObjectForTaggedTextBlock (const QString &tag) |
TextBlock * | findTextBlockByTag (const QString &tag) |
virtual CodeBlockWithComments * | getCodeBlockWithComments (const QString &tag, const QString &comment, int indentLevel) |
virtual HierarchicalCodeBlock * | getHierarchicalCodeBlock (const QString &tag, const QString &comment, int indentLevel) |
TextBlockList * | getTextBlockList () const |
Protected Member Functions | |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
Protected Member Functions inherited from HierarchicalCodeBlock | |
TextBlock * | findCodeClassFieldTextBlockByTag (const QString &tag) |
virtual void | release () |
virtual void | setAttributesFromObject (TextBlock *obj) |
Protected Member Functions inherited from TextBlock | |
void | setCanDelete (bool canDelete) |
Protected Member Functions inherited from CodeGenObjectWithTextBlocks | |
virtual void | loadChildTextBlocksFromNode (QDomElement &root) |
virtual void | resetTextBlocks () |
void | setAttributesFromObject (CodeGenObjectWithTextBlocks *obj) |
Additional Inherited Members | |
Public Types inherited from CodeBlock | |
enum | ContentType { AutoGenerated =0, UserGenerated } |
Static Public Member Functions inherited from CodeBlock | |
static QString | enumToString (const ContentType &val) |
Static Public Member Functions inherited from TextBlock | |
static QString | decodeText (const QString &text, const QString &endLine) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | getIndentation () |
static QString | getNewLineEndingChars () |
Protected Attributes inherited from CodeGenObjectWithTextBlocks | |
QMap< QString, TextBlock * > | m_textBlockTagMap |
TextBlockList | m_textblockVector |
Detailed Description
Definition at line 23 of file xmlelementcodeblock.h.
Constructor & Destructor Documentation
XMLElementCodeBlock::XMLElementCodeBlock | ( | CodeDocument * | parentDoc, |
const QString & | nodeName, | ||
const QString & | comment = "" |
||
) |
Empty Constructor.
Definition at line 21 of file xmlelementcodeblock.cpp.
|
virtual |
Empty Destructor.
Definition at line 27 of file xmlelementcodeblock.cpp.
Member Function Documentation
void XMLElementCodeBlock::addAttribute | ( | UMLAttribute * | at | ) |
Definition at line 87 of file xmlelementcodeblock.cpp.
|
virtual |
Definition at line 92 of file xmlelementcodeblock.cpp.
|
virtual |
Definition at line 82 of file xmlelementcodeblock.cpp.
|
virtual |
Load params from the appropriate XMI element node.
load params from the appropriate XMI element node.
Reimplemented from HierarchicalCodeBlock.
Definition at line 46 of file xmlelementcodeblock.cpp.
|
virtual |
Save the XMI representation of this object.
Reimplemented from HierarchicalCodeBlock.
Definition at line 34 of file xmlelementcodeblock.cpp.
|
protectedvirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from HierarchicalCodeBlock.
Definition at line 68 of file xmlelementcodeblock.cpp.
|
protectedvirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from HierarchicalCodeBlock.
Definition at line 55 of file xmlelementcodeblock.cpp.
|
virtual |
Definition at line 77 of file xmlelementcodeblock.cpp.
void XMLElementCodeBlock::updateContent | ( | ) |
Update the start/end text of this codeblock.
Update the start and end text for this ownedhierarchicalcodeblock.
Definition at line 100 of file xmlelementcodeblock.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.