org.tinygroup.fulltext
类 TemplateDocumentCreator

java.lang.Object
  继承者 org.tinygroup.fulltext.TemplateDocumentCreator

public class TemplateDocumentCreator
extends Object

基于模板引擎的文档创建,简化操作规则

作者:
yancheng11334

构造方法摘要
TemplateDocumentCreator()
           
TemplateDocumentCreator(String idRule, String typeRule, String titleRule, String abstractRule)
           
 
方法摘要
 Document execute(Context context)
          执行渲染逻辑
 String getAbstractRule()
           
 String getIdRule()
           
 TemplateRender getTemplateRender()
           
 String getTitleRule()
           
 String getTypeRule()
           
protected  Field renderAbstarctRule(TemplateContext templateContext)
           
protected  Field renderId(TemplateContext templateContext)
           
protected  Field renderTitle(TemplateContext templateContext)
           
protected  Field renderType(TemplateContext templateContext)
           
 void setAbstractRule(String abstractRule)
           
 void setIdRule(String idRule)
           
 void setTemplateRender(TemplateRender templateRender)
           
 void setTitleRule(String titleRule)
           
 void setTypeRule(String typeRule)
           
 
从类 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.