umbrello/umbrello
#include <dcodeaccessormethod.h>
![Inheritance graph](classDCodeAccessorMethod__inherit__graph.png)
Public Member Functions | |
DCodeAccessorMethod (CodeClassField *field, CodeAccessorMethod::AccessorType type) | |
virtual | ~DCodeAccessorMethod () |
void | update () |
virtual void | updateContent () |
virtual void | updateMethodDeclaration () |
![]() | |
CodeAccessorMethod (CodeClassField *field) | |
virtual | ~CodeAccessorMethod () |
CodeClassField * | getParentClassField () |
AccessorType | getType () |
virtual void | loadFromXMI (QDomElement &root) |
bool | parentIsAttribute () |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
virtual void | setAttributesFromObject (TextBlock *obj) |
void | setType (AccessorType type) |
![]() | |
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 |
![]() | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
![]() | |
CodeBlockWithComments (CodeDocument *parent, const QString &body="", const QString &comment="") | |
virtual | ~CodeBlockWithComments () |
CodeComment * | getComment () const |
void | setComment (CodeComment *object) |
void | setOverallIndentationLevel (int level) |
![]() | |
CodeBlock (CodeDocument *parent, const QString &body="") | |
virtual | ~CodeBlock () |
ContentType | contentType () const |
void | setContentType (ContentType new_var) |
![]() | |
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="") |
Protected Member Functions | |
virtual void | setAttributesFromNode (QDomElement &element) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
![]() | |
void | forceRelease () |
virtual void | release () |
![]() | |
void | setEndMethodText (const QString &value) |
void | setStartMethodText (const QString &value) |
![]() | |
void | setCanDelete (bool canDelete) |
Additional Inherited Members | |
![]() | |
enum | AccessorType { GET =0, SET, ADD, REMOVE, LIST } |
![]() | |
enum | ContentType { AutoGenerated =0, UserGenerated } |
![]() | |
virtual void | syncToParent () |
![]() | |
virtual void | syncToParent () |
![]() | |
static QString | enumToString (const ContentType &val) |
![]() | |
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 () |
Detailed Description
Definition at line 21 of file dcodeaccessormethod.h.
Constructor & Destructor Documentation
DCodeAccessorMethod::DCodeAccessorMethod | ( | CodeClassField * | field, |
CodeAccessorMethod::AccessorType | type | ||
) |
Constructor.
Definition at line 31 of file dcodeaccessormethod.cpp.
|
virtual |
Empty Destructor.
Definition at line 41 of file dcodeaccessormethod.cpp.
Member Function Documentation
|
protectedvirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from CodeAccessorMethod.
Definition at line 53 of file dcodeaccessormethod.cpp.
|
protectedvirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeAccessorMethod.
Definition at line 45 of file dcodeaccessormethod.cpp.
void DCodeAccessorMethod::update | ( | ) |
Must be called before this object is usable.
Definition at line 200 of file dcodeaccessormethod.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 CodeAccessorMethod.
Definition at line 61 of file dcodeaccessormethod.cpp.
|
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 CodeAccessorMethod.
Definition at line 119 of file dcodeaccessormethod.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:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.