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, ArrayList<PathObject> pathObject, AuthObject authObject)voidfillTemplateAuth(String filePathToSave, String authName)voidfillTemplateRestClient(String filePathToSave)voidfillTemplateSchema(String filePathToSave, Boolean useLombock, SchemaObject schemaObject)voidfillTemplateWebClient(String filePathToSave)voidsetAuthPackageName(String packageName)voidsetModelPackageName(String packageName)voidsetPackageName(String packageName)voidsetWebClientPackageName(String packageName)
-
-
-
Method Detail
-
fillTemplateSchema
public void fillTemplateSchema(String filePathToSave, Boolean useLombock, SchemaObject schemaObject) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateWebClient
public void fillTemplateWebClient(String filePathToSave) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateRestClient
public void fillTemplateRestClient(String filePathToSave) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplateAuth
public void fillTemplateAuth(String filePathToSave, String authName) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
fillTemplate
public void fillTemplate(String filePathToSave, FileSpec fileSpec, String className, ArrayList<PathObject> pathObject, AuthObject authObject) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
setPackageName
public void setPackageName(String packageName)
-
setModelPackageName
public void setModelPackageName(String packageName)
-
setWebClientPackageName
public void setWebClientPackageName(String packageName)
-
setAuthPackageName
public void setAuthPackageName(String packageName)
-
-