xdoclet

Class GenerationManager


public class GenerationManager
extends java.lang.Object

Verify if the generation is needed for Java files and Xml files based templates.
Version:
$Revision: 1.19 $
Author:
Vincent Harcq (vincent.harcq@hubmethods.com)
created
March 30, 2002

Constructor Summary

GenerationManager(XJavaDoc xJavaDoc, TemplateSubTask subTask)
Describe what the GenerationManager constructor does

Method Summary

boolean
isGenerationNeeded(File file)
Verify if the generation of a file to generate is needed because either the Template used to generate the file have a later timestamp, or because ALL the Java sources imported in this task have a sooner timestamp.
boolean
isGenerationNeeded(XClass clazz, File file, boolean withTemplate)
Test if a Java source mmust be generated or not depending of timestamp of elements involved.
boolean
isGuessGenerationNeeded()
Gets the GuessGenerationNeeded attribute of the GenerationManager object
void
setGuessGenerationNeeded(boolean guessGenerationNeeded)
Sets the GuessGenerationNeeded attribute of the GenerationManager object.

Constructor Details

GenerationManager

public GenerationManager(XJavaDoc xJavaDoc,
                         TemplateSubTask subTask)
Describe what the GenerationManager constructor does
Parameters:
xJavaDoc -
subTask - Describe what the parameter does

Method Details

isGenerationNeeded

public boolean isGenerationNeeded(File file)
            throws XDocletException
Verify if the generation of a file to generate is needed because either the Template used to generate the file have a later timestamp, or because ALL the Java sources imported in this task have a sooner timestamp. This is used to test if xml files generation is needed.
Parameters:
file - The file to check
Returns:
true if the generation is needed

isGenerationNeeded

public boolean isGenerationNeeded(XClass clazz,
                                  File file,
                                  boolean withTemplate)
            throws XDocletException
Test if a Java source mmust be generated or not depending of timestamp of elements involved.
Parameters:
clazz - the Class from wich we generate
file - the File that will be generated
withTemplate -
Returns:
true if generation is needed

isGuessGenerationNeeded

public boolean isGuessGenerationNeeded()
Gets the GuessGenerationNeeded attribute of the GenerationManager object
Returns:
The GuessGenerationNeeded value

setGuessGenerationNeeded

public void setGuessGenerationNeeded(boolean guessGenerationNeeded)
Sets the GuessGenerationNeeded attribute of the GenerationManager object.
Parameters:
guessGenerationNeeded - The new GuessGenerationNeeded value