Package io.swagger.codegen.v3
Class AbstractGenerator
java.lang.Object
io.swagger.codegen.v3.AbstractGenerator
- Direct Known Subclasses:
DefaultGenerator,MetaGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanembeddedTemplateExists(String name) getCPResourcePath(String name) getFullTemplateFile(CodegenConfig config, String templateFile) Get the template file path with template dir prepended, and use the library template if exists.getTemplateReader(String name) readResourceContents(String resourceFilePath) readTemplate(String name) writeToFile(String filename, String contents)
-
Constructor Details
-
AbstractGenerator
public AbstractGenerator()
-
-
Method Details
-
writeToFile
- Throws:
IOException
-
readTemplate
-
getTemplateReader
-
getFullTemplateFile
Get the template file path with template dir prepended, and use the library template if exists.- Parameters:
config- Codegen configtemplateFile- Template file- Returns:
- String Full template file path
-
readResourceContents
-
embeddedTemplateExists
-
getCPResourcePath
-