umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <javacodeaccessormethod.h>
Public Member Functions | |
JavaCodeAccessorMethod (CodeClassField *field, CodeAccessorMethod::AccessorType type) | |
virtual | ~JavaCodeAccessorMethod () |
void | update () |
virtual void | updateMethodDeclaration () |
virtual void | updateContent () |
![]() | |
CodeAccessorMethod (CodeClassField *field) | |
virtual | ~CodeAccessorMethod () |
CodeClassField * | getParentClassField () |
AccessorType | getType () |
void | setType (AccessorType type) |
bool | parentIsAttribute () |
virtual void | saveToXMI (QXmlStreamWriter &writer) |
virtual void | loadFromXMI (QDomElement &root) |
virtual void | setAttributesFromObject (TextBlock *obj) |
![]() | |
CodeMethodBlock (ClassifierCodeDocument *doc, UMLObject *parentObj, const QString &body=QString(), const QString &comment=QString()) | |
virtual | ~CodeMethodBlock () |
virtual QString | toString () const |
QString | getStartMethodText () const |
QString | getEndMethodText () const |
CodeDocument * | getParentDocument () |
![]() | |
OwnedCodeBlock (UMLObject *parent) | |
virtual | ~OwnedCodeBlock () |
UMLObject * | getParentObject () |
![]() | |
CodeBlockWithComments (CodeDocument *parent, const QString &body=QString(), const QString &comment=QString()) | |
virtual | ~CodeBlockWithComments () |
void | setComment (CodeComment *object) |
CodeComment * | getComment () const |
void | setOverallIndentationLevel (int level) |
![]() | |
CodeBlock (CodeDocument *parent, const QString &body=QString()) | |
virtual | ~CodeBlock () |
void | setContentType (ContentType new_var) |
ContentType | contentType () const |
![]() | |
TextBlock (CodeDocument *parent, const QString &text=QString()) | |
virtual | ~TextBlock () |
void | setText (const QString &text) |
QString | getText () const |
void | appendText (const QString &text) |
void | setTag (const QString &value) |
QString | getTag () const |
CodeDocument * | getParentDocument () const |
void | setWriteOutText (bool write) |
bool | getWriteOutText () const |
void | setIndentationLevel (int level) |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
virtual QString | unformatText (const QString &text, const QString &indent=QString()) |
bool | canDelete () const |
virtual QString | getNewEditorLine (int amount=0) |
virtual int | firstEditableLine () |
virtual int | lastEditableLine () |
Protected Member Functions | |
virtual void | setAttributesOnNode (QXmlStreamWriter &writer) |
virtual void | setAttributesFromNode (QDomElement &element) |
![]() | |
virtual void | release () |
void | forceRelease () |
![]() | |
void | setStartMethodText (const QString &value) |
void | setEndMethodText (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 | getIndentation () |
static QString | getNewLineEndingChars () |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | decodeText (const QString &text, const QString &endLine) |
JavaCodeAccessorMethod::JavaCodeAccessorMethod | ( | CodeClassField * | field, |
CodeAccessorMethod::AccessorType | type | ||
) |
Constructor
|
virtual |
Empty Destructor
|
protectedvirtual |
Set the class attributes of this object from the passed element node.
Reimplemented from CodeAccessorMethod.
|
protectedvirtual |
Set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeAccessorMethod.
void JavaCodeAccessorMethod::update | ( | ) |
Must be called before this object is usable.
|
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.
|
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.