com.smartbear.swagger4j.impl
Class ApiDeclarationImpl

java.lang.Object
  extended by com.smartbear.swagger4j.impl.ApiDeclarationImpl
All Implemented Interfaces:
ApiDeclaration

public class ApiDeclarationImpl
extends Object
implements ApiDeclaration

Default implementation of the ApiDeclaration interface

See Also:
ApiDeclaration

Method Summary
 Api addApi(String path)
          Adds a new API to this ApiDeclaration with the specified path
 Api getApi(String path)
          Gets the API at the specified path
 List<Api> getApis()
          Gets a list of APIs for this ApiDeclarations
 String getApiVersion()
           
 String getBasePath()
           
 String getResourcePath()
           
 String getSwaggerVersion()
           
 void removeApi(Api api)
          Removes the specified Api from this ApiDeclaration
 void setApiVersion(String apiVersion)
           
 void setBasePath(String basePath)
           
 void setResourcePath(String resourcePath)
           
 void setSwaggerVersion(String swaggerVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSwaggerVersion

public String getSwaggerVersion()
Specified by:
getSwaggerVersion in interface ApiDeclaration

setSwaggerVersion

public void setSwaggerVersion(String swaggerVersion)
Specified by:
setSwaggerVersion in interface ApiDeclaration

getApiVersion

public String getApiVersion()
Specified by:
getApiVersion in interface ApiDeclaration

setApiVersion

public void setApiVersion(String apiVersion)
Specified by:
setApiVersion in interface ApiDeclaration

getBasePath

public String getBasePath()
Specified by:
getBasePath in interface ApiDeclaration

setBasePath

public void setBasePath(String basePath)
Specified by:
setBasePath in interface ApiDeclaration

getResourcePath

public String getResourcePath()
Specified by:
getResourcePath in interface ApiDeclaration

setResourcePath

public void setResourcePath(String resourcePath)
Specified by:
setResourcePath in interface ApiDeclaration

getApis

public List<Api> getApis()
Description copied from interface: ApiDeclaration
Gets a list of APIs for this ApiDeclarations

Specified by:
getApis in interface ApiDeclaration
Returns:
a list of Api objects
See Also:
Api

removeApi

public void removeApi(Api api)
Description copied from interface: ApiDeclaration
Removes the specified Api from this ApiDeclaration

Specified by:
removeApi in interface ApiDeclaration
Parameters:
api - the Api to remove
See Also:
Api

addApi

public Api addApi(String path)
Description copied from interface: ApiDeclaration
Adds a new API to this ApiDeclaration with the specified path

Specified by:
addApi in interface ApiDeclaration
Parameters:
path - the path for the API to add
Returns:
the created API
See Also:
Api

getApi

public Api getApi(String path)
Description copied from interface: ApiDeclaration
Gets the API at the specified path

Specified by:
getApi in interface ApiDeclaration
Parameters:
path - the path to the API
Returns:
the API at that path, null if none available
See Also:
Api


Copyright © 2013. All Rights Reserved.