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

io.swagger.codegen.v3.config.Config Maven / Gradle / Ivy

There is a newer version: 3.0.64
Show newest version
package io.swagger.codegen.v3.config;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class Config {
    private Map options;

    public Config() {
        this.options = new HashMap();
    }

    public Config(Map properties) {
        this.options = properties;
    }

    public Map getOptions() {
        return Collections.unmodifiableMap(options);
    }

    public boolean hasOption(String opt) {
        return options.containsKey(opt);
    }

    public String getOption(String opt) {
        return options.get(opt);
    }

    public void setOption(String opt, String value) {
        options.put(opt, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy