com.smartbear.swagger4j.impl
Class Utils.MapSwaggerStore

java.lang.Object
  extended by com.smartbear.swagger4j.impl.Utils.MapSwaggerStore
All Implemented Interfaces:
SwaggerStore
Enclosing class:
Utils

public static class Utils.MapSwaggerStore
extends Object
implements SwaggerStore

SwaggerStore implementation that writes Swagger definitions to a map of fileName to StringWriter

See Also:
SwaggerStore

Constructor Summary
Utils.MapSwaggerStore()
           
 
Method Summary
 Writer createResource(String path)
          Create a resource with the specified path
 Map<String,StringWriter> getFileMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils.MapSwaggerStore

public Utils.MapSwaggerStore()
Method Detail

createResource

public Writer createResource(String path)
                      throws IOException
Description copied from interface: SwaggerStore
Create a resource with the specified path

Specified by:
createResource in interface SwaggerStore
Parameters:
path - the path of the resource to create
Returns:
a Writer to which the resource can be written
Throws:
IOException

getFileMap

public Map<String,StringWriter> getFileMap()


Copyright © 2013. All Rights Reserved.