Class TemplateFactory
- java.lang.Object
-
- net.coru.api.generator.plugin.openapi.template.TemplateFactory
-
public class TemplateFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description TemplateFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponents(Map<String,io.swagger.v3.oas.models.media.Schema> itemMap)voidaddPathItems(HashMap<String,io.swagger.v3.oas.models.PathItem> itemMap)voidfillTemplate(String filePathToSave, FileSpec fileSpec, String className, List<PathObject> pathObjects, AuthObject authObject)voidfillTemplateAuth(String filePathToSave, String authName)voidfillTemplateRestClient(String filePathToSave)voidfillTemplateSchema(String filePathToSave, Boolean useLombok, SchemaObject schemaObject)voidfillTemplateWebClient(String filePathToSave)voidsetAuthPackageName(String packageName)voidsetModelPackageName(String packageName)voidsetPackageName(String packageName)voidsetWebClientPackageName(String packageName)
-
-
-
Method Detail
-
fillTemplateSchema
public final void fillTemplateSchema(String filePathToSave, Boolean useLombok, SchemaObject schemaObject) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateWebClient
public final void fillTemplateWebClient(String filePathToSave) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateRestClient
public final void fillTemplateRestClient(String filePathToSave) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateAuth
public final void fillTemplateAuth(String filePathToSave, String authName) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplate
public final void fillTemplate(String filePathToSave, FileSpec fileSpec, String className, List<PathObject> pathObjects, AuthObject authObject) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
setPackageName
public final void setPackageName(String packageName)
-
setModelPackageName
public final void setModelPackageName(String packageName)
-
setWebClientPackageName
public final void setWebClientPackageName(String packageName)
-
setAuthPackageName
public final void setAuthPackageName(String packageName)
-
addPathItems
public final void addPathItems(HashMap<String,io.swagger.v3.oas.models.PathItem> itemMap)
-
-