io.swagger.servlet.ReaderContext Maven / Gradle / Ivy
package io.swagger.servlet;
import io.swagger.models.Swagger;
import io.swagger.models.parameters.Parameter;
import java.util.List;
/**
* The ReaderContext
class is wrapper for the Reader
parameters.
*/
public class ReaderContext {
private Swagger swagger;
private Class> cls;
private String parentPath;
private String parentHttpMethod;
private boolean readHidden;
private List parentConsumes;
private List parentProduces;
private List parentTags;
private List parentParameters;
public ReaderContext(Swagger swagger, Class> cls, String parentPath, String parentHttpMethod,
boolean readHidden, List parentConsumes, List parentProduces,
List parentTags, List parentParameters) {
setSwagger(swagger);
setCls(cls);
setParentPath(parentPath);
setParentHttpMethod(parentHttpMethod);
setReadHidden(readHidden);
setParentConsumes(parentConsumes);
setParentProduces(parentProduces);
setParentTags(parentTags);
setParentParameters(parentParameters);
}
public Swagger getSwagger() {
return swagger;
}
public void setSwagger(Swagger swagger) {
this.swagger = swagger;
}
public Class> getCls() {
return cls;
}
public void setCls(Class> cls) {
this.cls = cls;
}
public String getParentPath() {
return parentPath;
}
public void setParentPath(String parentPath) {
this.parentPath = parentPath;
}
public String getParentHttpMethod() {
return parentHttpMethod;
}
public void setParentHttpMethod(String parentHttpMethod) {
this.parentHttpMethod = parentHttpMethod;
}
public boolean isReadHidden() {
return readHidden;
}
public void setReadHidden(boolean readHidden) {
this.readHidden = readHidden;
}
public List getParentConsumes() {
return parentConsumes;
}
public void setParentConsumes(List parentConsumes) {
this.parentConsumes = parentConsumes;
}
public List getParentProduces() {
return parentProduces;
}
public void setParentProduces(List parentProduces) {
this.parentProduces = parentProduces;
}
public List getParentTags() {
return parentTags;
}
public void setParentTags(List parentTags) {
this.parentTags = parentTags;
}
public List getParentParameters() {
return parentParameters;
}
public void setParentParameters(List parentParameters) {
this.parentParameters = parentParameters;
}
}