org.javalite.activeweb.Format Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aw-mate Show documentation
Show all versions of aw-mate Show documentation
This plugin will generate Open API - compliant document from sources of an ActiveWeb app.
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