umbrello/umbrello
#include <codeoperation.h>
Public Member Functions | |
CodeOperation (ClassifierCodeDocument *doc, UMLOperation *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeOperation () |
UMLOperation * | getParentOperation () |
virtual void | loadFromXMI (QDomElement &root) |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
virtual void | setAttributesFromObject (TextBlock *obj) |
virtual void | updateContent () |
virtual void | updateMethodDeclaration ()=0 |
Public Member Functions inherited from CodeMethodBlock | |
CodeMethodBlock (ClassifierCodeDocument *doc, UMLObject *parentObj, const QString &body="", const QString &comment="") | |
virtual | ~CodeMethodBlock () |
QString | getEndMethodText () const |
CodeDocument * | getParentDocument () |
QString | getStartMethodText () const |
virtual QString | toString () const |
Public Member Functions inherited from OwnedCodeBlock | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
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="") |
Static Public Member Functions | |
static QString | findTag (UMLOperation *op) |
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 Member Functions | |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
Protected Member Functions inherited from CodeMethodBlock | |
virtual void | release () |
void | setEndMethodText (const QString &value) |
void | setStartMethodText (const QString &value) |
Protected Member Functions inherited from TextBlock | |
void | setCanDelete (bool canDelete) |
Additional Inherited Members | |
Public Types inherited from CodeBlock | |
enum | ContentType { AutoGenerated =0, UserGenerated } |
Public Slots inherited from CodeMethodBlock | |
virtual void | syncToParent () |
Public Slots inherited from OwnedCodeBlock | |
virtual void | syncToParent () |
Detailed Description
Definition at line 23 of file codeoperation.h.
Constructor & Destructor Documentation
CodeOperation::CodeOperation | ( | ClassifierCodeDocument * | doc, |
UMLOperation * | parent, | ||
const QString & | body = "" , |
||
const QString & | comment = "" |
||
) |
Constructors.
Definition at line 22 of file codeoperation.cpp.
|
virtual |
Empty Destructor.
Definition at line 28 of file codeoperation.cpp.
Member Function Documentation
|
static |
Find the value of the tag that this operation would have.
Definition at line 91 of file codeoperation.cpp.
UMLOperation * CodeOperation::getParentOperation | ( | ) |
Add a Parameter object to the m_parameterVector List.
Remove a Parameter object from m_parameterVector List Get the list of Parameter objects held by m_parameterVector
- Returns
- QList<CodeParameter*> list of Parameter objects held by m_parameterVector
Definition at line 64 of file codeoperation.cpp.
|
virtual |
Load params from the appropriate XMI element node.
Reimplemented from CodeBlockWithComments.
Definition at line 83 of file codeoperation.cpp.
|
virtual |
Save the XMI representation of this object.
Reimplemented from CodeBlockWithComments.
Definition at line 72 of file codeoperation.cpp.
|
protectedvirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from CodeMethodBlock.
Definition at line 109 of file codeoperation.cpp.
|
virtual |
Set the class attributes from a passed object.
Reimplemented from CodeMethodBlock.
Definition at line 133 of file codeoperation.cpp.
|
protectedvirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeMethodBlock.
Definition at line 100 of file codeoperation.cpp.
|
virtual |
This is the method called from within syncToparent() to update the body of the method.
It is only called if the method is Auto-generated.
Implements CodeMethodBlock.
Reimplemented in CPPSourceCodeOperation, and CPPHeaderCodeOperation.
Definition at line 151 of file codeoperation.cpp.
|
pure virtual |
This is the method called from within syncToparent().
To update the start and end Method text. It is called whether or not the method is Auto or User generated.
Implements CodeMethodBlock.
Implemented in RubyCodeOperation, DCodeOperation, JavaCodeOperation, CPPHeaderCodeOperation, and CPPSourceCodeOperation.
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:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.