Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.uml.generator

Class UMLGeneratorController

com.gentleware.poseidon.generator.CoreGeneratorController
    inheritcom.gentleware.poseidon.uml.generator.UMLGeneratorController

public class UMLGeneratorController


This class gives an implementation for controlling a code generation process based on UML models. The process itself consist of only a few steps, preparation of the model information, checking the prepared information, creating the code files and optionally compile the code.
See also:
UMLGenerator


 Attribute Summary
private String  _logIdPrefix
 
arrow_up
 

 Constructor Summary
public   UMLGeneratorController(String language)
 
public   UMLGeneratorController()
 
arrow_up
 

 Method Summary
private int   checkErrors(UMLGenerator umlGenerator, ModelElement elementNode, JTextArea errorTextArea, boolean ignoreErrors)
 
public String   generateCode(List nodes, CheckNode rootElement, JTextArea errorTextArea)
This method controls the code generation process. 
private void   generateTargets(ModelElement elementNode, UMLGenerator umlGenerator, String path)
 
protected PoseidonProject   getProject()
Currently, we operate on the current project. 
private final void   init()
 
public boolean   isGeneraterValid()
 
public int   roundtripGenerateCode(RefObject primaryClassifier, List secondaryClassifiers, String filePath, JTextArea errorTextArea, boolean ignoreErrors)
 
private void   updateGenerationTimestamp(RefObject primaryClassifier, List secondaryClassifiers, List generatedFiles)
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 41
gentleware-imported-package-statement-line-number 5
 

 Attribute Detail

_logIdPrefix

private String _logIdPrefix

arrow_up
 Constructor Detail

UMLGeneratorController

public com.gentleware.poseidon.uml.generator.UMLGeneratorController UMLGeneratorController(String language)

Parameters:
language -
Returns:
arrow_up


UMLGeneratorController

public com.gentleware.poseidon.uml.generator.UMLGeneratorController UMLGeneratorController()

Returns:
arrow_up
 Method Detail

checkErrors

private int checkErrors(UMLGenerator umlGenerator, ModelElement elementNode, JTextArea errorTextArea, boolean ignoreErrors)

Parameters:
umlGenerator -
elementNode -
errorTextArea -
ignoreErrors -
Returns:
arrow_up


generateCode

public String generateCode(List nodes, CheckNode rootElement, JTextArea errorTextArea)


This method controls the code generation process. The code is created for the given list of nodes. Any occurring errors will be logged into a given text area for being displayed by the code generation dialog.  
Parameters:
nodes - List of nodes code should be created for.
rootElement - Top-level node representing the entry point for the node tree.
errorTextArea - Text area that will hold the occurring error messages for being displayed later.
Returns:
Concatenation of all occurring error messages.
See also:
UMLGenerator
arrow_up


generateTargets

private void generateTargets(ModelElement elementNode, UMLGenerator umlGenerator, String path)

Parameters:
elementNode -
umlGenerator -
path -
arrow_up


getProject

protected PoseidonProject getProject()


Currently, we operate on the current project. However, this may change, and therefore we encapsulate the access to the project in this method.  
Returns:
The project for which we generate code.
arrow_up


init

private final void init()

arrow_up


isGeneraterValid

public boolean isGeneraterValid()

Returns:
arrow_up


roundtripGenerateCode

public int roundtripGenerateCode(RefObject primaryClassifier, List secondaryClassifiers, String filePath, JTextArea errorTextArea, boolean ignoreErrors)

Parameters:
primaryClassifier -
secondaryClassifiers -
filePath -
errorTextArea -
ignoreErrors -
Returns:
arrow_up


updateGenerationTimestamp

private void updateGenerationTimestamp(RefObject primaryClassifier, List secondaryClassifiers, List generatedFiles)

Parameters:
primaryClassifier -
secondaryClassifiers -
generatedFiles -
arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.