CodeParameter Class Reference
class CodeParameter A parameter on some type of code. More...
#include <codeparameter.h>
Inheritance diagram for CodeParameter:

Public Slots | |
| void | syncToParent () |
| create the string representation of this code parameter. | |
Public Member Functions | |
| CodeParameter (ClassifierCodeDocument *doc, UMLObject *parentObj) | |
| Empty Constructor. | |
| virtual | ~CodeParameter () |
| Empty Destructor. | |
| ClassifierCodeDocument * | getParentDocument () |
| Get the parent Code Document. | |
| UMLObject * | getParentObject () |
| Get the parent UMLObject. | |
| bool | getAbstract () |
| Utility method. | |
| bool | getStatic () |
| Utility method. | |
| QString | getName () const |
| The name of this code parameter. | |
| virtual QString | getTypeName () |
| Get the value of m_typeName the typeName of this parameters (e.g. | |
| Uml::Visibility | getVisibility () const |
| Get the value of m_visibility The visibility of this code parameter. | |
| virtual void | setInitialValue (const QString &new_var) |
| Set the value of m_initialValue The initial value of this code parameter. | |
| virtual QString | getInitialValue () |
| Get the value of m_initialValue The initial value of this code parameter. | |
| void | setComment (CodeComment *comment) |
| Set a Comment. | |
| CodeComment * | getComment () |
| get any Comment object on this | |
| QString | getID () |
Protected Member Functions | |
| virtual void | updateContent ()=0 |
| virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
| set attributes of the node that represents this class in the XMI document. | |
| virtual void | setAttributesFromNode (QDomElement &element) |
| set the class attributes of this object from the passed element node. | |
Detailed Description
class CodeParameter A parameter on some type of code.
Definition at line 34 of file codeparameter.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Empty Constructor.
Definition at line 36 of file codeparameter.cpp. |
|
|
Empty Destructor.
Definition at line 42 of file codeparameter.cpp. |
Member Function Documentation
|
|
Get the parent Code Document.
Definition at line 131 of file codeparameter.cpp. Referenced by CodeClassField::cleanName(), CodeClassField::finishInitialization(), CodeClassField::removeMethod(), and CodeClassField::~CodeClassField(). |
|
|
|
Utility method. Get the value of parent abstract value.
Definition at line 56 of file codeparameter.cpp. References UMLObject::getAbstract(). |
|
|
Utility method. Get the value of parent Static Whether or not this is static.
Definition at line 65 of file codeparameter.cpp. References UMLObject::getStatic(). Referenced by ClassifierCodeDocument::getSpecificClassFields(). |
|
|
The name of this code parameter.
Definition at line 74 of file codeparameter.cpp. References UMLObject::getName(). |
|
|
Get the value of m_typeName the typeName of this parameters (e.g. boolean, int, etc or perhaps Class name of an object)
Reimplemented in CodeClassField. Definition at line 84 of file codeparameter.cpp. References UMLClassifierListItem::getTypeName(). |
|
|
Get the value of m_visibility The visibility of this code parameter.
Definition at line 94 of file codeparameter.cpp. References UMLObject::getVisibility(). Referenced by ClassifierCodeDocument::getSpecificClassFields(). |
|
|
Set the value of m_initialValue The initial value of this code parameter.
Definition at line 103 of file codeparameter.cpp. Referenced by setAttributesFromNode(). |
|
|
Get the value of m_initialValue The initial value of this code parameter.
Definition at line 112 of file codeparameter.cpp. Referenced by setAttributesOnNode(). |
|
|
Set a Comment.
Definition at line 119 of file codeparameter.cpp. |
|
|
get any Comment object on this
Definition at line 126 of file codeparameter.cpp. Referenced by setAttributesFromNode(), setAttributesOnNode(), and syncToParent(). |
|
||||||||||||
|
set attributes of the node that represents this class in the XMI document.
Definition at line 160 of file codeparameter.cpp. References getComment(), getInitialValue(), UMLRole::getRole(), and CodeComment::saveToXMI(). Referenced by CodeClassField::saveToXMI(). |
|
|
set the class attributes of this object from the passed element node.
Definition at line 188 of file codeparameter.cpp. References UMLDoc::findObjectById(), getComment(), UMLApp::getDocument(), UMLAssociation::getUMLRole(), CodeComment::loadFromXMI(), and setInitialValue(). Referenced by CodeClassField::loadFromXMI(). |
|
|
create the string representation of this code parameter.
Definition at line 267 of file codeparameter.cpp. References getComment(), getParentObject(), and TextBlock::setText(). |
The documentation for this class was generated from the following files:
