CodeClassFieldDeclarationBlock Class Reference
class CodeClassFieldDeclarationBlock Used to declare classifier fields (e.g. More...
#include <codeclassfielddeclarationblock.h>
Inheritance diagram for CodeClassFieldDeclarationBlock:

Public Slots | |
| virtual void | syncToParent () |
Public Member Functions | |
| CodeClassFieldDeclarationBlock (CodeClassField *parent) | |
| Constructor. | |
| virtual | ~CodeClassFieldDeclarationBlock () |
| Empty Destructor. | |
| CodeClassField * | getParentClassField () |
| Get the value of m_parentclassfield. | |
| UMLObject * | getParentObject () |
| A Utility method to get the parent object of the parentCodeClassfield. | |
| CodeDocument * | getParentDocument () |
| virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
| Save the XMI representation of this object. | |
| virtual void | loadFromXMI (QDomElement &root) |
| load params from the appropriate XMI element node. | |
| virtual void | setAttributesFromObject (TextBlock *obj) |
| set the class attributes from a passed object | |
Protected Member Functions | |
| virtual void | release () |
| causes the text block to release all of its connections and any other text blocks that it 'owns'. | |
| 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. | |
| virtual void | updateContent ()=0 |
| this is called by syncToParent | |
| void | forceRelease () |
Friends | |
| class | CodeClassField |
Detailed Description
class CodeClassFieldDeclarationBlock Used to declare classifier fields (e.g.either class attributes or classifier associations) in the code document for any given code classfield. This is a special CodeBlockWithComments which is "sync'd" to the parent CodeClassField.
Definition at line 34 of file codeclassfielddeclarationblock.h.
Constructor & Destructor Documentation
|
|
Constructor.
Definition at line 27 of file codeclassfielddeclarationblock.cpp. |
|
|
Empty Destructor.
Definition at line 34 of file codeclassfielddeclarationblock.cpp. |
Member Function Documentation
|
|
Get the value of m_parentclassfield.
Definition at line 50 of file codeclassfielddeclarationblock.cpp. Referenced by setAttributesFromObject(). |
|
|
A Utility method to get the parent object of the parentCodeClassfield.
Reimplemented from OwnedCodeBlock. Definition at line 56 of file codeclassfielddeclarationblock.cpp. References CodeParameter::getParentObject(). |
|
||||||||||||
|
Save the XMI representation of this object.
Reimplemented from CodeBlockWithComments. Definition at line 89 of file codeclassfielddeclarationblock.cpp. References setAttributesOnNode(). |
|
|
load params from the appropriate XMI element node.
Reimplemented from CodeBlockWithComments. Definition at line 98 of file codeclassfielddeclarationblock.cpp. References setAttributesFromNode(). |
|
|
set the class attributes from a passed object
Reimplemented from CodeBlockWithComments. Definition at line 125 of file codeclassfielddeclarationblock.cpp. References getParentClassField(), and CodeBlockWithComments::setAttributesFromObject(). |
|
|
causes the text block to release all of its connections and any other text blocks that it 'owns'. needed to be called prior to deletion of the textblock. Reimplemented from OwnedCodeBlock. Definition at line 71 of file codeclassfielddeclarationblock.cpp. |
|
||||||||||||
|
set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeBlockWithComments. Definition at line 103 of file codeclassfielddeclarationblock.cpp. References OwnedCodeBlock::setAttributesOnNode(), and CodeBlockWithComments::setAttributesOnNode(). Referenced by saveToXMI(). |
|
|
set the class attributes of this object from the passed element node.
Reimplemented from CodeBlockWithComments. Definition at line 114 of file codeclassfielddeclarationblock.cpp. References OwnedCodeBlock::setAttributesFromNode(), and CodeBlockWithComments::setAttributesFromNode(). Referenced by loadFromXMI(). |
|
|
this is called by syncToParent
Implements OwnedCodeBlock. |
The documentation for this class was generated from the following files:
