public abstract class AbstractRender extends Object implements ConcreteAPIRender
| Constructor and Description |
|---|
AbstractRender() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 in interface 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 in interface 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
IOExceptionCopyright © 2018. All rights reserved.