Class CommonTemplateContentLocator
- java.lang.Object
-
- org.openapitools.codegen.templating.CommonTemplateContentLocator
-
- All Implemented Interfaces:
TemplatePathLocator
public class CommonTemplateContentLocator extends Object implements TemplatePathLocator
Locates generator-agnostic templates from a common built-in location.
-
-
Constructor Summary
Constructors Constructor Description CommonTemplateContentLocator()
Constructs a new instance ofCommonTemplateContentLocator
defaulting to _common resource location.CommonTemplateContentLocator(String resourceLocation)
Constructs a new instance ofCommonTemplateContentLocator
for a targeted common location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullTemplatePath(String relativeTemplateFile)
Get the full path to a relative template file.
-
-
-
Constructor Detail
-
CommonTemplateContentLocator
public CommonTemplateContentLocator()
Constructs a new instance ofCommonTemplateContentLocator
defaulting to _common resource location.
-
CommonTemplateContentLocator
public CommonTemplateContentLocator(String resourceLocation)
Constructs a new instance ofCommonTemplateContentLocator
for a targeted common location.- Parameters:
resourceLocation
- A custom common file location.
-
-
Method Detail
-
getFullTemplatePath
public String getFullTemplatePath(String relativeTemplateFile)
Get the full path to a relative template file.- Specified by:
getFullTemplatePath
in interfaceTemplatePathLocator
- Parameters:
relativeTemplateFile
- Template file- Returns:
- String Full template file path
-
-