public class GeneratorTemplateContentLocator extends Object implements TemplatePathLocator
CodegenConfig settings.| Constructor and Description |
|---|
GeneratorTemplateContentLocator(CodegenConfig codegenConfig)
Constructs a new instance of
GeneratorTemplateContentLocator for the provided CodegenConfig |
| Modifier and Type | Method and Description |
|---|---|
boolean |
embeddedTemplateExists(String name)
Determines whether an embedded file with the specified name exists.
|
String |
getFullTemplatePath(String relativeTemplateFile)
Get the template file path with template dir prepended, and use the library template if exists.
|
public GeneratorTemplateContentLocator(CodegenConfig codegenConfig)
GeneratorTemplateContentLocator for the provided CodegenConfigcodegenConfig - A generator's configuration used for determining template file location.public boolean embeddedTemplateExists(String name)
name - The name of the file (i.e. relative to resource root)public String getFullTemplatePath(String relativeTemplateFile)
getFullTemplatePath in interface TemplatePathLocatorrelativeTemplateFile - Template fileCopyright © 2021. All rights reserved.