umbrello API Documentation

CodeClassFieldDeclarationBlock Class Reference

class CodeClassFieldDeclarationBlock Used to declare classifier fields (e.g. More...

#include <codeclassfielddeclarationblock.h>

Inheritance diagram for CodeClassFieldDeclarationBlock:

CodeBlockWithComments OwnedCodeBlock CodeBlock TextBlock List of all members.

Public Slots

virtual void syncToParent ()

Public Member Functions

 CodeClassFieldDeclarationBlock (CodeClassField *parent)
 Constructor.
virtual ~CodeClassFieldDeclarationBlock ()
 Empty Destructor.
CodeClassFieldgetParentClassField ()
 Get the value of m_parentclassfield.
UMLObjectgetParentObject ()
 A Utility method to get the parent object of the parentCodeClassfield.
CodeDocumentgetParentDocument ()
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

CodeClassFieldDeclarationBlock::CodeClassFieldDeclarationBlock CodeClassField parentCF  ) 
 

Constructor.

Definition at line 27 of file codeclassfielddeclarationblock.cpp.

CodeClassFieldDeclarationBlock::~CodeClassFieldDeclarationBlock  )  [virtual]
 

Empty Destructor.

Definition at line 34 of file codeclassfielddeclarationblock.cpp.


Member Function Documentation

CodeClassField * CodeClassFieldDeclarationBlock::getParentClassField  ) 
 

Get the value of m_parentclassfield.

Returns:
the value of m_parentclassfield

Definition at line 50 of file codeclassfielddeclarationblock.cpp.

Referenced by setAttributesFromObject().

UMLObject * CodeClassFieldDeclarationBlock::getParentObject  ) 
 

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

void CodeClassFieldDeclarationBlock::saveToXMI QDomDocument &  doc,
QDomElement &  elem
[virtual]
 

Save the XMI representation of this object.

Reimplemented from CodeBlockWithComments.

Definition at line 89 of file codeclassfielddeclarationblock.cpp.

References setAttributesOnNode().

void CodeClassFieldDeclarationBlock::loadFromXMI QDomElement &  root  )  [virtual]
 

load params from the appropriate XMI element node.

Reimplemented from CodeBlockWithComments.

Definition at line 98 of file codeclassfielddeclarationblock.cpp.

References setAttributesFromNode().

void CodeClassFieldDeclarationBlock::setAttributesFromObject TextBlock obj  )  [virtual]
 

set the class attributes from a passed object

Reimplemented from CodeBlockWithComments.

Definition at line 125 of file codeclassfielddeclarationblock.cpp.

References getParentClassField(), and CodeBlockWithComments::setAttributesFromObject().

void CodeClassFieldDeclarationBlock::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 71 of file codeclassfielddeclarationblock.cpp.

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

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

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

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

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

this is called by 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:04 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003