public class FreemarkerTemplateFormatter extends Object implements TemplateFormatter, ListTemplateFormatter
Constructor and Description |
---|
FreemarkerTemplateFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
getFormattedContent(Set<TableClass> tableClassSet,
Properties properties,
String targetPackage,
String templateContent)
获取根据模板生成的数据
|
String |
getFormattedContent(TableClass tableClass,
Properties properties,
String targetPackage,
String templateContent)
获取根据模板生成的数据
|
String |
process(String templateName,
String templateSource,
Map<String,Object> params)
根据模板处理
|
public String process(String templateName, String templateSource, Map<String,Object> params)
templateName
- templateSource
- params
- public String getFormattedContent(TableClass tableClass, Properties properties, String targetPackage, String templateContent)
TemplateFormatter
getFormattedContent
in interface TemplateFormatter
public String getFormattedContent(Set<TableClass> tableClassSet, Properties properties, String targetPackage, String templateContent)
ListTemplateFormatter
getFormattedContent
in interface ListTemplateFormatter
Copyright © 2018. All rights reserved.