Class TemplateManagerOptions
- java.lang.Object
-
- org.openapitools.codegen.templating.TemplateManagerOptions
-
public class TemplateManagerOptions extends Object
Holds the options relevant to template management and execution.
-
-
Constructor Summary
Constructors Constructor Description TemplateManagerOptions(boolean minimalUpdate, boolean skipOverwrite)Constructs a new instance ofTemplateManagerOptions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMinimalUpdate()Determines whether the template should minimally update a target file.booleanisSkipOverwrite()Determines whether the template manager should avoid overwriting an existing file.
-
-
-
Constructor Detail
-
TemplateManagerOptions
public TemplateManagerOptions(boolean minimalUpdate, boolean skipOverwrite)Constructs a new instance ofTemplateManagerOptions- Parameters:
minimalUpdate- SeeisMinimalUpdate()skipOverwrite- SeeisSkipOverwrite()
-
-
Method Detail
-
isMinimalUpdate
public boolean isMinimalUpdate()
Determines whether the template should minimally update a target file. A minimal update means the template manager is requested to update a file only if it is newer. This option avoids "touching" a file and causing the last modification time (mtime) to change.- Returns:
- true to prefer updating only changed files, false to disable that suggestion
-
isSkipOverwrite
public boolean isSkipOverwrite()
Determines whether the template manager should avoid overwriting an existing file. This differs from requestingisMinimalUpdate()which evaluates contents, while this option only evaluates whether the file exists.- Returns:
- true to avoid overwriting existing files (where supported), false to disable that suggestion.
-
-