io.swagger.codegen.v3.CodegenContent Maven / Gradle / Ivy
package io.swagger.codegen.v3;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CodegenContent {
private String contentType;
public CodegenContent() {
}
public CodegenContent(String contentType) {
this.contentType = contentType;
}
private List parameters = new ArrayList();
private Map contentExtensions = new HashMap<>();
public boolean getIsForm() {
if (contentExtensions.get(CodegenConstants.IS_FORM_EXT_NAME) == null) {
return Boolean.FALSE;
}
return Boolean.parseBoolean(contentExtensions.get(CodegenConstants.IS_FORM_EXT_NAME).toString());
}
public List getParameters() {
return parameters;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public Map getContentExtensions() {
return contentExtensions;
}
}