X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-docgen%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fdoc%2Fswagger%2FApiDeclaration.java;h=4ba0ab2255a7d9184af5bfe1f949716ff9141d31;hp=e89bdaf603ede02cd0b22d7e06b3072b91a58ef4;hb=237c0e41ac33d7b3367b8e1a038bfba4c6431610;hpb=bba161ea7fb714c9d21abac4c13a0ae2975810e8 diff --git a/opendaylight/md-sal/sal-rest-docgen/src/main/java/org/opendaylight/controller/sal/rest/doc/swagger/ApiDeclaration.java b/opendaylight/md-sal/sal-rest-docgen/src/main/java/org/opendaylight/controller/sal/rest/doc/swagger/ApiDeclaration.java index e89bdaf603..4ba0ab2255 100644 --- a/opendaylight/md-sal/sal-rest-docgen/src/main/java/org/opendaylight/controller/sal/rest/doc/swagger/ApiDeclaration.java +++ b/opendaylight/md-sal/sal-rest-docgen/src/main/java/org/opendaylight/controller/sal/rest/doc/swagger/ApiDeclaration.java @@ -7,85 +7,86 @@ */ package org.opendaylight.controller.sal.rest.doc.swagger; -import org.json.JSONObject; - import java.util.List; +import org.json.JSONObject; + /** - * Implementation of swagger spec - * (see - * https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#52-api-declaration) + * Implementation of swagger spec (see https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#52-api- + * declaration) */ public class ApiDeclaration { - private String apiVersion; - private String swaggerVersion; - private String basePath; - private String resourcePath; - private List produces; - private List apis; - private JSONObject models; - - public JSONObject getModels() { - return models; - } - - public void setModels(JSONObject models) { - this.models = models; - } - - public String getApiVersion() { - return apiVersion; - } - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - public String getSwaggerVersion() { - return swaggerVersion; - } - - public void setSwaggerVersion(String swaggerVersion) { - this.swaggerVersion = swaggerVersion; - } - - public String getBasePath() { - return basePath; - } - - public void setBasePath(String basePath) { - this.basePath = basePath; - } - - public String getResourcePath() { - return resourcePath; - } - - public void setResourcePath(String resourcePath) { - this.resourcePath = resourcePath; - } - - public List getProduces() { - return produces; - } - - public void setProduces(List produces) { - this.produces = produces; - } - - public List getApis() { - return apis; - } - - public void setApis(List apis) { - this.apis = apis; - } - - public boolean hasApi(){ - return (apis != null && !apis.isEmpty()); - } - - public boolean hasModel(){ - return (models != null && models.length() > 0); - } + private String apiVersion; + private String swaggerVersion; + private String basePath; + private String resourcePath; + private List produces; + private List apis; + private JSONObject models; + + public JSONObject getModels() { + return models; + } + + public void setModels(JSONObject models) { + this.models = models; + } + + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + public String getSwaggerVersion() { + return swaggerVersion; + } + + public void setSwaggerVersion(String swaggerVersion) { + this.swaggerVersion = swaggerVersion; + } + + public String getBasePath() { + return basePath; + } + + public void setBasePath(String basePath) { + this.basePath = basePath; + } + + public String getResourcePath() { + return resourcePath; + } + + public void setResourcePath(String resourcePath) { + this.resourcePath = resourcePath; + } + + public List getProduces() { + return produces; + } + + public void setProduces(List produces) { + this.produces = produces; + } + + public List getApis() { + return apis; + } + + public void setApis(List apis) { + this.apis = apis; + } + + public boolean hasApi() { + return (apis != null && !apis.isEmpty()); + } + + public boolean hasModel() { + return (models != null && models.length() > 0); + } }