xdoclet
Class GenerationManager
java.lang.Objectxdoclet.GenerationManager
public class GenerationManager
extends java.lang.Object
Verify if the generation is needed for Java files and Xml files based templates.
Version:
- Vincent Harcq (vincent.harcq@hubmethods.com)
- March 30, 2002
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.
|
GenerationManager
public GenerationManager(XJavaDoc xJavaDoc,
TemplateSubTask subTask) Describe what the GenerationManager constructor does
xJavaDoc - subTask - Describe what the parameter does
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.
file - The file to check
- true if the generation is needed
XDocletException -
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.
clazz - the Class from wich we generatefile - the File that will be generatedwithTemplate -
- true if generation is needed
XDocletException -
isGuessGenerationNeeded
public boolean isGuessGenerationNeeded()
Gets the GuessGenerationNeeded attribute of the GenerationManager object
- The GuessGenerationNeeded value
setGuessGenerationNeeded
public void setGuessGenerationNeeded(boolean guessGenerationNeeded)
Sets the GuessGenerationNeeded attribute of the GenerationManager object.
guessGenerationNeeded - The new GuessGenerationNeeded value