umbrello API Documentation

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:

CodeClassFieldDeclarationBlock CodeMethodBlock OwnedHierarchicalCodeBlock List of all members.

Public Slots

virtual void syncToParent ()

Public Member Functions

 OwnedCodeBlock (UMLObject *parent)
 Constructor.
virtual ~OwnedCodeBlock ()
 Empty Destructor.
UMLObjectgetParentObject ()
 Get the value of m_parentObject.
virtual CodeDocumentgetParentDocument ()=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

OwnedCodeBlock::OwnedCodeBlock UMLObject parent  ) 
 

Constructor.

Definition at line 37 of file ownedcodeblock.cpp.

OwnedCodeBlock::~OwnedCodeBlock  )  [virtual]
 

Empty Destructor.

Definition at line 43 of file ownedcodeblock.cpp.


Member Function Documentation

UMLObject * OwnedCodeBlock::getParentObject  ) 
 

Get the value of m_parentObject.

Returns:
UMLObject

Reimplemented in CodeClassFieldDeclarationBlock.

Definition at line 64 of file ownedcodeblock.cpp.

Referenced by setAttributesFromNode(), setAttributesFromObject(), and OwnedHierarchicalCodeBlock::setAttributesOnNode().

void OwnedCodeBlock::release  )  [protected, virtual]
 

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().

void OwnedCodeBlock::setAttributesOnNode QDomDocument &  doc,
QDomElement &  elem
[protected, virtual]
 

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().

void OwnedCodeBlock::setAttributesFromNode QDomElement &  elem  )  [protected, virtual]
 

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().

void OwnedCodeBlock::setAttributesFromObject TextBlock obj  )  [protected, virtual]
 

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().

virtual void OwnedCodeBlock::updateContent  )  [protected, pure virtual]
 

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:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003