OwnedCodeBlock Class Reference
class OwnedCodeBlock Describes any codeblock which is 'owned' by a UMLobject of some sort and should be in sync with that parent. More...
#include <ownedcodeblock.h>
Inheritance diagram for OwnedCodeBlock:

Public Slots | |
| virtual void | syncToParent () |
Public Member Functions | |
| OwnedCodeBlock (UMLObject *parent) | |
| Constructor. | |
| virtual | ~OwnedCodeBlock () |
| Empty Destructor. | |
| UMLObject * | getParentObject () |
| Get the value of m_parentObject. | |
| virtual CodeDocument * | getParentDocument ()=0 |
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 | setAttributesFromObject (TextBlock *obj) |
| set the class attributes from a passed object | |
| virtual void | updateContent ()=0 |
| This is the method called from within syncToParent. | |
Detailed Description
class OwnedCodeBlock Describes any codeblock which is 'owned' by a UMLobject of some sort and should be in sync with that parent.
Definition at line 35 of file ownedcodeblock.h.
Constructor & Destructor Documentation
|
|
Constructor.
Definition at line 37 of file ownedcodeblock.cpp. |
|
|
Empty Destructor.
Definition at line 43 of file ownedcodeblock.cpp. |
Member Function Documentation
|
|
Get the value of m_parentObject.
Reimplemented in CodeClassFieldDeclarationBlock. Definition at line 64 of file ownedcodeblock.cpp. Referenced by setAttributesFromNode(), setAttributesFromObject(), and OwnedHierarchicalCodeBlock::setAttributesOnNode(). |
|
|
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 in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 54 of file ownedcodeblock.cpp. Referenced by OwnedHierarchicalCodeBlock::release(), and CodeMethodBlock::release(). |
|
||||||||||||
|
set attributes of the node that represents this class in the XMI document.
Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 84 of file ownedcodeblock.cpp. References UMLObject::getID(), UMLRole::getParentAssociation(), and UMLRole::getRole(). Referenced by OwnedHierarchicalCodeBlock::setAttributesOnNode(), CodeMethodBlock::setAttributesOnNode(), and CodeClassFieldDeclarationBlock::setAttributesOnNode(). |
|
|
set the class attributes of this object from the passed element node.
Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 111 of file ownedcodeblock.cpp. References UMLDoc::findObjectById(), UMLApp::getDocument(), getParentObject(), and UMLAssociation::getUMLRole(). Referenced by OwnedHierarchicalCodeBlock::setAttributesFromNode(), CodeMethodBlock::setAttributesFromNode(), and CodeClassFieldDeclarationBlock::setAttributesFromNode(). |
|
|
set the class attributes from a passed object
Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 71 of file ownedcodeblock.cpp. References getParentObject(). Referenced by OwnedHierarchicalCodeBlock::setAttributesFromObject(). |
|
|
This is the method called from within syncToParent.
Implemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. |
The documentation for this class was generated from the following files:
