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 voidfillTemplate(String filePathToSave, FileSpec fileSpec, String className, List<PathObject> pathObjects, AuthObject authObject)voidfillTemplateAuth(String filePathToSave, String authName)voidfillTemplateModelClassException(String filePathToSave)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
-
fillTemplateModelClassException
public final void fillTemplateModelClassException(String filePathToSave) 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)
-
-