|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartbear.swagger4j.impl.SwaggerFactoryImpl
public class SwaggerFactoryImpl
The default SwaggerFactory
Constructor Summary | |
---|---|
SwaggerFactoryImpl()
|
Method Summary | |
---|---|
ApiDeclaration |
createApiDeclaration(String basePath,
String resourcePath)
Creates an empty ApiDeclaration with the specified basePath and resourcePath |
ResourceListing |
createResourceListing(String basePath)
Creates an empty ResourceListing with the specified basePath to use for resolving contained API declaration references |
SwaggerReader |
createSwaggerReader()
Creates a SwaggerReader that can read Swagger objects |
SwaggerWriter |
createSwaggerWriter(Constants.Format format)
Creates a SwaggerWriter for the specified format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwaggerFactoryImpl()
Method Detail |
---|
public ResourceListing createResourceListing(String basePath)
SwaggerFactory
createResourceListing
in interface SwaggerFactory
basePath
- the basePath of the ResourceListing
public ApiDeclaration createApiDeclaration(String basePath, String resourcePath)
SwaggerFactory
createApiDeclaration
in interface SwaggerFactory
basePath
- used to resolve API paths defined in this declarationresourcePath
- path to the actual resource described in the declaration
public SwaggerReader createSwaggerReader()
SwaggerFactory
createSwaggerReader
in interface SwaggerFactory
public SwaggerWriter createSwaggerWriter(Constants.Format format)
SwaggerFactory
createSwaggerWriter
in interface SwaggerFactory
format
- the format to use when writing, either json or xml
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |