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.


字段摘要
protected  LogAdapter LOG
           
protected  com.wordnik.swagger.model.ResourceListing serviceDocument
           
 
构造方法摘要
AbstractDocumentSource(LogAdapter logAdapter, String outputPath, String outputTpl, String swaggerOutput, String mustacheFileRoot, boolean useOutputFlatStructure1)
           
 
方法摘要
protected  void acceptDocument(com.wordnik.swagger.model.ApiListing doc)
           
protected  File createFile(File dir, String outputResourcePath)
           
 String getApiVersion()
           
 String getBasePath()
           
 OutputTemplate getOutputTemplate()
           
 List<com.wordnik.swagger.model.ApiListing> getValidDocuments()
           
abstract  void loadDocuments()
           
 OutputTemplate prepareMustacheTemplate()
           
protected  String resourcePathToFilename(String resourcePath)
           
 void setApiVersion(String apiVersion)
           
 void setBasePath(String basePath)
           
 void toDocuments()
           
 void toSwaggerDocuments(String swaggerUIDocBasePath)
           
 
从类 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.