io.github.yedaxia.apidocs.codegenerator.CodeFileBuilder Maven / Gradle / Ivy
package io.github.yedaxia.apidocs.codegenerator;
public class CodeFileBuilder implements ICodeBuilder{
private String fileName;
private String codeBody;
private String codeTemplate;
public CodeFileBuilder(String fileName, String codeBody, String codeTemplate) {
super();
this.fileName = fileName;
this.codeBody = codeBody;
this.codeTemplate = codeTemplate;
}
public String build(){
codeTemplate = codeTemplate.replace("${FILE_NAME}", fileName);
codeTemplate = codeTemplate.replace("${MODEL_LIST}", codeBody);
return codeTemplate;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy