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 UMLGenerator

com.gentleware.poseidon.generator.CoreGenerator
    inheritcom.gentleware.poseidon.uml.generator.UMLGenerator
All known Subclassifier:
DefaultUMLGenerator


public abstract class UMLGenerator


The base class for all UML-based code generation.
Authors:
Thorsten Sturm


 Attribute Summary
private static String  JAVA_LANGUAGE_NAME
 
private String  _logIdPrefix
 
arrow_up
 

 Association Summary
private UmlProject  _project
 
arrow_up
 

 Constructor Summary
public   UMLGenerator(UmlProject project)
 
public   UMLGenerator()
 
arrow_up
 

 Method Summary
public void   compilePost(String path)
Contains actions that should be done after the compilation. 
protected List   generateFilesToPersistTarget(Object element, String targetLocation, Object predicate)
 
protected List   generateToMultipleDisplays(Object element, Object predicate)
 
public UmlProject   getProject()
 
public void   init()
 
public void   init(String language)
 
public final void   initInternal()
Sets the correct project and calls init. 
public final void   initInternalJava()
Sets the correct project and calls init. 
private PreparedElement   prepare(RefObject refObject, String sourcepath, ElementPreparator preparator)
 
public void   prepareClassifier(RefObject primaryClassifier, List secondaryClassifiers)
 
public void   prepareFromRootElement(CheckNode root)
Starts preparing the element information, starting with the given root element and moving recursively down the tree. 
protected PreparedElement   prepareNode(CheckNode node)
 
private boolean   prepareNodeChilds(CheckNode node, List preparedClassifiers, List preparedSubPackages)
 
public void   preparePost(Object element, String path, Object caller)
Contains actions, that should be done after the preparation process itself. 
public void   preparePre(Object element, String path, Object caller)
Contains actions, that should be done prior to the preparation process itself. 
public void   setProject(UmlProject project)
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

JAVA_LANGUAGE_NAME

private static String JAVA_LANGUAGE_NAME

arrow_up


_logIdPrefix

private String _logIdPrefix

arrow_up
 Association Detail

_project

private UmlProject _project

arrow_up
 Constructor Detail

UMLGenerator

public UMLGenerator UMLGenerator(UmlProject project)

Parameters:
project -
Returns:
arrow_up


UMLGenerator

public UMLGenerator UMLGenerator()

Returns:
arrow_up
 Method Detail

compilePost

public void compilePost(String path)


Contains actions that should be done after the compilation.  
Parameters:
path - Path to the target of the code generation.
arrow_up


generateFilesToPersistTarget

protected List generateFilesToPersistTarget(Object element, String targetLocation, Object predicate)

Parameters:
element -
targetLocation -
predicate -
Returns:
arrow_up


generateToMultipleDisplays

protected List generateToMultipleDisplays(Object element, Object predicate)

Parameters:
element -
predicate -
Returns:
arrow_up


getProject

public UmlProject getProject()

Returns:
arrow_up


init

public void init()

arrow_up


init

public void init(String language)

Parameters:
language -
arrow_up


initInternal

public final void initInternal()


Sets the correct project and calls init.  
arrow_up


initInternalJava

public final void initInternalJava()


Sets the correct project and calls init.  
arrow_up


prepare

private PreparedElement prepare(RefObject refObject, String sourcepath, ElementPreparator preparator)

Parameters:
refObject -
sourcepath -
preparator -
Returns:
arrow_up


prepareClassifier

public void prepareClassifier(RefObject primaryClassifier, List secondaryClassifiers)

Parameters:
primaryClassifier -
secondaryClassifiers -
arrow_up


prepareFromRootElement

public void prepareFromRootElement(CheckNode root)


Starts preparing the element information, starting with the given root element and moving recursively down the tree. The object represented by the root element has to be a valid UML model.  
Parameters:
root - Root node of the element tree used for retrieving the element information.
arrow_up


prepareNode

protected PreparedElement prepareNode(CheckNode node)

Parameters:
node -
Returns:
arrow_up


prepareNodeChilds

private boolean prepareNodeChilds(CheckNode node, List preparedClassifiers, List preparedSubPackages)

Parameters:
node -
preparedClassifiers -
preparedSubPackages -
Returns:
arrow_up


preparePost

public void preparePost(Object element, String path, Object caller)


Contains actions, that should be done after the preparation process itself.  
Parameters:
element - The element that has just been prepared.
path - Path to the target of the code generation.
caller - Object that is calling this operation.
arrow_up


preparePre

public void preparePre(Object element, String path, Object caller)


Contains actions, that should be done prior to the preparation process itself.  
Parameters:
element - The element that is going to be prepared.
path - Path to the target of the code generation.
caller - Object that is calling this operation.
arrow_up


setProject

public void setProject(UmlProject project)

Parameters:
project -
arrow_up
Created  2004 - 10 - 21

    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.