public abstract class AbstractRender extends Object implements ConcreteAPIRender
| 构造器和说明 |
|---|
AbstractRender() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
copyTo(String resourceName,
String path) |
protected boolean |
exists(String file) |
protected String |
getRenderDesc() |
protected abstract String |
getRenderName() |
protected abstract String |
getTemplatePath() |
boolean |
isAccept(String desc)
例如:
服务提供类型:JaxRS
类型:code, doc
使用者:backend, jquery, angularjs, angualr2, java, c#等
文档化格式:gitbook, asciidoctor, markdown
|
protected Map<String,Object> |
merge(Map<String,Object> map) |
void |
setExt(Map<String,Object> ext) |
void |
setRoot(String rootPath) |
void |
writeTo(String filePath,
String templateName,
Map<String,Object> map) |
void |
writeTo(String filePath,
String templateName,
String pojoKey,
Object value) |
void |
writeTo(String filePath,
String templateName,
String pojoKey,
Object value,
Object toolKit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteToprotected static final String FS
protected String getRenderDesc()
public void setRoot(String rootPath)
setRoot 在接口中 ConcreteAPIRenderprotected abstract String getTemplatePath()
protected abstract String getRenderName()
public boolean isAccept(String desc)
ConcreteAPIRender例如: 服务提供类型:JaxRS 类型:code, doc 使用者:backend, jquery, angularjs, angualr2, java, c#等 文档化格式:gitbook, asciidoctor, markdown
isAccept 在接口中 ConcreteAPIRenderdesc - 服务提供类型.类型.使用者.文档化格式.版本public void writeTo(String filePath, String templateName, String pojoKey, Object value) throws IOException
IOExceptionpublic void writeTo(String filePath, String templateName, String pojoKey, Object value, Object toolKit) throws IOException
IOExceptionpublic void writeTo(String filePath, String templateName, Map<String,Object> map) throws IOException
IOExceptionprotected boolean exists(String file)
protected void copyTo(String resourceName, String path) throws IOException
IOExceptionpublic void setExt(Map<String,Object> ext)
setExt 在接口中 ConcreteAPIRenderCopyright © 2020. All rights reserved.