All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.codegen.v3.CodegenContent Maven / Gradle / Ivy

There is a newer version: 3.0.62
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy