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 StereotypeCodeTemplateManager

com.gentleware.poseidon.generator.CoreCodeTemplateManager
    inheritcom.gentleware.poseidon.uml.generator.UMLCodeTemplateManager
        inheritcom.gentleware.poseidon.uml.generator.StereotypeCodeTemplateManager

public class StereotypeCodeTemplateManager


This class handles CodeTemplates based on classes of elements, stereotypes and their defined tagged values (used for calculation of filenames).

Created : sturm, Jan 10, 2003, 12:44:03 PM

Since:
1.6
See also:
com.gentleware.poseidon.generator.CoreGenerator


 Method Summary
private boolean   comparePredicates(Object predicate, Object compareWith)
 
public List   getCodeTemplates(Object element)
Returns the CodeTemplate instance to be used for generating the code file. 
protected List   getCodeTemplatesForClass(Class elementClass, Object predicate)
 
public List   getCodeTemplatesForPredicate(Object element, Object predicate)
 
protected GenerationSet   getGenerationSet(Class elementClass, Object predicate)
 
private UmlProject   getProject()
 
arrow_up
 

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

 Method Detail

comparePredicates

private boolean comparePredicates(Object predicate, Object compareWith)

Parameters:
predicate -
compareWith -
Returns:
arrow_up


getCodeTemplates

public List getCodeTemplates(Object element)


Returns the CodeTemplate instance to be used for generating the code file. The collection of stereotypes associated with the given object is used to retrieve the templates.  
Parameters:
element - Element the CodeTemplate instance should be retrieved for.
Returns:
The CodeTemplate instance to be used for the given element.
arrow_up


getCodeTemplatesForClass

protected List getCodeTemplatesForClass(Class elementClass, Object predicate)

Parameters:
elementClass -
predicate -
Returns:
arrow_up


getCodeTemplatesForPredicate

public List getCodeTemplatesForPredicate(Object element, Object predicate)

Parameters:
element -
predicate -
Returns:
arrow_up


getGenerationSet

protected GenerationSet getGenerationSet(Class elementClass, Object predicate)

Parameters:
elementClass -
predicate -
Returns:
arrow_up


getProject

private UmlProject getProject()

Returns:
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.