com.github.kongchen.swagger.docgen
类 AbstractDocumentSource
java.lang.Object
com.github.kongchen.swagger.docgen.AbstractDocumentSource
- 直接已知子类:
- MavenDocumentSource, RemoteDocumentSource
public abstract class AbstractDocumentSource
- extends Object
Created with IntelliJ IDEA.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected final LogAdapter LOG
serviceDocument
protected com.wordnik.swagger.model.ResourceListing serviceDocument
AbstractDocumentSource
public AbstractDocumentSource(LogAdapter logAdapter,
String outputPath,
String outputTpl,
String swaggerOutput,
String mustacheFileRoot,
boolean useOutputFlatStructure1)
loadDocuments
public abstract void loadDocuments()
throws Exception,
GenerateException
- 抛出:
Exception
GenerateException
getBasePath
public String getBasePath()
setBasePath
public void setBasePath(String basePath)
getApiVersion
public String getApiVersion()
setApiVersion
public void setApiVersion(String apiVersion)
getOutputTemplate
public OutputTemplate getOutputTemplate()
acceptDocument
protected void acceptDocument(com.wordnik.swagger.model.ApiListing doc)
getValidDocuments
public List<com.wordnik.swagger.model.ApiListing> getValidDocuments()
toSwaggerDocuments
public void toSwaggerDocuments(String swaggerUIDocBasePath)
throws GenerateException
- 抛出:
GenerateException
resourcePathToFilename
protected String resourcePathToFilename(String resourcePath)
createFile
protected File createFile(File dir,
String outputResourcePath)
throws IOException
- 抛出:
IOException
prepareMustacheTemplate
public OutputTemplate prepareMustacheTemplate()
throws GenerateException
- 抛出:
GenerateException
toDocuments
public void toDocuments()
throws GenerateException
- 抛出:
GenerateException
Copyright © 2014. All Rights Reserved.