• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • codegenerators
codeparameter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8  * copyright (C) 2004-2013 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef CODEPARAMETER_H
13 #define CODEPARAMETER_H
14 
15 #include "basictypes.h"
16 #include "codecomment.h"
17 
18 class ClassifierCodeDocument;
19 class UMLObject;
20 
25 class CodeParameter : public QObject
26 {
27  Q_OBJECT
28 public:
29 
30  CodeParameter(ClassifierCodeDocument* doc, UMLObject* parentObj);
31  virtual ~CodeParameter();
32 
33  ClassifierCodeDocument* getParentDocument();
34 
35  UMLObject* getParentObject();
36 
37  bool getAbstract();
38 
39  bool getStatic();
40 
41  QString getName() const;
42 
43  virtual QString getTypeName();
44 
45  Uml::Visibility::Enum getVisibility() const;
46 
47  virtual void setInitialValue(const QString &new_var);
48  virtual QString getInitialValue();
49 
50  void setComment(CodeComment* comment);
51  CodeComment* getComment();
52 
53  // the id of this parameter is the same as the parent UMLObject id.
54  QString ID();
55 
56  virtual void updateContent() = 0;
57 
58 protected:
59 
60  virtual void setAttributesOnNode(QDomDocument& doc, QDomElement& blockElement);
61  virtual void setAttributesFromNode(QDomElement& element);
62 
63 private:
64 
65  ClassifierCodeDocument* m_parentDocument;
66  UMLObject* m_parentObject;
67  CodeComment* m_comment;
68  QString m_initialValue;
69 
70  void initFields(ClassifierCodeDocument* doc, UMLObject* obj);
71 
72 public slots:
73 
74  void syncToParent();
75 
76 };
77 
78 #endif // CODEPARAMETER_H
CodeParameter::CodeParameter
CodeParameter(ClassifierCodeDocument *doc, UMLObject *parentObj)
Constructor.
Definition: codeparameter.cpp:29
ClassifierCodeDocument
class ClassifierCodeDocument A CodeDocument which represents a UMLClassifier (e.g.
Definition: classifiercodedocument.h:33
Uml::Visibility::Enum
Enum
Definition: basictypes.h:56
CodeParameter::setInitialValue
virtual void setInitialValue(const QString &new_var)
Set the value of m_initialValue.
Definition: codeparameter.cpp:99
CodeParameter::getName
QString getName() const
Utility method to get the value of parent object name The name of this code parameter.
Definition: codeparameter.cpp:67
CodeParameter::syncToParent
void syncToParent()
Create the string representation of this code parameter.
Definition: codeparameter.cpp:268
CodeParameter::getAbstract
bool getAbstract()
Utility method to get the value of parent object abstract value.
Definition: codeparameter.cpp:47
codecomment.h
CodeParameter::ID
QString ID()
Definition: codeparameter.cpp:148
QObject
CodeParameter::getParentDocument
ClassifierCodeDocument * getParentDocument()
Get the parent Code Document.
Definition: codeparameter.cpp:133
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
CodeParameter::getInitialValue
virtual QString getInitialValue()
Get the value of m_initialValue The initial value of this code parameter.
Definition: codeparameter.cpp:109
CodeParameter
class CodeParameter A parameter on some type of code.
Definition: codeparameter.h:25
CodeParameter::updateContent
virtual void updateContent()=0
CodeParameter::setComment
void setComment(CodeComment *comment)
Set a Comment object.
Definition: codeparameter.cpp:117
CodeParameter::getComment
CodeComment * getComment()
Get the Comment on this object.
Definition: codeparameter.cpp:125
CodeParameter::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codeparameter.cpp:192
CodeParameter::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codeparameter.cpp:166
CodeParameter::getVisibility
Uml::Visibility::Enum getVisibility() const
Utility method to get the value of parent object scope.
Definition: codeparameter.cpp:89
CodeParameter::getTypeName
virtual QString getTypeName()
Utility method to get the value of parent object type.
Definition: codeparameter.cpp:78
CodeParameter::~CodeParameter
virtual ~CodeParameter()
Destructor.
Definition: codeparameter.cpp:39
CodeComment
Text which will be comments.
Definition: codecomment.h:23
CodeParameter::getStatic
bool getStatic()
Utility method to get the value of parent object static Whether or not this is static.
Definition: codeparameter.cpp:57
basictypes.h
CodeParameter::getParentObject
UMLObject * getParentObject()
Get the ParentObject object.
Definition: codeparameter.cpp:141
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal