umbrello API Documentation

OwnedHierarchicalCodeBlock Class Reference

class OwnedHierarchicalCodeBlock A "chunk" of code within the code document that is "owned" by some umlobject. More...

#include <ownedhierarchicalcodeblock.h>

Inheritance diagram for OwnedHierarchicalCodeBlock:

OwnedCodeBlock List of all members.

Public Slots

void syncToParent ()

Public Member Functions

 OwnedHierarchicalCodeBlock (UMLObject *parent, CodeDocument *parentDoc, const QString &start="", const QString &end="", const QString &comment="")
 constructor with QString so we can create & populate it in one step.
virtual ~OwnedHierarchicalCodeBlock ()
 Empty Destructor.
CodeDocumentgetParentDocument ()
virtual void saveToXMI (QDomDocument &doc, QDomElement &root)=0
 Save the XMI representation of this object.
virtual void loadFromXMI (QDomElement &root)=0
 load params from the appropriate XMI element node.

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 OwnedHierarchicalCodeBlock A "chunk" of code within the code document that is "owned" by some umlobject.

This is an abstract class that should be inherited.

Definition at line 30 of file ownedhierarchicalcodeblock.h.


Constructor & Destructor Documentation

OwnedHierarchicalCodeBlock::OwnedHierarchicalCodeBlock UMLObject parent,
CodeDocument parentDoc,
const QString &  start = "",
const QString &  end = "",
const QString &  comment = ""
 

constructor with QString so we can create & populate it in one step.

Definition at line 34 of file ownedhierarchicalcodeblock.cpp.

OwnedHierarchicalCodeBlock::~OwnedHierarchicalCodeBlock  )  [virtual]
 

Empty Destructor.

Definition at line 40 of file ownedhierarchicalcodeblock.cpp.


Member Function Documentation

virtual void OwnedHierarchicalCodeBlock::saveToXMI QDomDocument &  doc,
QDomElement &  root
[pure virtual]
 

Save the XMI representation of this object.

Reimplemented from CodeBlockWithComments.

virtual void OwnedHierarchicalCodeBlock::loadFromXMI QDomElement &  root  )  [pure virtual]
 

load params from the appropriate XMI element node.

Reimplemented from CodeBlockWithComments.

void OwnedHierarchicalCodeBlock::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 from OwnedCodeBlock.

Definition at line 53 of file ownedhierarchicalcodeblock.cpp.

References OwnedCodeBlock::release().

void OwnedHierarchicalCodeBlock::setAttributesOnNode QDomDocument &  doc,
QDomElement &  blockElement
[protected, virtual]
 

set attributes of the node that represents this class in the XMI document.

Reimplemented from OwnedCodeBlock.

Definition at line 64 of file ownedhierarchicalcodeblock.cpp.

References OwnedCodeBlock::getParentObject(), UMLRole::getRole(), and OwnedCodeBlock::setAttributesOnNode().

void OwnedHierarchicalCodeBlock::setAttributesFromNode QDomElement &  root  )  [protected, virtual]
 

set the class attributes of this object from the passed element node.

Reimplemented from OwnedCodeBlock.

Definition at line 89 of file ownedhierarchicalcodeblock.cpp.

References OwnedCodeBlock::setAttributesFromNode().

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

set the class attributes from a passed object

Reimplemented from OwnedCodeBlock.

Definition at line 58 of file ownedhierarchicalcodeblock.cpp.

References OwnedCodeBlock::setAttributesFromObject().

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

This is the method called from within syncToParent.

Implements OwnedCodeBlock.


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