org.tinygroup.fulltext
类 TemplateDocumentCreator
java.lang.Object
org.tinygroup.fulltext.TemplateDocumentCreator
public class TemplateDocumentCreator
- extends Object
基于模板引擎的文档创建,简化操作规则
- 作者:
- yancheng11334
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateDocumentCreator
public TemplateDocumentCreator()
TemplateDocumentCreator
public TemplateDocumentCreator(String idRule,
String typeRule,
String titleRule,
String abstractRule)
getTemplateRender
public TemplateRender getTemplateRender()
setTemplateRender
public void setTemplateRender(TemplateRender templateRender)
getIdRule
public String getIdRule()
setIdRule
public void setIdRule(String idRule)
getTypeRule
public String getTypeRule()
setTypeRule
public void setTypeRule(String typeRule)
getTitleRule
public String getTitleRule()
setTitleRule
public void setTitleRule(String titleRule)
getAbstractRule
public String getAbstractRule()
setAbstractRule
public void setAbstractRule(String abstractRule)
execute
public Document execute(Context context)
- 执行渲染逻辑
- 参数:
context -
- 返回:
renderId
protected Field renderId(TemplateContext templateContext)
throws TemplateException
- 抛出:
TemplateException
renderType
protected Field renderType(TemplateContext templateContext)
throws TemplateException
- 抛出:
TemplateException
renderTitle
protected Field renderTitle(TemplateContext templateContext)
throws TemplateException
- 抛出:
TemplateException
renderAbstarctRule
protected Field renderAbstarctRule(TemplateContext templateContext)
throws TemplateException
- 抛出:
TemplateException
Copyright © 2006–2016 TinyGroup. All rights reserved.