xdoclet

Class GenerationManager

public class GenerationManager extends 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)

UNKNOWN: March 30, 2002

Constructor Summary
GenerationManager(XJavaDoc xJavaDoc, TemplateSubTask subTask)
Describe what the GenerationManager constructor does
Method Summary
booleanisGenerationNeeded(XClass clazz, File file, boolean withTemplate)
Test if a Java source mmust be generated or not depending of timestamp of elements involved.
booleanisGenerationNeeded(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.
booleanisGuessGenerationNeeded()
Gets the GuessGenerationNeeded attribute of the GenerationManager object
voidsetGuessGenerationNeeded(boolean guessGenerationNeeded)
Sets the GuessGenerationNeeded attribute of the GenerationManager object.

Constructor Detail

GenerationManager

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

Parameters: xJavaDoc subTask Describe what the parameter does

Method Detail

isGenerationNeeded

public boolean isGenerationNeeded(XClass clazz, File file, boolean withTemplate)
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

Throws: XDocletException

isGenerationNeeded

public 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. This is used to test if xml files generation is needed.

Parameters: file The file to check

Returns: true if the generation is needed

Throws: XDocletException

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