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

org.javalite.activeweb.Format Maven / Gradle / Ivy

Go to download

This plugin will generate Open API - compliant document from sources of an ActiveWeb app.

There is a newer version: 3.3
Show newest version
package org.javalite.activeweb;


public enum Format {

    JSON, YAML;
    public boolean matches(String format){

        if(this.equals(JSON) && format.equalsIgnoreCase("json")){
            return true;
        }else if(this.equals(YAML) && (format.equalsIgnoreCase("yaml") || format.equalsIgnoreCase("yml"))){
            return true;
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy