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 ofCommonTemplateContentLocatordefaulting to _common resource location.CommonTemplateContentLocator(String resourceLocation)Constructs a new instance ofCommonTemplateContentLocatorfor a targeted common location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFullTemplatePath(String relativeTemplateFile)Get the full path to a relative template file.
-
-
-
Constructor Detail
-
CommonTemplateContentLocator
public CommonTemplateContentLocator()
Constructs a new instance ofCommonTemplateContentLocatordefaulting to _common resource location.
-
CommonTemplateContentLocator
public CommonTemplateContentLocator(String resourceLocation)
Constructs a new instance ofCommonTemplateContentLocatorfor 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:
getFullTemplatePathin interfaceTemplatePathLocator- Parameters:
relativeTemplateFile- Template file- Returns:
- String Full template file path
-
-