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)
TemplateFormattergetFormattedContent in interface TemplateFormatterpublic String getFormattedContent(Set<TableClass> tableClassSet, Properties properties, String targetPackage, String templateContent)
ListTemplateFormattergetFormattedContent in interface ListTemplateFormatterCopyright © 2018. All rights reserved.