|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartbear.swagger4j.impl.SwaggerWriterImpl
public class SwaggerWriterImpl
Default implementation of the SwaggerWriter interface
SwaggerWriter
Constructor Summary | |
---|---|
SwaggerWriterImpl(Constants.Format format)
|
Method Summary | |
---|---|
Constants.Format |
getFormat()
Gets the format of this SwaggerWriter |
void |
writeApiDeclaration(ApiDeclaration declaration,
Writer writer)
Writes the specified ApiDeclaration to the specified Writer in the configured format |
void |
writeResourceListing(ResourceListing listing,
Writer writer)
Writes the specified ResourceListing to the specified Writer in the configured format |
void |
writeSwagger(SwaggerStore store,
ResourceListing resourceListing)
Writes an entire Swagger definition (both ResourceListing and referred ApiDeclarations) to a generic SwaggerStore |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwaggerWriterImpl(Constants.Format format)
Method Detail |
---|
public void writeApiDeclaration(ApiDeclaration declaration, Writer writer) throws IOException
SwaggerWriter
writeApiDeclaration
in interface SwaggerWriter
declaration
- the declaration to writewriter
- the writer to write to
IOException
public void writeResourceListing(ResourceListing listing, Writer writer) throws IOException
SwaggerWriter
writeResourceListing
in interface SwaggerWriter
listing
- the listing to writewriter
- the writer to write to
IOException
public Constants.Format getFormat()
SwaggerWriter
getFormat
in interface SwaggerWriter
public void writeSwagger(SwaggerStore store, ResourceListing resourceListing) throws IOException
SwaggerWriter
writeSwagger
in interface SwaggerWriter
store
- the SwaggerStore to write toresourceListing
- the ResourceListing to write
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |