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.generator

Class GenerationSet

com.gentleware.poseidon.generator.GenerationSet

public class GenerationSet


This class holds the set of templates that are used for the code generation process. The set is associated with a predicate object and can be reigstered for special model elements by a CompositeGenerationManager.

Created : sturm, Jan 16, 2003, 3:46:56 PM

Authors:
sturm
Since:
1.6


 Attribute Summary
private Object  predicate
 
private List  templateList
 
arrow_up
 

 Constructor Summary
public   GenerationSet()
Creates a new GenerationSet object that is valid for any instance of the type of element it is registered for at the COmpositeCodeTemplateManager. 
public   GenerationSet(Object pred)
Creates a new GenerationSet object with the given predicate. 
arrow_up
 

 Method Summary
public void   addTemplate(CodeTemplate template)
Adds a new template to the list. 
public void   addTemplate(String templatePath, String templateName)
 
public Object   getPredicate()
Returns the predicate object the template set is associated with. 
public List   getTemplates()
Returns the list of templates that are registered for this GenerationSet. 
public boolean   isRegisteredTemplate(CodeTemplate template)
Tests, if the given template is already registered in this GenerationSet. 
public void   removeAllTemplates()
Removes all registered templates. 
public void   removeTemplate(CodeTemplate template)
Removes the given template from the list of registered templates. 
public void   removeTemplate(String templatePath)
Removes the template asociated to the given path from the list of registered templates. 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

predicate

private Object predicate

arrow_up


templateList

private List templateList

arrow_up
 Constructor Detail

GenerationSet

public GenerationSet GenerationSet()


Creates a new GenerationSet object that is valid for any instance of the type of element it is registered for at the COmpositeCodeTemplateManager.  
Returns:
arrow_up


GenerationSet

public GenerationSet GenerationSet(Object pred)


Creates a new GenerationSet object with the given predicate.  
Parameters:
pred - Predicate object used to determine if this set is the one we are looking for.
Returns:
arrow_up
 Method Detail

addTemplate

public void addTemplate(CodeTemplate template)


Adds a new template to the list. Each template can only be registered once.  
Parameters:
template - The new template to be registered.
arrow_up


addTemplate

public void addTemplate(String templatePath, String templateName)

Parameters:
templatePath -
templateName -
arrow_up


getPredicate

public Object getPredicate()


Returns the predicate object the template set is associated with.  
Returns:
The predicate object or null if none is set.
arrow_up


getTemplates

public List getTemplates()


Returns the list of templates that are registered for this GenerationSet.  
Returns:
The list of templates.
arrow_up


isRegisteredTemplate

public boolean isRegisteredTemplate(CodeTemplate template)


Tests, if the given template is already registered in this GenerationSet.  
Parameters:
template - The template to be tested.
Returns:
True, if a template pointing to the same path is already registered, otherwise false.
arrow_up


removeAllTemplates

public void removeAllTemplates()


Removes all registered templates. A subsequent call will of getTemplates() will return an empty list.  
arrow_up


removeTemplate

public void removeTemplate(CodeTemplate template)


Removes the given template from the list of registered templates.  
Parameters:
template - The template to be removed from the list.
arrow_up


removeTemplate

public void removeTemplate(String templatePath)


Removes the template asociated to the given path from the list of registered templates.  
Parameters:
templatePath - The path that indicates the template to be removed.
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.