public class TemplateDocumentCreator extends AbstractTemplateIndexRender
Constructor and Description |
---|
TemplateDocumentCreator() |
TemplateDocumentCreator(String idRule,
String typeRule,
String titleRule,
String abstractRule) |
Modifier and Type | Method and Description |
---|---|
Document |
execute(Context context)
执行渲染逻辑
|
String |
getAbstractRule() |
String |
getIdRule() |
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 |
setTitleRule(String titleRule) |
void |
setTypeRule(String typeRule) |
addTemplate, getFileResourceManager, getTemplateRender, setTemplateRender
public String getIdRule()
public void setIdRule(String idRule)
public String getTypeRule()
public void setTypeRule(String typeRule)
public String getTitleRule()
public void setTitleRule(String titleRule)
public String getAbstractRule()
public void setAbstractRule(String abstractRule)
protected Field renderId(TemplateContext templateContext) throws TemplateException
TemplateException
protected Field renderType(TemplateContext templateContext) throws TemplateException
TemplateException
protected Field renderTitle(TemplateContext templateContext) throws TemplateException
TemplateException
protected Field renderAbstarctRule(TemplateContext templateContext) throws TemplateException
TemplateException
Copyright © 2006–2018 TinyGroup. All rights reserved.