umbrello API Documentation

CodeGenFactory Namespace Reference

CodeGenFactory allows creating the available code generators as well as the auxiliary objects required for the advanced code generators. More...


Functions

CodeGeneratorcreateObject (Uml::Programming_Language pl)
 Create a code generator specific to the given language.
CodeDocumentnewClassifierCodeDocument (UMLClassifier *c)
 Currently unused (for possible future use).
CodeOperation * newCodeOperation (ClassifierCodeDocument *ccd, UMLOperation *op)
 Create a CodeOperation belonging to the given ClassifierCodeDocument.
CodeClassFieldnewCodeClassField (ClassifierCodeDocument *ccd, UMLAttribute *at)
 Create an attribute CodeClassField belonging to the given ClassifierCodeDocument.
CodeClassFieldnewCodeClassField (ClassifierCodeDocument *ccd, UMLRole *role)
 Create an association role CodeClassField belonging to the given ClassifierCodeDocument.
CodeAccessorMethod * newCodeAccessorMethod (ClassifierCodeDocument *ccd, CodeClassField *cf, CodeAccessorMethod::AccessorType type)
 Create a CodeAccessorMethod object belonging to the given ClassifierCodeDocument.
CodeClassFieldDeclarationBlocknewDeclarationCodeBlock (ClassifierCodeDocument *cd, CodeClassField *cf)
 Create a CodeClassFieldDeclarationBlock object belonging to the given ClassifierCodeDocument.
CodeCommentnewCodeComment (CodeDocument *cd)
 Create a new CodeComment object belonging to the given CodeDocument.


Detailed Description

CodeGenFactory allows creating the available code generators as well as the auxiliary objects required for the advanced code generators.

Author:
Jonathan Riddell

Oliver Kellogg <okellogg@users.sourceforge.net> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org


Function Documentation

CodeGenerator * CodeGenFactory::createObject Uml::Programming_Language  pl  ) 
 

Create a code generator specific to the given language.

Definition at line 93 of file codegenfactory.cpp.

References CodeGenerator::connect_newcodegen_slots(), CodeGenerator::initFromParentDocument(), and UMLApp::setPolicyExt().

Referenced by UMLApp::setGenerator().

CodeDocument * CodeGenFactory::newClassifierCodeDocument UMLClassifier classifier  ) 
 

Currently unused (for possible future use).

Definition at line 183 of file codegenfactory.cpp.

References ClassifierCodeDocument::initCodeClassFields(), and ClassifierCodeDocument::synchronize().

CodeOperation * CodeGenFactory::newCodeOperation ClassifierCodeDocument cd,
UMLOperation op
 

Create a CodeOperation belonging to the given ClassifierCodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent ClassifierCodeDocument.
op the related UMLOperation
Returns:
CodeOperation which is specific to the current language

Definition at line 207 of file codegenfactory.cpp.

Referenced by ClassifierCodeDocument::addOperation(), and CodeGenObjectWithTextBlocks::loadChildTextBlocksFromNode().

CodeClassField * CodeGenFactory::newCodeClassField ClassifierCodeDocument cd,
UMLAttribute at
 

Create an attribute CodeClassField belonging to the given ClassifierCodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent ClassifierCodeDocument
at attribute which is parent of this class field
Returns:
CodeClassField which is specific to the current language

Definition at line 233 of file codegenfactory.cpp.

References CodeClassField::finishInitialization().

Referenced by ClassifierCodeDocument::addAttributeClassField(), and ClassifierCodeDocument::initCodeClassFields().

CodeClassField * CodeGenFactory::newCodeClassField ClassifierCodeDocument cd,
UMLRole role
 

Create an association role CodeClassField belonging to the given ClassifierCodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent ClassifierCodeDocument
role association role which is parent of this class field
Returns:
CodeClassField which is specific to the current language

Definition at line 252 of file codegenfactory.cpp.

CodeAccessorMethod * CodeGenFactory::newCodeAccessorMethod ClassifierCodeDocument cd,
CodeClassField cf,
CodeAccessorMethod::AccessorType  type
 

Create a CodeAccessorMethod object belonging to the given ClassifierCodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent ClassifierCodeDocument
cf CodeClassField which is parent of this object
type CodeAccessorMethod::AccessorType to create
Returns:
CodeAccessorMethod which is specific to the current language

Definition at line 270 of file codegenfactory.cpp.

CodeClassFieldDeclarationBlock * CodeGenFactory::newDeclarationCodeBlock ClassifierCodeDocument cd,
CodeClassField cf
 

Create a CodeClassFieldDeclarationBlock object belonging to the given ClassifierCodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent ClassifierCodeDocument
cf CodeClassField which is parent of this object
Returns:
CodeClassFieldDeclarationBlock which is specific to the current language

Definition at line 311 of file codegenfactory.cpp.

Referenced by CodeClassField::finishInitialization().

CodeComment * CodeGenFactory::newCodeComment CodeDocument cd  ) 
 

Create a new CodeComment object belonging to the given CodeDocument.

Only applies to the advanced generators.

Parameters:
cd the parent CodeDocument
Returns:
CodeBlockWithComments

Definition at line 337 of file codegenfactory.cpp.

Referenced by CodeGenObjectWithTextBlocks::addOrUpdateTaggedCodeComment(), and CodeGenObjectWithTextBlocks::loadChildTextBlocksFromNode().

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