codeoperation.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CODEOPERATION_H
00018 #define CODEOPERATION_H
00019
00020 #include <qstring.h>
00021
00022 #include "codemethodblock.h"
00023 #include "operation.h"
00024
00025
00026
00027 class CodeOperation : public CodeMethodBlock
00028 {
00029 Q_OBJECT
00030 public:
00031
00032
00033
00034
00038 CodeOperation ( ClassifierCodeDocument * doc , UMLOperation * parent,
00039 const QString & body = "", const QString & comment = "");
00040
00044 virtual ~CodeOperation ( );
00045
00049 UMLOperation * getParentOperation( );
00050
00054 virtual void saveToXMI ( QDomDocument & doc, QDomElement & root );
00055
00059 virtual void loadFromXMI ( QDomElement & root );
00060
00063 static QString findTag (UMLOperation * op) ;
00064
00067 virtual void setAttributesFromObject (TextBlock * obj);
00068
00069 protected:
00070
00071
00072
00073
00077 virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement);
00078
00082 virtual void setAttributesFromNode ( QDomElement & element);
00083
00084 virtual void updateMethodDeclaration() = 0;
00085 virtual void updateContent();
00086
00087 private:
00088
00089 UMLOperation * m_parentOperation;
00090 void init (UMLOperation * parentOp);
00091
00092 };
00093
00094 #endif // CODEOPERATION_H
This file is part of the documentation for umbrello Version 3.1.0.