|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartbear.swagger4j.impl.ApiDeclarationImpl
public class ApiDeclarationImpl
Default implementation of the ApiDeclaration interface
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 |
---|
public String getSwaggerVersion()
getSwaggerVersion
in interface ApiDeclaration
public void setSwaggerVersion(String swaggerVersion)
setSwaggerVersion
in interface ApiDeclaration
public String getApiVersion()
getApiVersion
in interface ApiDeclaration
public void setApiVersion(String apiVersion)
setApiVersion
in interface ApiDeclaration
public String getBasePath()
getBasePath
in interface ApiDeclaration
public void setBasePath(String basePath)
setBasePath
in interface ApiDeclaration
public String getResourcePath()
getResourcePath
in interface ApiDeclaration
public void setResourcePath(String resourcePath)
setResourcePath
in interface ApiDeclaration
public List<Api> getApis()
ApiDeclaration
getApis
in interface ApiDeclaration
Api
public void removeApi(Api api)
ApiDeclaration
removeApi
in interface ApiDeclaration
api
- the Api to removeApi
public Api addApi(String path)
ApiDeclaration
addApi
in interface ApiDeclaration
path
- the path for the API to add
Api
public Api getApi(String path)
ApiDeclaration
getApi
in interface ApiDeclaration
path
- the path to the API
Api
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |